Skip to content

Instantly share code, notes, and snippets.

@bmatthewshea
Last active February 7, 2019 18:52
Show Gist options
  • Save bmatthewshea/a8615cde1c843c34bbc4a6f8d853c4c2 to your computer and use it in GitHub Desktop.
Save bmatthewshea/a8615cde1c843c34bbc4a6f8d853c4c2 to your computer and use it in GitHub Desktop.
My Ubuntu ~/.bash_aliases
# SUDO
alias sw='sudo -u www-data'
alias beroot='sudo su -'
# NANO
alias e='nano -\$wcS'
alias se='sudo nano -\$wcS'
# FILE-LISTS
alias l='ls -lah'
# PS TREE FORMAT
alias ps='/bin/ps auxfwww'
alias psdetail='/bin/ps -Af fwww'
# SYSTEM-UPGRADES AUTOREMOVE FIRST
alias system_upgrade='echo; \
sudo echo -n "Current Distribution: "; lsb_release -sd; \
echo; \
sudo apt update && echo && \
sudo apt autoremove && \
sudo apt upgrade && \
echo && \
sudo apt autoremove;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment