CompTIA A+ 220-902

Category - Other Operating Systems and Technologies

What Linux command is used to list files within a directory?
  1. dir
  2. ls
  3. cd
  4. cp
Explanation
Answer: B - The ls command is used to list files within a directory.

The ls command has several options to filter files you could be looking for. The administrator can even create a colored list to make reading the list more convenient.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz