Multiple choice technology operating systems

A file contains data as given below, Line 1 Line 2 Line 3 Line 4 Line 5 A command which can be used to get the second column from this file is

  1. cat test | cut -d ' ' -f1

  2. cat test | cut -d ' ' -f2

  3. cat test | cut -f2

  4. None

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

The cut command extracts specific columns from delimited text. With space delimiter (-d ' '), -f2 extracts the second field. Option A extracts field 1, and C uses default tab delimiter. The correct command to get the second column is cut -d ' ' -f2.