Skip to content

Instantly share code, notes, and snippets.

@pnlrogue1
Last active March 8, 2021 09:10
Show Gist options
  • Save pnlrogue1/7d8b72e053b819faf3d458bbbead14f6 to your computer and use it in GitHub Desktop.
Save pnlrogue1/7d8b72e053b819faf3d458bbbead14f6 to your computer and use it in GitHub Desktop.
Useful Linux Aliases
# Put this in the .bashrc or .zshrc (or equivalent) file
alias please='sudo $(fc -ln -1)' # Repeats the previous command with "sudo" in front of it
alias noprox='$(fc -ln -1) -o ProxyCommand=none' # Used for when you need to SSH without a proxy but your config defaults to using one
alias python_upgrade="pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment