Skip to content

Instantly share code, notes, and snippets.

@jeremyjs
Created June 16, 2014 16:17
Show Gist options
  • Save jeremyjs/5d01584ca2014b8fb25e to your computer and use it in GitHub Desktop.
Save jeremyjs/5d01584ca2014b8fb25e to your computer and use it in GitHub Desktop.
# change to the 'myfolder' directory within the current directory
$ cd myfolder/
$ cd ./myfolder
$ cd myfolder
$ cd ../myfolder_parent/myfolder
# change to the 'usr' directory within the root directory
$ cd /usr/
$ cd /usr
# change to your home directory
$ cd /Users/jmeyer/
$ cd ~
$ cd $HOME
# navigate up two directories and check pwd
$ cd ~
$ cd ../..
$ pwd
/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment