Question: PART 3 : Learn about commands to navigate the directory tree structure while creating files and directories. While in your user's home directory, use the

PART 3: Learn about commands to navigate the directory tree structure while creating files and directories.
While in your user's home directory, use the ls l / command to view the contents of the / directory.
Take a mental note of which directories are part of the Linux Filesystem Hierarchy Standard (FHS) and those that are not (refer back to the learning materials for this module).
Use the mkdir test1 command to add a new directory in your home directory.
Use the cd command to change into the test1 directory that you just created in the previous step.
Use touch file1 to create a new empty file in the test1 directory.
Use the ls command with a single option (flag) to view the details of file1.(If you can't remember which option is used to view the details, what can you do to view the available options for that command?)
Use rm file1 to delete it.
Exit the test1 directory and return to its parent directory.
Use rmdir test1 to delete it.
Use the mkdir command to add a directory named test2 in your home directory.
Copy the /etc/passwd file to the ~/test2 directory so a copy of /etc/passwd is stored at ~/test2/passwd.bak
Use one command to verify that the copy of /etc/passwd was successfully made to ~/test2/passwd.bak while also indicating that it is not empty. The output of this command must consist of only two short lines.
Take a screenshot (filename: screenshot_3) of the above activities.
Clear the shell with the clear command.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!