Bird
0
0

What does the wc command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - Viewing and Editing Files
What does the wc command do in Linux?
ACounts lines, words, and characters in text
BChanges file permissions
CLists files in a directory
DDisplays disk usage
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of wc

    The wc command is used to count lines, words, and characters in text files or input.
  2. Step 2: Compare with other commands

    Other options like changing permissions or listing files are done by different commands (chmod, ls), not wc.
  3. Final Answer:

    Counts lines, words, and characters in text -> Option A
  4. Quick Check:

    wc = counts lines, words, characters [OK]
Quick Trick: Remember: wc = word count tool for text [OK]
Common Mistakes:
  • Confusing wc with ls or chmod
  • Thinking wc changes files
  • Assuming wc shows disk usage

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes