This is a discussion on how to delete a whole directory without first emptying the subdirctories? within the Linux General forums, part of the Linux Forums category; Is there a quick commend in Unix and Linux doing it?...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 I hereby accuse gino of stating: > Is there a quick commend in Unix and Linux doing it? rm -rf directory Will recursively remove all files and subdirectories contained in "directory", and then directory itself. - -r option = recursive - -f option = don't prompt for confirmation If you'd prefer to be prompted, use -i instead of -f - -- S. Tyler McHenry http://www.nerdland.net/~tyler/info/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) iD8DBQFEpcwfyhIpIIGf1i4RAo/hAJ4xUGiDDLrUlALsIJdddGGEVbXIkwCgg4e5 nLALAUp4NJo57F+JeyQ48XM= =Hq+F -----END PGP SIGNATURE----- |
|
|||
|
On Fri, 30 Jun 2006 18:12:53 -0700, Tyler McHenry wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I hereby accuse gino of stating: > >> Is there a quick commend in Unix and Linux doing it? > > rm -rf directory > > Will recursively remove all files and subdirectories contained in > "directory", and then directory itself. > > - -r option = recursive > - -f option = don't prompt for confirmation > > If you'd prefer to be prompted, use -i instead of -f > > - -- > S. Tyler McHenry > > http://www.nerdland.net/~tyler/info/ > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.4 (GNU/Linux) > > iD8DBQFEpcwfyhIpIIGf1i4RAo/hAJ4xUGiDDLrUlALsIJdddGGEVbXIkwCgg4e5 > nLALAUp4NJo57F+JeyQ48XM= > =Hq+F > -----END PGP SIGNATURE----- Be Careful ... be VERY careful ..... BTDT Cheers, Dave ~~~~~~ "Study History - Know the Future" |