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 command is used to check the number of files, disk space, and each user’s defined quota?

519


What is linux load average?

594


What is pwd in linux command?

703


What is in mkdir command?

544


Brief about FTP hostname?

601






Who whoami linux?

557


How do you do nslookup?

537


What is $$ in shell script?

517


You wish to print a file ‘draft’ with 60 lines to a page. What command would you use?

563


Explain the linux directory commands along with the description?

512


How is grep so fast?

568


You read an article that lists the following command: dd if=/dev/fdo bs=512 of=/new what does this accomplish?

563


Explain grep command.

599


Why ms dos is used?

604


How do I run bash on windows?

507