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

Re: number of files

__/ [ Dave Uhring ] on Tuesday 14 March 2006 20:10 \__

> On Tue, 14 Mar 2006 12:01:55 -0800, Rita wrote:
> 
>>> alias nfiles='find . -type f | wc -l'
>>>
>>> I asked a similar question before:
>>>
>> How i should use it?when I am writing this command it is not giving any
>> output.
> 
> You have to actually execute the command.
> 
> [~]$ alias nfiles='find . -type f | wc -l'
> [~]$ nfiles
> 13954
> [~]$

Yes, it sets up an _alias_ so that you needn't ever remember that command. If
you append this command to your ~/.bashrc file (a file named ".bashrc" in
your home directory) this alias will become active automatically, whenever
you open a terminal (shell) session/window. Then, you need only enter
'nfiles' and forget about the underlying alias which was set up "once upon a
time".

Hope it helps,

Roy

-- 
Roy S. Schestowitz      |    Proprietary cripples communication
http://Schestowitz.com  |    SuSE Linux    ¦     PGP-Key: 0x74572E8E
  8:10pm  up 6 days 12:47,  8 users,  load average: 0.74, 1.05, 0.87
      http://iuron.com - next generation of search paradigms

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