You are not logged in.

#1 2004-04-10 18:42:06

mavric
Member
From: B.C. Canada
Registered: 2004-01-03
Posts: 24

Unix command: remove a dir containing files

If rmdir deletes an empty directory, which command could I use to remove one containing files?

Offline

#2 2004-04-10 18:45:34

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: Unix command: remove a dir containing files

rm -rf foobar

"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#3 2004-04-10 18:57:03

mavric
Member
From: B.C. Canada
Registered: 2004-01-03
Posts: 24

Re: Unix command: remove a dir containing files

Thank-you

Offline

#4 2005-12-30 04:33:22

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 200

Re: Unix command: remove a dir containing files

When I try that i'm told that "r"and "f" are invalid switches

Offline

#5 2005-12-30 04:38:22

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: Unix command: remove a dir containing files

Try just using -r. I do it all the time and never get any errors. Like if I were to delete /:

rm -r /

Offline

#6 2005-12-30 04:49:46

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Unix command: remove a dir containing files

deficite wrote:

Try just using -r. I do it all the time and never get any errors. Like if I were to delete /:

rm -r /


Geez... not sure I'd use that example  :twisted:  :twisted:  :twisted:

Offline

#7 2006-01-01 00:18:57

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Unix command: remove a dir containing files

iBertus wrote:
deficite wrote:

Try just using -r. I do it all the time and never get any errors. Like if I were to delete /:

rm -r /


Geez... not sure I'd use that example  :twisted:  :twisted:  :twisted:

LOL, ditto!


.oO Komodo Dave Oo.

Offline

#8 2006-01-01 05:58:41

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: Unix command: remove a dir containing files

I was just seeing if I could get a new topic started at Newbie Corner titled something like "!!!HELP!!! COME COMPUTER NOT START!!! OMFG!!!"

Offline

#9 2006-01-01 10:08:22

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Unix command: remove a dir containing files

deficite wrote:

I was just seeing if I could get a new topic started at Newbie Corner titled something like "!!!HELP!!! COME COMPUTER NOT START!!! OMFG!!!"

rofl, you malicious bastard... :twisted:


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB