- Open your terminal and type:
sudo nano /etc/bash.bashrc - Scroll down all the way to the end of the file
- Write your alias command:
- Syntax:
alias <your_alias>='<actual_command>'- Example #1:
alias cls='clear' - Example #2:
alias pmfs='php artisan migrate:fresh --seed' - Example #3:
alias nrd='npm run dev'
- Example #1:
- Syntax:
- Save the file and exit
- Restart the terminal to apply changes
Adding custom aliases on Debian/Ubuntu Linux
·57 words·1 min