Linux Essentials (010-160) — Question 18

Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?

Answer options

Correct answer: B

Explanation

The correct answer is B because the '-c' option tells tar to create an archive and the '-f' option specifies the filename. Options A and C are incorrect due to the use of incorrect flags, while D and E do not correctly create an archive file.