[SunRescue] Ok...newbie question...

Bill Bradford rescue at sunhelp.org
Thu Dec 7 15:41:43 CST 2000


On Thu, Dec 07, 2000 at 03:01:30PM -0600, Mike Hebel wrote:
> How do you get the number of files in a given directory?  I can get the
> total size, individual size, date, time, etc. but not how many files there
> are.  Does this show up anywhere easily?

ls -al . | wc -l

and subtract two (for the . and .. entries)

Bill

-- 
Bill Bradford
mrbill at mrbill.net
Austin, TX



More information about the rescue mailing list