Directory navigation in IPython
A reference table of commands to use when navigating directories in IPython.
| pwd | display the present working directory |
| ls | list the contents of the present working directory |
| cd /tmp | move to the /tmp directory |
| cd .. | move up one directory |
| cd - | move to the last directory visited |
| bookmark mydir | save the current directory as mydir |
| bookmark mydir ../python | bookmarks the directory "c">../python (up one directory, then down into python) as mydir |
| cd mydir | change to the directory saved in the bookmark mydir |
| dhist | view a history of the directories you’ve been to |
| cd -2 | change to the directory listed in position 2 in the directory history |
| pushd /usr/lib | push /usr/lib onto the directory stack |
| dirs | show directories in the directory stack |
Tags: directory navigation, IPython, IPython help, Python