mirror of
https://github.com/lawrencesystems/dotfiles.git
synced 2025-03-05 20:49:40 -08:00
30 Handy Bash Shell Aliases
https://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html
This commit is contained in:
parent
722ab732db
commit
c27838f0a2
|
@ -6,3 +6,29 @@ alias dc='cd'
|
||||||
alias nethack-online='ssh nethack@nethack.alt.org ; clear'
|
alias nethack-online='ssh nethack@nethack.alt.org ; clear'
|
||||||
alias tron-online='ssh sshtron.zachlatta.com ; clear'
|
alias tron-online='ssh sshtron.zachlatta.com ; clear'
|
||||||
alias glog='git log --oneline --graph --color --all --decorate'
|
alias glog='git log --oneline --graph --color --all --decorate'
|
||||||
|
|
||||||
|
# 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'
|
||||||
|
#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'
|
||||||
|
|
Loading…
Reference in a new issue