Creating Bash Aliases

Creating cli Shortcuts

location
~/.bash_aliases

format
alias foo=’whatever you want to actually run’

examples

[bash]alias alogin = ‘ssh user@example.com’
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

Leave a Reply

Your email address will not be published. Required fields are marked *

This Blog will give regular Commentators DoFollow Status. Implemented from IT Blögg