Home » LPI » 117-201 » What utility can you use for this?
You need to copy all the files and directories contained in the home directory to another location. What utility can you use for this?
A. cpio
B. cp
C. mv
D. mvdir
Correct Answer: B
Explanation/Reference:
Explanation: The ‘cp’ command is used to copy files or directories from one location to another. The -r option 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.
Download Printable PDF. VALID exam to help you PASS.
|
|