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

Martin Frost rescue at sunhelp.org
Fri Dec 8 10:15:39 CST 2000


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?

Just list the directory and count the number of lines of output:

	ls | wc -l

--m



More information about the rescue mailing list