0% found this document useful (0 votes)
7 views4 pages

Project Structure and File Management Guide

Uploaded by

roshdyzarief3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views4 pages

Project Structure and File Management Guide

Uploaded by

roshdyzarief3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Part 1: Create the Project Structure

1. Create Directories:
1. In your home directory (~), create a main project directory called my_app.
2. Navigate inside the my_app directory.
3. Create two subdirectories: src (for source code) and assets (for other files).

2. Create and Populate Files:

1. Inside the src directory, create an empty file named [Link].


2. Inside the assets directory, create an empty file named [Link].
3. Use the echo command to add the following line to assets/[Link]: echo "Default Port:
8080" > assets/[Link]
Part 2: Linking and Searching
1. Create a Symbolic Link:
1. While you are still inside the my_app directory, create a symbolic link (soft link) to the
assets/[Link] file. Name the link active_config.
2. Use the ls -l command to verify that the link was created and points to the correct original
file.

2. Find System Files:

1. Use the find command to search for a file named services within the /etc/ directory.
2. Once found, use the cp command to copy the /etc/services file into your my_app/assets
directory.
3. Search File Content:

1. Use the grep command to search for the term "http" inside the assets/services file you just
copied.
2. Run the grep command again, but this time, display the line numbers for each match.

Part 3: Verification and Cleanup


1. Verify Directory Structure:
1. Use the tree command to display the final structure of your my_app directory. (If tree is not
installed, you can use ls -R ).

2. Clean Up:

1. Remove the symbolic link active_config.


2. Remove the entire my_app directory and all of its contents with a single command.

You might also like