SHARE
TWEET

Untitled

a guest May 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Copy Selection
  2. alias copy="xclip -selection clipboard"
  3.  
  4. # Become system administrator
  5. alias god='sudo -i'
  6. alias root='sudo -i'
  7.  
  8. # List
  9. alias lls='ls -lac'
  10. alias list="ls -alh"
  11. alias ll='ls --color --time-style="+%b %d %Y %H:%M"'
  12. alias la="ls --color -lAGbh --time-style='+%b %d %Y %H:%M'"
  13.  
  14.  
  15. ## Clear and reset
  16. alias c='clear'
  17. alias cl='clear'
  18. alias clc='clear'
  19. alias cls='clear'
  20. alias cle='clear'
  21. alias clea='clear'
  22. alias clear='clear'
  23. alias r='reset'
  24.  
  25. ## Package management
  26. alias ins='sudo apt-get install -y $1'
  27. alias rem='sudo apt-get remove $1'
  28. alias purge='sudo apt-get purge $1'
  29.  
  30. ## Git Alias
  31. alias gf='git fetch -a'
  32.  
  33. ## Kubectl Alias
  34. alias kc='kubectl create -f $1'
  35. alias kd='kubectl delete -f $1'
  36. alias ka='kubectl apply -f $1'
  37.  
  38. ## Ownership
  39. alias own-me="sudo chown -R $USER:$USER ."
  40.  
  41. ## Watch
  42. alias watch="watch -n 1"
  43.  
  44.  
  45. # Monitor logs
  46. alias syslog='sudo tail -100f /var/log/syslog'
  47. alias messages='sudo tail -100f /var/log/messages'
  48.  
  49. # Keep 5000 lines in .bash_history (default is 500)
  50. export HISTSIZE=5000
  51. export HISTFILESIZE=5000
  52.  
  53. # Disk free in human terms
  54. alias df='df -h'
  55.  
  56. # apt Commands
  57. alias apt-install='sudo apt-get install -y -qq'
  58. alias apt-search='apt-cache search'
  59. alias apt-show='apt-cache show'
  60. alias apt-purge='sudo apt-get --purge  remove -y'
  61. alias apt-remove='sudo apt-get remove -y'
  62. alias apt-up='sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top