Académique Documents
Professionnel Documents
Culture Documents
Objective: To become comfortable with basic file and directory management at the Linux CLI.
Instructions:
Show syntax for all steps in this lab.
Syntax: ______________________________________________________________________
a. What is one way to verify that the directory was created successfully?
_______________________________________________________________________
2. Create a new file using cat in the newly created directory called lab05.file. Place your name inside
the file.
Syntax: ______________________________________________________________________
Syntax: _____________________________________________________________________
4. Change your location in the file system to /etc. From there, rename the file lab05.file to
lab05.text.
Syntax: _____________________________________________________________________
Syntax: _____________________________________________________________________
6. Make a copy of the lab05.work directory including its contents to a new directory called
lab05.backup in your home directory.
Syntax: _____________________________________________________________________
7. Create a file in your home directory called temp_file. Place your name inside the file.
Move the new file temp_file into the directory lab05.backup.
Syntax: _____________________________________________________________________
8. Copy the file temp_file from lab05.backup into lab05.work and rename the file to old_file
during the copy process.
Syntax: _____________________________________________________________________
Syntax: _____________________________________________________________________
Syntax: _____________________________________________________________________
11. Create a new directory called temp_dir. Right after, remove the empty directory.
Syntax: _____________________________________________________________________
12. Remove the lab05.work directory and its contents to finish off the lab.
Syntax: _____________________________________________________________________