How do I create an alias in terminal?

Man Ly

New member
How do I create an alias in terminal?
Answer
Here’s how you create persistent aliases in your terminal:
  • Open your terminal emulator of choice.
  • Type sudo nano ~/.bashrc in your BASH terminal window.
  • In that file, add the line: alias c=clear .
  • Save out the file by hitting Ctrl + O (in Nano).
  • Quit Nano by hitting Ctrl + X (in Nano).
  • Close the terminal window.
 

Tìm kiếm

Back
Top