Re: directory ops?

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Wed, 2 Jun 1999 18:50:09 +0200


Alexander Viro wrote:
> > GNU ls stats in readdir order, so no bogosort.
>
> Yes, but ls -l sorts the results. Which is the place where one might
> insert interesting algorithms ;-) Seriously, I would not be surprised if
> GNU ls had higher userland overhead than BSD one. I'll look them through
> today.

Ah, good point. GNU ls has these options which you might want to try:

-U do not sort; list entries in directory order
-f do not sort, enable -aU, disable -lst

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/