adding shortcuts for command line
Hi
I'm trying to set a couple of shortcuts for command line, for example, when I type "ls", I want it to "ls -lh" . I have done this before and I'm sure that it was done by adding an alias in ~/.bashrc or something, but I can't remember at all. Can anyone refresh my memory? I'm running Suse 8.2 regards Hamish |
Re: adding shortcuts for command line
yes, it's in ~/.bashrc. ex:
alias ls='ls -lh' |
In your ~/.bashrc you can add:
alias lsl='ls -lh --color=tty' Then: source .bashrc This will make it work immediatly. It will only work for that user. JN |
Thanks so much guys, it is now sorted.
Much appreciated. Hamish |
If you want all users to have this, then you put it in /etc/bashrc rather than each users ~/.bashrc
|
Quote:
|
Possibly - I haven't got Slack installed on VMW anymore so I can't verify that, sorry. But no, it shouldn't be a hidden file in /etc
|
All times are GMT -5. The time now is 06:20 AM. |