Creating cli Shortcuts
location
~/.bash_aliases
format
alias foo=’whatever you want to actually run’
examples
[bash]alias alogin = ‘ssh [email protected]’
alias rm = ‘rm -i'[/bash]
The second one forces rm (remove) to prompt you to verify. This makes is less likely you delete something by mistake.
Keywords: shortcuts, macro