What command you use for cpio to create a backup called
backup.cpio of all the users’ home dirs?

Answers were Sorted based on User's Feedback



What command you use for cpio to create a backup called backup.cpio of all the users’ home dirs?..

Answer / harsha

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.

Is This Answer Correct ?    6 Yes 0 No

What command you use for cpio to create a backup called backup.cpio of all the users’ home dirs?..

Answer / accenture

Restoring a back.cpio file/directory to its original
location. run the below command:

#cpio -idmv < backup.cpio file/directory)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

What is the difference between diff and cmp command in unix?

0 Answers  


find out what file systems supported by kernel?

4 Answers  


What command would you use to check how much memory is being used by linux?

0 Answers  


What are vim commands?

0 Answers  


What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc in Linux?

0 Answers   UGC Corporation,






What is the role of case sensitivity in affecting the way commands are used?

0 Answers  


Diff b/w C-shell and Born-shell

2 Answers   HP,


The ‘logout’ built in command is used to

0 Answers  


What are runlevels in linux?

0 Answers  


What is the export command used for?

0 Answers  


How can you check the amount of lines in a file?

0 Answers  


How do you insert comments in the command line prompt?

0 Answers  


Categories