220-1102 exam dumps

220-1102 practice question 260 of 828

A+ Core 2. Associate level, CompTIA. Free question with the correct answer and a full explanation.

220-1102 Question 260

Single answerman

A junior Linux technician needs to find the correct command-line options for the tar utility before creating a compressed backup of a user's home directory. The technician knows the command exists but is unsure of the exact syntax and asks you for the fastest built-in way to view the official usage information from the shell. Which command should you recommend?

  1. A

    man tar

  2. B

    chmod tar

  3. C

    grep tar

  4. D

    ps tar

Show answer and explanation

Correct answer: A

Explanation

On Linux systems, 'man' is the standard utility for viewing manual pages for commands, configuration files, system calls, and other documented resources. For command usage, a technician would typically run 'man ', such as 'man tar'. This is a practical skill for A+ Core 2 because technicians often work at the command line and must quickly find accurate syntax without internet access. This aligns with standard Linux administration practice and the manual page system documented in Unix and Linux environments.

  • A. Correct.

    Correct. The man command displays the manual page for a command, including its purpose, syntax, available options, and related documentation. In this scenario, running 'man tar' is the appropriate built-in method to review tar usage before performing the backup.

  • B. Incorrect.

    Incorrect. chmod changes file and directory permissions. A technician unfamiliar with Linux commands might confuse administrative commands with help tools, but chmod does not display documentation for tar or any other command.

  • C. Incorrect.

    Incorrect. grep searches text for matching patterns. Although grep is often used together with other commands or files to filter output, running 'grep tar' by itself does not provide the official manual or syntax information for the tar command.

  • D. Incorrect.

    Incorrect. ps displays information about running processes. Someone might choose this option if they are thinking about checking whether tar is currently running, but it does not help a technician learn command syntax or usage.

Timed practice exam

Take a 220-1102 practice test under exam conditions

90 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam