Any path that doesn't start with a / is relative to your current working directory
When accessing a file using its relative path, the file path starts in
When accessing a file using its absolute path, the file path starts in
.
.
the current/working directory
the root folder (~)
$ cd ~
$ ls ~/Documents
$ ls Documents
$ ls /
$ ls ../..What do you think
$ ls -l ~/Documents/../
will do?
Tab Autocompletes stuff
Type $ ls then double tap tab!
Type $ ls L then single tap tab
Grab a buddy and practice:
Exercise: 5 minutes in Pairs
Using Finder: Pick a directory somewhere under the /Users directory on your partner's computer
Your Task: Navigate to that directory in a single command from your home directory using a relative or absolute path
Help your partner if they are having trouble and use Tab Completion
Complete "File Manipulation" section of Command Line LE
mv
cp
touch
rm
f
r
cat
grep
less