Multiple choice

Which command is used to extract a column from a text file?

  1. cut

  2. paste

  3. tee

  4. tr

  5. man

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The cut command is used to extract a vertical selection of columns (character position) or fields from one or more files. The syntax for extracting a selection based on a column number is: $ cut -c n [filename(s)]