INFO2380-23S
Working in Linux
You may work in a group of 2-3 for this exercise. Screenshots must
reflect your Linux environment
Save your screenshot UNDER EACH QUESTION IN THIS DOCUMENT and
upload once the exercise is completed.
Provide an appropriate name for the lab; lab1<coursecode><initial>
Only a screen shot of the Terminal Window and VM creation are
needed (not of the entire desktop). It must be large enough and clear
enough to easily see the commands or information expected.
Sample below:
Version 2023.20.07.A
START OF EXCERCISE
Log into the Linux server using your username.
Version 2023.20.07.A
1. Navigate to home directory (~) Create any 5 files using the $touch command with some content
in each using echo (take a screen shot of the command)
Version 2023.20.07.A
2. Show the content of at least 2 of the files using $cat (take a screen shot)
3. Create directories for each of the following department (sales, marketing, human resources, IT,
engineering) at the root (/) of the system. (E.g. $mkdir /sales). You may need to use sudo
command privilege to create directory. (take screenshot)
Version 2023.20.07.A
4. Copy two of the files from your home directory (created earlier) into the sales directory using
RELATIVE PATH (current path) (take a snapshot)
Version 2023.20.07.A
5. Copy the other 3 files from your home directory (created earlier) into the sales directory using
ABSOLUTE PATH (full path) (take a snapshot)
6. Create a file named LinksTest.txt in the /opt directory with sudo permission (you may need to
be in root directory) (take screenshot)
Version 2023.20.07.A
7. Use Vi or any other text editor to add a line of some texts to the file within the
/opt/LinksTest.txt path. You may need sudo permission
Version 2023.20.07.A
8. Display the file's contents by using $cat /opt/LinksTest.txt file path. (take screenshot)
9. Create a directory from the root directory (/) named /systeminfo (take screenshot)
Version 2023.20.07.A
10. Use the following command to DOCUMENT information about your Linux system. Redirect ALL
the output and store it in /systeminfo directory. Use (>) symbol to redirect the output to a file
and provide screenshot for each item. (E.g file.txt > /systeminfo/<filename>)
You will need to create /systeminfo directory at the root directory.
df, (disk free space)
du, (disk usage)
ifconfig, (network config) *install appropriate tool
ip addr
Version 2023.20.07.A
11. List the content of the /systeminfo directory to see the text files created (take a screenshot)
12. Use $CAT to look at one of the files created in step 11. (take a screenshot)
EXAMPLE:
Version 2023.20.07.A
$cat /systeminfo/output1.txt | more.
$cat /systeminfo/output3.txt | grep “eth0”
Version 2023.20.07.A