bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ls -l|head seems to look at all files in directory


From: Kamil Dudka
Subject: Re: ls -l|head seems to look at all files in directory
Date: Mon, 25 May 2009 16:05:39 +0200
User-agent: KMail/1.9.7

On Monday 25 of May 2009 15:43:50 Reuben Thomas wrote:
> Hi,
>
> If I do "ls -l |head" on a directory with many files in it, it takes a long
> time to complete, suggesting that it has read the entire directory. Since
> no sorting is involved, why has it done this?

If you want to turn off sorting, try the -U option.

Kamil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]