How to create an alias
What is an alias?An alias is a command typed on your terminal command line which immediately runs a macro of shell commands.
Where do I add my alias?
In your .bash_alias file, which is located in your home directory. To see a list of all hidden files, type ls -a.
How do I create an alias?
1. In the .bash_alias file, type "alias='<enter your command here>'
2. Save the file
3. Type in source .bashrc to reload your .bashrc file (which adds the aliases to your environment)
No comments:
Post a Comment