nerdexam
CompTIACompTIA

XK0-005 · Question #189

XK0-005 Question #189: Real Exam Question with Answer & Explanation

The correct answer is A: tar -tvf archive.tar. Listing Tar Archives When used with the --list (-t) option, the tar command lists the content of a tar archive without $ tar -tf archive.tar Extracting Tar Archive Most of the archived files in Linux are archived and compressed using a tar or tar.gz format. Knowing how to extract

System Management

Question

A junior systems administrator is scanning archive.tar files with an antivirus scanner. The administrator is given the following tasks: - List all files that are in the archive.tar files. - Extract all files from the archive.tar files. Which of the following actions should be performed to meet these requirements? (Choose two.)

Options

  • Atar -tvf archive.tar
  • Btar -xf archive.tar
  • Ctar -A archive.tar
  • Dtar -av archive.tar
  • Etar -r archive.tar
  • Ftar -uvz archive.tar

Explanation

Listing Tar Archives When used with the --list (-t) option, the tar command lists the content of a tar archive without $ tar -tf archive.tar Extracting Tar Archive Most of the archived files in Linux are archived and compressed using a tar or tar.gz format. Knowing how to extract these files from the command line is important. $ tar -xf archive.tar https://linuxize.com/post/how-to-create-and-extract-archives-using-the-tar-command-in-linux/

Topics

#tar command#file archiving#command-line utilities

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions