Instead of having to retype your daily used terminal commands over and over again, you are able to give them aliases for easier access in Linux. Here is how you do it:
- Open a terminal window.
- Type gedit .bashrc and press enter (change gedit to kate, nano or any other texteditor depending on what you have installed).
- In this document you are able to add aliases. Here is one that I have in my file:
alias m='sh monitor.sh'
The letter m in my case is the alias, and the command inside the single quotation marks is the terminal command that will be executed when m is used in the terminal.
- Add your alias(es), save the document and close it.
- Reopen the terminal and your aliases should work.