Another of the most fundamental commands that the user can enter via CLI is cd.
The cd command changes the directory that the users is currently located in. The proper syntax is ‘cd destination‘. What the destination is can vary widely. For example if you enter:
- cd – with no destination will return the user to their home
- cd .. – will move you up one level in the directory structure
- cd dir1 – will move you to the directory dir1 within the current directory
- cd /etc – will move you to the /etc directory
See Apple’s Mac OS X Manual Pages for further command details.
See my other CLI articles