Unix Uniq Commands
Some Unix unique Commands
There are some unique Unix commands which is very useful and handy when working
- Find command that you dont know
apropos "list dir"
man -k "find files"
- Fixing Typos in last command line
dc /tmp
^dc^cd
- Bang ! commands
!!
yum install vim
sudo !!
!*
!^
!$
!
!?keyword?
!-N
-
Incron
-
Double dash
rm -rf -- $symbl_dir or mkdir -- $symbl_dir
- Comma and Braces Operators
cp httpd.conf{,.bak} # backup httpd.conf to httpd.conf.bak
mv httpd.conf{.back,}
cp example old-!#^
- Push and Pop Directories
pushd dirs popd
- Incremental backups with rsync
rsync -a –link-dest=prevbackup src dst
- Ascii processtree
ps -aux -forest
- Tree view of git commits
git log --graph --oneline
- Tee
crontab -l | tee crontab.bkp
- ncurses disk usage analyzer
ncdu # yum install ncdu
- Create empty file
> file