220-1102 Question 260
Single answermanA 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?
- A
man tar
- B
chmod tar
- C
grep tar
- 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
- 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.