How this will help you!?
When you create custom commands what you are doing is you are shortening the command and making it easy for yourself by eliminating the hassle of remembering the whole command and with this, the chance of error also get reduced.
Follow the steps :
- fire up the terminal.
- get the sudo access using sudo -s -> enter the password.
- type alias test=’ps -aux’
|some alias examples.|
Note: – here I’m using the test as my custom command name in your case it could be any followed by the command itself. make sure that there is no space in between them.