Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions

Question

6. Use short-range goals to assist in achieving long-range goals.

Answered: 1 week ago