Linux Ubuntu Make Alias Permanent
👤 By Webune | 📆
This is how you make a permanent alias in Ubuntu Linux with these simple terminal commands.
Method 1
Open file ~/.bashrc with your favorite editor. lets say we use Visual Code for example or Nano:
Visual Code:
$ code ~/.bashrc
Nano:
$ nano ~/.bashrc
Add teh following line at the end and save:
alias sail="./vendor/bin/sail"
Now save the changes:
$ source ~/.bashrc
Method 2
Alternately, you can create an alias files, notice in the ~/.bashrc you will see this code below:
$ nano ~/.bash_aliases
All you have to do is create the file or if you already have it edit and add the following line
alias sail="./vendor/bin/sail"
Save the changes and then send the source command to activate the new alias into your system
source ~/.bash_aliases
Thats it.