1 | 2 | 3 | Current Level: 4 | 5 | 6 | 7 | 8
ls
Run the ls
command
Type this in the terminal:
ls
Then press Enter.
Check the output You’ll see a list of folders and files in your current location. For example:
Applications Documents Library Music Public
Desktop Downloads Movies Pictures
This shows what’s in your home directory. Your list may look different depending on your computer and how it’s set up.
Make the output easier to read
You can use the -F
option to help identify what each item is:
ls -F
Example output:
Applications/ Documents/ Library/ Music/ Public/
Desktop/ Downloads/ Movies/ Pictures/
Here’s what the symbols mean:
/
at the end means it’s a directory (folder)@
means it’s a link*
means it’s an executable file (like a program)Look for colors (optional) Some terminals use color to show the difference between files and directories. For example:
ls
stands for “list”.pwd
).-F
to quickly tell which items are folders.