Bird
0
0

What does the ls command do when used in the terminal?

easy📝 Conceptual Q1 of 15
Linux CLI - Linux Basics and Terminal
What does the ls command do when used in the terminal?
ADisplays the current date and time
BChanges the current directory
CCreates a new file
DLists files and directories in the current folder
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of ls

    The ls command is used to show the contents of the current directory.
  2. Step 2: Compare options with command behavior

    Only Lists files and directories in the current folder matches the behavior of listing files and directories.
  3. Final Answer:

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

    Command ls = Lists files [OK]
Quick Trick: Use ls to see files in your folder quickly [OK]
Common Mistakes:
  • Confusing ls with cd
  • Thinking ls creates files
  • Expecting ls to show date/time

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes