0

adding alias command permanently

I have created alias for clean command as ' c' , once if i close the terminal it stops...

Instead of temporary usage... how to use it permanent.....???

Advanced commands Add a comment
nathan
asked Feb 07 2017

Answer

0

To add alias permanently, open ~/.bashrc file and add the below line as shown.

 # User specific aliases and functions
alias c='clear'

Once its done, close and reopen the terminal session. Now c will start working as clear command.

Add a comment
jagannatharumugam
asked Feb 12 2017
edited Oct 05 2018
Post your Answer