Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: number of files

  • Subject: Re: number of files
  • From: Vilmos Soti <vilmos@xxxxxxx>
  • Date: 14 Mar 2006 13:29:19 -0800
  • Newsgroups: comp.os.linux.misc
  • Organization: I am disorganized.
  • References: <1142365584.380037.46750@j33g2000cwa.googlegroups.com> <dv76nr$af7$4@godfrey.mcc.ac.uk>
  • User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4
  • Xref: news.mcc.ac.uk comp.os.linux.misc:613379
Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx> writes:

> __/ [ Rita ] on Tuesday 14 March 2006 19:46 \__
> 
>> Hi ,
>> Is there any command in linux to know how many files are in directory?
>> Thanks
> 
> alias nfiles='find . -type f | wc -l'

This will give the number of files not only in the present
directory, but in all directories under.

Rita, is this what you want? Or are you interested in only the
present directory? And hat about other objects like directories?
Should they be included too?

Vilmos

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