Difficulty: Easy
Correct Answer: ls
Explanation:
Introduction / Context:
Listing files is one of the most common terminal tasks. On Unix-like systems, the standard tool for enumerating directory contents is distinct from the commands used on DOS/Windows, so it is important for cross-platform users to recognize the correct utility and common flags.
Given Data / Assumptions:
Concept / Approach:
The ls command lists files and directories. Common options include -l (long format), -a (include hidden files), and -t (sort by modification time). While some systems alias dir to ls, ls is the canonical Unix command.
Step-by-Step Solution:
Verification / Alternative check:
Use type ls or which ls to confirm the binary. Explore man ls for exhaustive options.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
ls.
Discussion & Comments