Vous êtes sur la page 1sur 2

OSSE1027 Lab 5 – Name: ___________________________________

Basic File System Management

Objective: To become comfortable with basic file and directory management at the Linux CLI.

Instructions:
Show syntax for all steps in this lab.

1. In your home directory, make a new directory called lab05.dir.

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: ______________________________________________________________________

3. Rename the directory lab05.dir to lab05.work.

Syntax: _____________________________________________________________________

4. Change your location in the file system to /etc. From there, rename the file lab05.file to
lab05.text.

Syntax: _____________________________________________________________________

5. Still in /etc, copy the file updatedb.conf to lab05.work.

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: _____________________________________________________________________

9. Move the directory lab05.backup inside lab05.work.

Syntax: _____________________________________________________________________

10. Delete the file old_file in lab05.work.

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: _____________________________________________________________________

Vous aimerez peut-être aussi