Click to See Complete Forum and Search --> : When using MORE, how to distinguish directories?
cheapbastard
03-12-2001, 04:30 PM
When giving the following command:
ls | more
I cannot tell the difference between files and directories! What is done about this? :confused:
ls -F |more look for entries ending in a /
or ls -l |more look for entries starting with a 'd'
<edit>just had an idea....
in your ~/.bashrc file add a line that looks like this
alias ls='ls -F --color=auto'
Then when you log in ls will actually give you ls -F and you will get a pretty output to boot.
<edit>
[ 12 March 2001: Message edited by: ep0k ]
TheGimp
03-12-2001, 07:32 PM
find|more would do it but I guess you're looking at file attributes.
Tyr-7BE
03-12-2001, 08:12 PM
while on this topic, does anyone know how to get a gratuitous amount of colour? I recall with Drake 7.2, executable binaries would be in one colour, tar files in another, normal files in another, directories in another...it was so dang beautiful! Can anyone who knows how to get this tell me? Or anyone who has Mandrake 7.2, look in your ~/.bashrc file and tell me what ls is aliased as? Thanks :)
mychl
03-12-2001, 09:28 PM
Me Too!!!!!
I did the color thing above, and its better, but not as good as all the colors in drake 7.0
Also, is there a bashrc file for the root user, where, all that stuff.
Thanks :p
jbstew32
03-12-2001, 09:38 PM
ls --color=always | more
mychl
03-12-2001, 09:52 PM
That did the same as color=auto, I guess its ok, but the rpms aren't red like they used to be. Thanks