1 |
2009/3/23 Dale <rdalek1967@×××××.com>: |
2 |
> Oh, OK. <Dale waves hand over head.> If it is set up to add that |
3 |
> option, how do you tell it not to use it? |
4 |
|
5 |
alias ls='/bin/ls --color' |
6 |
alias l='ls -l' |
7 |
|
8 |
With these aliases in your .bashrc (or whatever is appropriate in your |
9 |
environment), you can now use 'ls' and 'l'. Of course, you already had |
10 |
'ls' (namely /bin/ls). |
11 |
|
12 |
If you simply type 'ls' then you are using the alias and you get |
13 |
colour output. If you don't want colour output you use '/bin/ls' (the |
14 |
actual binary). Typing 'l' basically runs '/bin/ls --color -l'. If you |
15 |
don't want that then you don't use 'l'. |