Create permanent command alias (Linux)

PROBLEM: My set up aliases are not persistent after reboot
SOLUTION: Write them to ~/.bashrc

Edit ~/.bashrc

Using sudo

sudo nano ~/.bashrc

Add as many aliases as you wish! Separe by new line.

I prefer adding them on the beginning of the file so I can find them quickly.

alias ll="ls -l"
alias cls="clear"

Leave a Reply

Your email address will not be published. Required fields are marked *