how to delete a whole directory without first emptying the subdirctories?

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?...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-01-2006
gino
 
Posts: n/a
Default how to delete a whole directory without first emptying the subdirctories?

Is there a quick commend in Unix and Linux doing it?


Reply With Quote
  #2 (permalink)  
Old 07-01-2006
Tyler McHenry
 
Posts: n/a
Default Re: how to delete a whole directory without first emptying the subdirctories?

-----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-----
Reply With Quote
  #3 (permalink)  
Old 07-01-2006
Dave Mann
 
Posts: n/a
Default Re: how to delete a whole directory without first emptying thesubdirctories?

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"
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0