Files and paths · Question 1 of 12

Which command shows the files and subdirectories of a directory?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • C ls

Explanation

ls lists the contents of the current or a given directory. pwd only shows the path of the current directory, cd changes the directory, cat prints the contents of files.

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