CLI – cd

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
    directory
  • 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

CLI - cd

See Apple’s Mac OS X Manual Pages for further command details.


See my other CLI articles


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.