Home » LPI » 117-201 » Which of the following commands would accomplish this?
As a system administrator, you are instructed to backup all the users home directories. Which of the following commands would accomplish this?
A. tar rf usersbkup home/*
B. tar cf usersbkup home/*
C. tar cbf usersbkup home/*
D. tar rvf usersbkup home/*
Correct Answer: B
Explanation/Reference:
Explanation: The c option used with the tar command is used to create an archive. The f <filename> option allows you to specify a filename.
Reference: http://www.oreillynet.com/linux/cmd/t/tar.html
Incorrect Answers
A:The r option is used to append the files to an existing archive.
C:The b option is used to specify a block size. As no block size is specified, this answer is incorrect.
D:The r option is used to append the files to an existing archive.
Download Printable PDF. VALID exam to help you PASS.
|
|