Go home

It really bothers me when people type “cd $HOME” or even worse, “cd /home/username”. Why? Just type cd alone, it’ll go home by itself.

Another useful cd tip, use “cd -” as an alias for “cd $OLDPWD” (oldpwd is the previous directory).

Advertisements

2 Comments on “Go home”

  1. fredso says:

    rrrgh, I probably spent up to an extra hour the last 10 years by typing cd ~ !! 😀


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s