LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-21-2002, 09:11 PM   #1
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Rep: Reputation: 30
rmdir trm cmd


Im trying to rmdir in the terminal. Im root so I would think it would let me however it tells me the dir is NOT empty. I wouldn't think this would hold me up.

How do rmdir so I dont have to go through each dir and rm each little file...?
 
Old 01-21-2002, 09:27 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
-r will remove all contents recursively
-f will force without prompt for each file

rm -rf /foldertoremove

Last edited by DavidPhillips; 01-21-2002 at 09:46 PM.
 
Old 01-21-2002, 09:32 PM   #3
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
Im getting "invalid option" for -rf. Why is this?
 
Old 01-21-2002, 09:45 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it's rm -rf /folder

sorry about that
 
Old 01-21-2002, 09:49 PM   #5
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
It worked! Thankyou.
 
  


Reply



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
Why a directory can not be able rmdir? backpacker Linux - Software 3 11-21-2005 06:07 AM
rmdir namit Linux - Software 2 10-23-2005 02:26 PM
qt-styles, lisa, kxmlrpcd, trm and libc.so.6 msar Fedora 0 07-31-2004 05:00 PM
rmdir Fatal_3rr0r Linux - General 3 06-23-2003 04:25 PM
rmdir or other command Cichlid Linux - General 2 08-28-2002 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration