Where can I modify ls command to personalize with my preferred options?
Where can I find the file that I would modify in emacs, for instance, so that when I issue ls on terminal it invokes "ls -alphX" instead of just ls?
Thankyou in advance. |
On Ubuntu (by default), you can put custom aliases in a file called ~/.bash_aliases .
In your case, then, you would put: Code:
alias ls='ls -alphX' BTW, I don't actually recommend changing ls. You could call it something else, like lsa. So: Code:
alias lsa='ls -alphX' |
Thankyou
Thankyou Mister, then should I do source bash after doing this to activate the changes?
|
solved
Thankyou Mister Williams, apparently it is already working as of writing the alias...
|
Quote:
|
question
It says I do not have permission even though I am already root
|
Quote:
|
command
~/.bashrc sources ~/.bash_aliases
|
Quote:
Code:
source ~/.bash_aliases Code:
source ~/.bashrc |
thankyou
thankyou Sir
|
All times are GMT -5. The time now is 05:42 PM. |