nerdexam
GIAC

GSNA · Question #287

You want to append a tar file if the on-disk version of the tar file has a modification date more recent than its copy in the tar archive. Which of the following commands will you use to accomplish…

The correct answer is A. tar -u. The tar -u command is used to append a tar file if the on-disk version of the tar file has a modification date more recent than its copy in the tar archive. Answer: B is incorrect. The tar -t command is used to list the contents of an archive. Answer: D is incorrect. The tar -x…

Linux/Unix System Auditing

Question

You want to append a tar file if the on-disk version of the tar file has a modification date more recent than its copy in the tar archive. Which of the following commands will you use to accomplish the task?

Options

  • Atar -u
  • Btar -t
  • Ctar -c
  • Dtar -x

How the community answered

(18 responses)
  • A
    83% (15)
  • B
    11% (2)
  • D
    6% (1)

Explanation

The tar -u command is used to append a tar file if the on-disk version of the tar file has a modification date more recent than its copy in the tar archive. Answer: B is incorrect. The tar -t command is used to list the contents of an archive. Answer: D is incorrect. The tar -x command is used to extract the files from an archive. Answer: C is incorrect. The tar -c command is used to create a new archive of specified files.

Topics

#tar command#file archiving#Linux commands#file modification date

Community Discussion

No community discussion yet for this question.

Full GSNA Practice