What command would you type to use the cpio to create a backup called backup.cpio of all the users' home directories?
Operating System Interview Questions and Answers
(Continued from previous question...)
What command would you type to use the cpio to create a backup called backup.cpio of all the users' home directories?
find /home | cpio -o > backup.cpio
The find command is used to create a list of the files and directories contained in home. This list is then piped to the cpio utility as a list of files to include and the output is saved to a file called backup.cpio.
(Continued on next question...)
Other Interview Questions
|