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: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Sat, 02 Apr 2005 15:59:26 +0100
  • Newsgroups: uk.comp.os.linux
  • References: <d2ljle$1tqp$1@godfrey.mcc.ac.uk> <24t3e.14984$1S4.1559515@news.xtra.co.nz>
  • User-agent: KNode/0.7.2
Thor wrote:

> Roy Schestowitz wrote:
> 
>> For over a year I've been struggling to find out, either by Web searches
>> or man pages, how to get the number of files in a directory and its
>> subdirectories. KDE doesn't provide anything which does that as far as I
>> can tell.
>> 
>> The only way I managed to do this is:
>> 
>> du -all >temp
>> wc temp
>> rm temp
>> 
>> But there must be an easier way. I really need to get the number of files
>> quite often. Am I missing something?
>> 
>> Thanks,
>> Roy
>> 
> 
> Well you could open konqueror and right click on the directory and have a
> look at it's properties.

It is KDE 3.1 so the window does not have this among the properties.

I have just set up an alias...

alias nfiles='du -all >~/temp; wc ~/temp; rm ~/temp;'

I hope it won't be harmful or risky.

Roy

-- 
Roy S. Schestowitz
http://Schestowitz.com

  • References:
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index