Linux · Stage 1 – Finding Your Way Around · Lesson 9 of 51

ls: What Is in This Folder?

Use basic ls to list the names inside the current directory.

First use pwd if you are unsure of your location. Then enter one new command:

Command

ls
Piece-by-piece explanation
  1. ls is short for “list”.
  2. With nothing after it, ls lists the current directory.
  3. It does not move, delete, or open anything.
Expected output
Desktop  Documents  Downloads  Music  Pictures

Your names will differ. Colors may identify directories and file types; spacing may use columns.

If the command displays nothing and immediately returns to the prompt, the current directory may simply contain no visible items.