nerdexam
GIAC

GSNA · Question #266

Which of the following commands can be used to format text files?

The correct answer is D. pr. The pr command is used to format text files according to the specified options. This command is usually used to paginate or columnate files for printing. Answer: B is incorrect. The ps command reports the status of processes that are currently running on a Linux computer…

Linux/Unix System Auditing

Question

Which of the following commands can be used to format text files?

Options

  • Awc
  • Bps
  • Ctail
  • Dpr

How the community answered

(18 responses)
  • A
    6% (1)
  • B
    6% (1)
  • C
    11% (2)
  • D
    78% (14)

Explanation

The pr command is used to format text files according to the specified options. This command is usually used to paginate or columnate files for printing. Answer: B is incorrect. The ps command reports the status of processes that are currently running on a Linux computer. Answer: A is incorrect. The wc command is used to count the number of bytes, words, and lines in a given file or in the list of files. Answer: C is incorrect. The tail command is used to display the last few lines of a text file or piped

Topics

#Linux commands#text formatting#pr command#file utilities

Community Discussion

No community discussion yet for this question.

Full GSNA Practice