Thursday, April 17, 2014

Changing Directories Faster

Having a rough time navigating around?  Try using these couple of commands to help speed you up:

Use pushd and popd (manage a stack of directories you'll revisit):
pushd /etc/

Change to the previous directory you were in:
cd -

Home directory: /home/user
cd ~

Evaluate code inline to change directories:
cd /home/`whoami`

Search for a previous command that you've entered via reverse-i-search:
Use R

Also, popularly use your history up/down arrows.  

No comments: