Creating Bash Aliases

Creating cli Shortcuts


alias foo=’whatever you want to actually run’


[bash]alias alogin = ‘ssh’
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