Bird
0
0

What does the cat command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - Viewing and Editing Files
What does the cat command do in Linux?
ADeletes a file permanently
BDisplays the contents of a file on the terminal
CChanges file permissions
DCreates a new directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of cat

    The cat command is used to read and display the contents of files in the terminal.
  2. Step 2: Compare with other options

    Deleting files, changing permissions, or creating directories are done by other commands like rm, chmod, and mkdir.
  3. Final Answer:

    Displays the contents of a file on the terminal -> Option B
  4. Quick Check:

    cat shows file contents [OK]
Quick Trick: Remember: cat = concatenate and show file content [OK]
Common Mistakes:
  • Confusing cat with rm or mkdir
  • Thinking cat edits files
  • Assuming cat deletes files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes