Files and paths · Question 10 of 12

What does ls -R do?

1 answer is correct. Medium Created with AI

Show answer

Answer

  • D It also lists the contents of all subdirectories

Explanation

The capital -R stands for recursive: ls first prints the directory and then each subdirectory under its own heading. The lowercase -r only reverses the order.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications