Unix Useful Commands

alias + “pushd .”
alias – “popd”
alias u “cd ..”
alias p “pwd”
>> put in ~/.mycshrc

“history”
history | grep command-name
!<number>
Untar gz:
tar -xvzf file.tar.gz
Untar:
tar -xvf file.tar

 

Repeat previous command

  1. up arrow
  2. Type !! and press enter
  3. Type !-1 and press enter.
  4. Press Control+P will display the previous command

Posted on October 27, 2011, in The Lab and tagged . Bookmark the permalink. Leave a comment.

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

%d bloggers like this: