Bird
0
0

Which command is best suited to extract specific columns from a text file in Linux?

easy📝 Conceptual Q2 of 15
Linux CLI - Text Processing
Which command is best suited to extract specific columns from a text file in Linux?
Aping
Bls
Ccut
Dmkdir
Step-by-Step Solution
Solution:
  1. Step 1: Identify command purpose

    The 'cut' command extracts sections from each line of a file, such as columns.
  2. Step 2: Compare with other commands

    'ls' lists files, 'mkdir' creates directories, 'ping' tests network connectivity, so they don't extract columns.
  3. Final Answer:

    cut -> Option C
  4. Quick Check:

    Extract columns = cut = D [OK]
Quick Trick: Use 'cut' to slice columns from text lines quickly [OK]
Common Mistakes:
  • Confusing 'ls' with text extraction
  • Using 'mkdir' for file content operations
  • Thinking 'ping' processes text files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes