Advertisement
cirrus

Shell Aliases

Apr 12th, 2013
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.44 KB | None | 0 0
  1. # alias
  2. alias pacsyy="sudo pacman -Syy"  #update mirrors
  3. alias pacsu="sudo pacman -Su"    #upgrade all packages
  4. alias pacinfo="sudo pacman -Si"     #show information about a package
  5. alias pacq="pacman -Q"              # query
  6. alias pacs="sudo pacman -S"         #install package/s
  7. alias paclist="sudo pacman -Ql"     #list all files installed by package
  8. alias paclistall="pacman -Qqm"        #list all packages locally installed
  9. alias pacr="sudo pacman -R"          #uninstall one or more package/s
  10. alias pacrns="sudo pacman -Rns"     #uninstall package and deps
  11. alias pacorph="sudo pacman -Qdt"    #list all packages which are orphaned
  12. alias pacown="pacman -Qo"           #determine which package owns a given file
  13. alias pacsearch="sudo pacman -Ss"     #search for a package
  14. alias pacachec="pacman -Sc"         #delete all package files from cache
  15. alias ysearch="yaourt -Ss"          #search for a package AUR
  16. alias yinstall="yaourt -S"          #yaourt install package
  17. alias reboot="systemctl reboot"       #reboot
  18. alias poweroff="systemctl poweroff"  #reboot
  19. alias shutdown="systemctl poweroff"   #poweroff
  20. alias supy="supybot Neo.conf"       #execute supybot
  21. alias wee="weechat-curses"          #execute weechat
  22. alias ncm="ncmpcpp"                 #execute ncmpcpp
  23. alias news="newsbeuter"              #execute newsbeuter
  24. alias twit="pieppiep"                 #execure pieppiep
  25. alias twitr="pieppiep fetch 20"       #fetch 20 twitter posts
  26. alias unetbootin="sudo unetbootin"       #launch unetbootin
  27. alias gparted="sudo gparted"                #launch gparted
  28. alias netlisten='lsof -i -P | grep LISTEN'    #network monitor
  29. alias nstat="netstat -p TCP -eWc"             #network monitor
  30. alias nstato="netstat -tuael --numeric-hosts --numeric-ports"
  31. alias pizza="sleep 10m && echo ⚠⚠⚠ pizza is done ⚠⚠⚠ "  #get shell alert in 10 minutes
  32. alias userlist='cat /etc/passwd |grep "/bin/bash" |grep "[5-9][0-9][0-9]" |cut -d: -f1'  #users
  33. alias age="sudo dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:'"   #age
  34. alias teamvstart="sudo systemctl start teamviewerd"    #start teamviewer
  35. alias teamvstop="sudo systemctl stop teamviewerd"     #stop teamviewer
  36. alias ytv="youtube-viewer -C"                    #youtube-viewer w/ colour
  37. alias ytdl="youtube-viewer -d"                  #youtube-viewer download -[URL]
  38. alias subs="youtube-viewer -C -S"                   #youtube-viewer w/ colour/subscriptions
  39. alias sshon="sudo systemctl start sshd.service"     #startssh
  40. alias sshoff="sudo systemctl stop sshd.service"   #stop ssh
  41. alias starwars="telnet towel.blinkenlights.nl"   #starwars ascii
  42. alias coweru="cower -u"             #Check foreign packages for updates in the AUR.
  43. alias cowers="cower -s"             #search repo
  44. alias coweri="cower -i"             #info
  45. alias makepkgi="makepkg -ci"        #build,install
  46. alias makepkgsci="makepkg -sci"     #build,getdeps,clean,install
  47. alias pacmanlog='tail -n 40 /var/log/pacman.log'  #view pacman log
  48. alias errorlog='sudo tail -n 40 /var/log/errors.log'   #view error log
  49. alias size='sudo du -hsx * | sort -rh | head -10'  #list 10 dir/files by size
  50. alias sizeall='sudo du -a /var | sort -n -r | head -n 10' #list 10 dir by size
  51. alias uuid="ls /dev/disk/by-uuid/ -alh"
  52. alias du="du -h"
  53. alias cdd="cd .."
  54. alias toprun="ps axo %cpu,%mem,comm |sort -unr| head -n 9"
  55. alias hist="history 24"
  56. alias psusage="ps aux  --sort=-%cpu | grep -m 11 -v `whoami`"
  57. alias lbig="ls -lSrh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement