How do I create an alias in Ubuntu?

Linh Chi

New member
How do I create an alias in Ubuntu?
Answer
To create an alias in Ubuntu 16 via the commandline, do the following:
  • Open .bashrc. sudo nano -Bu ~/.bashrc.
  • Scroll down to the bottom of the file and add the desired aliases. #Custom Aliases.
  • Save and close the file (Ctrl + O, Enter, then Ctrl + X)
  • Test your alias.
 

Tìm kiếm

Back
Top