» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 4 » Question 7/20
7.You need to copy all the files and directories contained in the home directory to another location. What utility can you use for this?

cpio
cp
mv
mvdir

Explanation: The 'cp' command is used to copy files or directories from one location to another. The -roption makes the command recursive which means it will copy and entire directory structure from one location to another.

Reference: http://squat.net/puscii/doc/pxii-cursus/copy-mv.html

Incorrect Answers
A: The cpio command can be used to copy all the files into a single archive file at another location. However, it would be easier to copy the contents of the /home directory with the cp command. The cpio command is often used to create tape backups of Linux systems.
C: The 'mv' command is used to move files, not copy them.
D: The 'mvdir' command is used to move directories, not copy them.

« Question 6 Question 8 »