Skip to content

Instantly share code, notes, and snippets.

@tareqy
Created August 30, 2018 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tareqy/8d763d66215abc7a535aee646fd1f3c0 to your computer and use it in GitHub Desktop.
Save tareqy/8d763d66215abc7a535aee646fd1f3c0 to your computer and use it in GitHub Desktop.
Add Custom Commands to Linux shell
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
alias sshr='ssh -l root'
alias cats='cat /opt/appdata/hosts.db | grep'
alias copymyid='ssh-copy-id -i .ssh/id_rsa.pub'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment