Ubuntu – How to add an alias to a command in terminal

aliasbashrccommand line

By typing a manually specified command in terminal I want to execute some other command.

How could add an alias to a command? Can i do that with the help of the terminal or should I edit some kind of file?

Best Answer

alias new_name='old command'

To create a permanent alias you have to edit the .bashrc file in your home directory.

More info here

More .bashrc files here

Related Question