3-Navigating the Filesystem
- Recap
- Filesystem is a Tree Structure
- / is the root
- /Volumes/Name of disk
- . = name of current folder
- .. = name of enclosing folder
- ~ = home folder = /Users/Username
- Moving Around the Filesystem
- pwd
- tells you the current working directory
- if you just open a Terminal and type pwd, it should tell you
that you are in your home folder
- cd
- change directory
- 4 Uses
- 1. cd (no arguments)
- take me to my ~
- 2. cd -
- take me to where i was last
- 3. cd /path or relative path
- if /path, take me to this absolute path
- if relative path, take me to this directory relative
to the one i am currently working in
- to go from ~ to your desktop, type either:
- cd ~/Desktop
- cd Desktop
- 4. cd ..
- take me to the enclosing folder
- for relative paths, you can incorporate ..
- if you are in ~/Desktop, you can go to
~/Documents by
- cd ../Documents
- Bart Busschots
- bartb.ie
- impodcast.tv
- podfeet.com