thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

IT Support & Hardware · Foundational

ls Command

A Linux/macOS command that lists directory contents.

Definition

ls -l shows long format with permissions, owner, size, and date; ls -a includes hidden dot files; ls -lh shows human-readable sizes. It is the equivalent of Windows dir.

Example

ls -la /home/jdoe shows hidden files like .bashrc.

Exam tip

Use ls -a to reveal hidden files on Linux.

Related terms