ls command sort options
Net Llama!
netllama
Mon May 17 11:37:28 PDT 2004
On Wed, 11 Sep 2002, Brad De Vries wrote:
> Does anyone know of a way to sort the files in the a
> directory the way 'ls' used to sort them?
>
> Over the last 15 years I've gotten used to 'ls -al'
> sorting the files with "." files first,
> uppercase files second, lowercase files last. Now the
> 'ls' command seems to ignore case and the ".".
>
> E.g., if I have 3 files in my current directory:
> .bashrc
> README
> auction
>
> When I do a simple 'ls -al' I expect to see the files
> in the order listed above. Unfortunately, I'm getting
> them in the following order:
> auction
> .bashrc
> README
>
> I've read through the man pages and the info pages but
> have not found the option '--sort-like-it-used-to'.
>
> Any help would be appreciated.
>
> Brad.
>
> P.S. 'ls --version' reveals 4.1
Seeing how you mentioned 15 years, you couldn't possibly be using the Gnu
version of ls way back then, hence the reaon why things don't work the
same under linux.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman netllama at linux-sxs.org
Linux Step-by-step & TyGeMo http://netllama.ipfox.com
More information about the Linux-users
mailing list