Skip to main content

Adding custom aliases on Debian/Ubuntu Linux

·57 words·1 min
Essa Athar Zuberi
Author
Essa Athar Zuberi
  • 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'
  • Save the file and exit
  • Restart the terminal to apply changes

Reference
#