tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: managers account <managers () mannet ! mcb ! net>
To: tru64-unix-managers
Subject: Removing a directory with a 200,000 files in quickly
Date: Mon, 12 May 1997 14:54:46 +0000	[thread overview]
Message-ID: <96078612210305.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1997-05-12 14:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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