1 | Current Level: 2 | 3 | 4 | 5
Show hidden files with -a
Try:
ls -Fa
Example output:
./ ../ exercise-data/ north-pacific-gyre/
Understand the output
. means “this directory” (your current location)... means “parent directory” (one level up)..bash_profile) are hidden configuration files.Why are some files hidden?
Hidden files are usually system or configuration files. They start with a . to keep them from cluttering your regular file list.
Combine options Options can be grouped:
ls -F -a
is the same as:
ls -Fa
cd with no argumentTry this:
cd
Then check:
pwd
Output:
/Users/nelle
This takes you back to your home directory, no matter where you were.
ls -Fa to see everything, including hidden files.. and .. are special directory shortcuts.cd with no folder brings you back to your home.pwd, ls, and cd — are the foundation for navigating in the shell.