Multiple choice unix

Which command is used to extract specific columns from the file?

  1. cat

  2. cut

  3. grep

  4. paste

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

The cut command is specifically designed to extract sections (columns/bytes) from each line of a file. cat displays content, grep searches lines, and paste merges lines.