How to define custom alias in Ubuntu ?
Hello,
I am new here and my question is : How to define custom alias in Ubuntu automatically , so I can use it next time I do to login ? Because every time I login, I need to define it using Terminal Mode. I tried to put the command i. e "alias l='ls -l' in my .profile, but it didn't work, if I type alias it didn't come out what I put it . Thanks. |
The filename that the line alias l='ls -l' goes in is .bash_profile rather than .profile in your home directory. If it still isn't working, make sure your terminal application is actually getting a true login shell.
|
Put the alias in ~/.bashrc
Regards |
Thanks . .
Quote:
|
Thanks anyway . .
Quote:
But now I can define it in .bashrc Thanks anyway .. |
Aliases
Don't put your custom aliases in .profile. Instead see the .bashrc in your home directory for adding aliases.
|
Thanks
Quote:
I am done with my aliases and put it in .bashrc Thanks millig |
All times are GMT -5. The time now is 02:18 AM. |