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
- up arrow
- Type !! and press enter
- Type !-1 and press enter.
- Press Control+P will display the previous command
Posted on October 27, 2011, in The Lab and tagged unix linux commands. Bookmark the permalink. Leave a comment.
Leave a comment
Comments 0