2018-02-19 04:11:07 -08:00
|
|
|
alias gti='git'
|
2019-05-28 19:24:13 -07:00
|
|
|
#alias tmux='tmux -2'
|
2018-02-19 04:11:07 -08:00
|
|
|
alias less='less -R'
|
|
|
|
alias diff='colordiff'
|
|
|
|
alias dc='cd'
|
|
|
|
alias nethack-online='ssh nethack@nethack.alt.org ; clear'
|
|
|
|
alias tron-online='ssh sshtron.zachlatta.com ; clear'
|
|
|
|
alias glog='git log --oneline --graph --color --all --decorate'
|
2020-12-18 23:25:37 -08:00
|
|
|
|
|
|
|
# 30 Handy Bash Shell Aliases For Linux / Unix / MacOS
|
|
|
|
# https://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html
|
|
|
|
alias ports='netstat -tulanp'
|
|
|
|
#16: Add safety nets
|
|
|
|
# do not delete / or prompt if deleting more than 3 files at a time #
|
|
|
|
alias rm='rm -I --preserve-root'
|
|
|
|
# confirmation #
|
|
|
|
alias mv='mv -i'
|
|
|
|
alias cp='cp -i'
|
|
|
|
alias ln='ln -i'
|
|
|
|
# Parenting changing perms on / #
|
|
|
|
alias chown='chown --preserve-root'
|
|
|
|
alias chmod='chmod --preserve-root'
|
|
|
|
alias chgrp='chgrp --preserve-root'
|
2020-12-19 00:00:37 -08:00
|
|
|
#20: Pass halt/reboot via sudo
|
|
|
|
# reboot / halt / poweroff
|
|
|
|
alias reboot='sudo /sbin/reboot'
|
|
|
|
alias poweroff='sudo /sbin/poweroff'
|
|
|
|
alias halt='sudo /sbin/halt'
|
|
|
|
alias shutdown='sudo /sbin/shutdown'
|
2020-12-18 23:25:37 -08:00
|
|
|
#21: Control web servers
|
|
|
|
# also pass it via sudo so whoever is admin can reload it without calling you #
|
|
|
|
alias nginxreload='sudo /usr/local/nginx/sbin/nginx -s reload'
|
|
|
|
alias nginxtest='sudo /usr/local/nginx/sbin/nginx -t'
|
|
|
|
alias lightyload='sudo /etc/init.d/lighttpd reload'
|
|
|
|
alias lightytest='sudo /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -t'
|
|
|
|
alias httpdreload='sudo /usr/sbin/apachectl -k graceful'
|
|
|
|
alias httpdtest='sudo /usr/sbin/apachectl -t && /usr/sbin/apachectl -t -D DUMP_VHOSTS'
|
|
|
|
#27 Resume wget by default
|
|
|
|
## this one saved by butt so many times ##
|
|
|
|
alias wget='wget -c'
|
2020-12-19 00:00:37 -08:00
|
|
|
|