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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose output of cd command?

583


What is the command to calculate the size of a folder?

525


How do I check my system performance?

581


What does free command do in linux?

592


What is the command to delete a file linux?

539






What is mask and umask in linux?

553


You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?

542


What does history command do in linux?

544


Explain about sh?

598


Explain the working of command grouping?

554


How can we increase disk read performance in single command in Linux?

576


How do I find the console in linux?

557


Explain trap command of linux?

584


Explain difference between swap partition and swap file?

503


What is $@ in shell?

548