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

Re: "ls -al * " not work



Hello Chloe K:

It's actually working very well.  In your first command it's telling you you have
many many files.  Much more than the internal buffers of ls can process.

Try the following:

find . -maxdepth 1 -print | sort | more


find . -maxdepth 1 -name "<wildcard of your filespec>" -print | sort | more

Example:
find . -maxdepth 1 -name "*.db" -print | sort | more


Hope this helps.

Regards,
Lou

On Nov 23, 2007 10:54 AM, chloe K <chloekcy2000 yahoo ca> wrote:
Hi

My ls command not works  properly
Are there many files problem?

[host]# ls -al |wc -l
55264

[host]# ls -al *.db |more
-bash: /bin/ls: Argument list too long

[host]# ls -al *
-bash: /bin/ls: Argument list too long
[host]# ls -al *.*
-bash: /bin/ls: Argument list too long



All new Yahoo! Mail -
Get a sneak peak at messages with a handy reading pane.

--
fedora-list mailing list
fedora-list redhat com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


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