We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

mbadran on 06/16/08


Tagged

Shell Bash configuration


Versions (?)


Who likes this?

5 people have marked this snippet as a favorite

tcol
alexxx
mitry
Leech
moonbather


My .bash_aliases


Published in: Bash 


  1. # avoid mistakes
  2. alias rm='rm -i'
  3. alias cp='cp -i'
  4. alias mv='mv -i'
  5.  
  6. # convenience
  7. alias l='ls -laFh'
  8. alias untar='gtar -zxvf $*'
  9. alias sl='slogin $(whoami)@$(hostname)'
  10. alias pu='pushd $* > /dev/null'
  11. alias po='popd $* > /dev/null'
  12. alias ff='find . -name $*'
  13. alias sfind='find . -name $* -print'
  14.  
  15. # admin
  16. alias free="free -m"
  17. alias ht='history | tail'
  18. alias h='history'
  19. alias j='jobs'
  20. alias jl='jobs -l'
  21. #alias mtop='top -U $USER'
  22. alias usage='du -ak|sort -nr|less'
  23. alias hog='du -ks * | sort -nr | pg'
  24. alias auth='sudo tail /var/log/auth.log'
  25.  
  26. # aptitude
  27. #alias aptitude="sudo aptitude"
  28. #alias update="sudo aptitude update"
  29. #alias upgrade="sudo aptitude upgrade"
  30. #alias install="sudo aptitude install"
  31. #alias remove="sudo aptitude remove"

Report this snippet 

You need to login to post a comment.