Here is a bug what I find when list a larger number of files in a
directory:

I have a directory that has

$ls | wc -l
20246
files.

However, if I  type
$ls *.dat | wc -l
then i got errors:

bash: /bin/ls: Argument list too long
0

I know thare are total more than 9500 files with surfix .dat.
So I doubt if ls *.dat does not work for total files more than certain
amount.

My computer is laptop Linux 6.0, Inspiron 7000.
I do not know if this is the bug of "ls" or laptop's problem.




Reply via email to