"ls -al * " not work

Lou Spironello lspironello at gmail.com
Fri Nov 23 16:02:23 UTC 2007


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 at 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 - * <http://ca.promos.yahoo.com/newmail/overview2/>
> ------------------------------
> Get a sneak peak at messages with a handy reading pane.
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071123/62646084/attachment-0001.htm>


More information about the fedora-list mailing list