--- Harry Putnam <[EMAIL PROTECTED]> wrote: > "Anthony E. Greene" <[EMAIL PROTECTED]> writes: > > > On 19-May-2002/20:02 -0400, Statux <[EMAIL PROTECTED]> wrote: > >>The old default behavior of "ls" was to list directory contents > in > >>alphabetical order with hidden objects first before regular > objects. Now > >>adays, "ls" ignores the leading '.' of object names and the case, > and just > >>puts everything in ABC order. > > > > I'm pretty sure that dotfiles begin with a dot to take advantage > of the > > default behavior of ls (hide dotfiles). This is old UNIX > behavior. If it > > was different on systems you used, it may have been > vendor-specific or a > > customization by local sysadmins. > > > >>How would one go about changing things back to the old ways? > > > > Add to /etc/bashrc: > > > > alias ls='ls --color -a' > > > > I think OP is talking about the change some time ago where an env > setting is no longer being set that causes the behavior he > descibes. > My remedy is to make the setting my self. > > I noticed it when I installed 7.1 about a year ago > Not sure what the change was that redhat made but this fixes it for > me: > LC_COLLATE=C;export LC_COLLATE > > Set that variable at the command line like above > Then try ls -al (is it properly sorted?) > > unset it like: > > $ unset LC_COLLATE > Then try ls -al again (is it intermixed now?) > > So if that works, you can put it in your .bash_profile or even > system > wide: /etc/profile >
just a related point I find the following alias very useful lsd='ls -l|grep ^d' works to just give a list of directories (handy for weeding compile trees) _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list