LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-07-2001, 06:16 PM   #1
skopje909
LQ Newbie
 
Registered: Nov 2001
Distribution: Red Hat 6.2
Posts: 17

Rep: Reputation: 0
Question Cant delete directories/files


If I give the command "rm -rf /2001/*" it will not delete all files ! It gives permission denied msg. I am logged in as root so I should have superuser privaleges. Any suggestions...
 
Old 11-07-2001, 06:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
well, aren't you using the command incorrectly i think. if you're just gonna delete the entire directory, then you shouldn't use the *'s. you're trying to recursivel delete files, which naturally doesn't make sense, as they're files not directories, so rm may well be getting screwed up over that. have you tried looking at these files that it won't delete?
 
Old 11-07-2001, 06:59 PM   #3
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
rm will get rid of dirs fine but if you want to delete files use shred.

shred -u /directory/* or whatever files...
 
  


Reply


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
How to do recursive file delete using specifier (*.tmp) from nested directories? Arodef Linux - General 3 11-11-2009 08:49 AM
How to delete non-empty directories? Also have a terminal question Nylex Linux - General 10 07-16-2005 12:51 AM
how to search for and delete empty directories? BrianK Programming 4 06-03-2005 08:24 AM
How can i delete Directories and Subdirectories? OrganicX Linux - Newbie 15 03-05-2003 09:48 PM
How does one delete directories with content as the SU? Ferrell Ramey Linux - General 2 08-22-2002 08:16 PM


All times are GMT -5. The time now is 08:34 PM.

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