Problem

In this hands-on project, you create, view, and extract archives using the cpio and dump...

In this hands-on project, you create, view, and extract archives using the cpio and dump utilities.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type find /etc/samba | cpio -ovcBL –O test.cpio and press Enter to create an archive in the file test.cpio that contains the /etc/samba directory and its contents. What does each option indicate in the aforementioned command?

3. At the command prompt, type cpio -ivtB –I test.cpio and press Enter. What is displayed? What does each option indicate in the aforementioned command?

4. At the command prompt, type cpio -ivcdumB –I test.cpio and press Enter to extract the contents of the archive in the test.cpio file. To what location were the files extracted? Were any files overwritten? What does each option indicate in the aforementioned command?

5. At the command prompt, type dump -of test.dump /etc/samba and press Enter to create an archive of the /etc/samba directory in the archive file test.dump. What type of backup was performed? Will the /etc/dumpdates file be updated?

6. At the command prompt, type mkdir /new and press Enter. Next, type cd /new at the command prompt and press Enter to change the current directory to the /new directory.

7. At the command prompt, type restore -tf /root/test.dump and press Enter. What was displayed? Are absolute or relative pathnames used?

8. Type ls –F at the command prompt and press Enter to view the contents of the /new directory. What is displayed? Next, type ls –RF at the command prompt and press Enter to view the contents of the /new directory recursively. What is displayed?

9. At the command prompt, type cd and press Enter to return to your home directory.

10. At the command prompt, type rm –Rf /new and press Enter to remove the directory created in this hands-on project.

11. At the command prompt, type rm –f /root/test* and press Enter to remove the archives created in this hands-on project.

12. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 11