tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Removing a directory with a 200,000 files in quickly
@ 1997-05-12 14:54 managers account
  0 siblings, 0 replies; only message in thread
From: managers account @ 1997-05-12 14:54 UTC (permalink / raw)
  To: tru64-unix-managers

Is there ANY way of removing a directory quickly when it has an enormous 
number of files and sub directories in it?   I am so used to RSTS and VMS 
where you can zero a directory and unlink all the files in a few 
seconds.  Is the rm -r command the only way? and is this a consequence of 
the strict Unix hierarchial tree?   Yes you can list the files to a temp 
file and fastrm them but that still takes significant time.
I am trying to find a fast way of moving the comp subtree in news from 
one disk to another.  In order to make a symbolic link on the existing 
disk after copying the files from one disk to another (via vdump/vrestore 
pipes if 
you want) you apparently have to rm -r on the existing disk before you 
can create the symbolic link to the new disk.  In the meantime you have 
to stop any new files being created on the old disk by throttling news 
which is a bit inefficient.
Regards
Stuart McKenzie

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-05-12 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-12 14:54 Removing a directory with a 200,000 files in quickly managers account

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox