Bird
0
0

Which of the following is the correct syntax to list files in a directory using the terminal?

easy📝 Syntax Q3 of 15
Linux CLI - Linux Basics and Terminal
Which of the following is the correct syntax to list files in a directory using the terminal?
Als -l
Blist files
Cshow files
Ddir /list
Step-by-Step Solution
Solution:
  1. Step 1: Recall common Linux commands

    The command to list files is 'ls', and '-l' shows detailed info.
  2. Step 2: Evaluate other options

    'list files' and 'show files' are not valid commands; 'dir /list' is Windows syntax.
  3. Final Answer:

    ls -l -> Option A
  4. Quick Check:

    List files command = ls -l [OK]
Quick Trick: Use 'ls -l' to list files with details in terminal [OK]
Common Mistakes:
MISTAKES
  • Using Windows commands in Linux terminal
  • Typing commands as plain English

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes