Listing Files and Directories

Learn how to list files and directories using the CLI.

The ls command

The ls command shows us the contents of a directory. By default, it only shows part of the story. We can get a more descriptive listing by passing some additional arguments to the command. Let’s run the terminal to execute the command ls -l in our home directory. (That’s a lowercase L.)

$ ls -l

Get hands-on with 1400+ tech skills courses.