Bird
0
0

What does the ls command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - Navigating the File System
What does the ls command do in Linux?
ACreates a new directory
BDeletes files from the current folder
CLists files and directories in the current folder
DMoves files to another folder
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of ls

    The ls command is used to show what files and folders are inside a directory.
  2. Step 2: Identify the correct description

    Among the options, only listing files and directories matches what ls does.
  3. Final Answer:

    Lists files and directories in the current folder -> Option C
  4. Quick Check:

    ls = list files [OK]
Quick Trick: Remember: ls = list files and folders [OK]
Common Mistakes:
  • Confusing ls with commands like rm or mkdir
  • Thinking ls deletes or moves files
  • Assuming ls creates directories

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes