Blog Archives

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
Advertisements