Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-20-2001, 04:24 PM   #1
Ferrell Ramey
LQ Newbie
Registered: Mar 2001
Posts: 1

Rep: Reputation: 0

I keep getting an error when I use rm and rmdir that says "operation not permitted".

I just want to delete a bunch of directories and the junk in them. What is the easy way? [Is there a command like DOS's deltree /y abc*.?]

Old 03-20-2001, 04:59 PM   #2
Registered: Feb 2001
Posts: 108

Rep: Reputation: 15

The command is:

#rm -r /directory/path

WARNING: Issue a 'pwd' command first to make sure you are in the parent directory of the directory you want to delete. Either that or put the full pathname of the directory in the command above.

You may find that you will get prompted for each and every file. If so, issue:

#rm -rf /directory/path

instead. It will force the command and not prompt you for anything.

Remember, there isn't any undo function, so use this one with caution.
Old 08-22-2002, 07:16 PM   #3
Registered: Aug 2001
Location: Magic City, USA
Distribution: Ubuntu
Posts: 73

Rep: Reputation: 15
Just wanted to say thanks for this - the search function brought this up and saved me the ime of asking again...

I love this site!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Udev] Can I delete the content of /dev? lokee Linux - Software 6 02-04-2005 08:30 PM
VSFTP - problems uploading directories full of content animehair Linux - Software 1 01-03-2005 08:34 AM
delete content form a file bru Programming 1 04-30-2004 07:41 AM
Editior automatically delete content between lines dnla Linux - Newbie 2 10-21-2003 04:57 PM
How to delete a dir and all it's content? ReSync Linux - Newbie 2 06-29-2002 06:45 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration