Advertisement
killermist

.bash_aliases

Jul 29th, 2012 (edited)
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.14 KB | None | 0 0
  1. # some often used bash aliases
  2. # typically summoned by ~/.bashrc for login shells
  3. alias ~='cd ~'
  4. alias ..='cd ..'
  5. alias cp='cp -iv'
  6. alias df='df -h'
  7. alias du='du -h'
  8. alias l='ls -ah --color=auto'
  9. alias la='ls -lah --color=auto'
  10. alias ll='ls -lh --color=auto'
  11. alias ls='ls -h --color=auto'
  12. alias mv='mv -iv'
  13. alias rm='rm -iv'
  14.  
  15. #rsync usefulness suite
  16. alias      rsmv='rsync -ahP --remove-sent-files ' #doesn't clean up emptied directories.
  17. alias      rscp='rsync -ahP '
  18. # similarity testing
  19. alias     rsdry='rsync -ahPn '      # Performs simple size/date comparisons
  20. alias rscompare='rsync -ahPcn ' # Performs (expensive) checksum comparisons
  21.  
  22. alias where='type -all'   #held over since years, no reason to remove, I guess.
  23. alias which='type -path'  #held over since years, no reason to remove, I guess.
  24. alias screens='ps afx | grep SCREEN;echo;echo "##########";echo;screen -ls #'
  25. alias mp3shrink='lame -m m --abr 80'  #typically for a portable player
  26. alias fdupes='fdupes -rnA'
  27.  
  28. # auto-sudo
  29. alias   zfs='sudo zfs '
  30. alias zpool='sudo zpool '
  31. alias   zdb='sudo zdb '
  32. alias    dd='sudo dd status=progress bs=4M '
  33. alias dmesg='sudo dmesg '
Tags: Linux BASH zfs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement