LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-23-2005, 10:29 AM   #1
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Rep: Reputation: 30
rmdir


Hey there just wondering how do i rm a directory that is not empty i tried


rmdir -p qmail but it does not work

Anyone help me with this?

Thanks
 
Old 10-23-2005, 10:40 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Code:
$rm -rf directoryname
Be careful with that command it can be dangerous especially when run as root.
 
Old 10-23-2005, 02:26 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Just to expand on reddazz' comment, I personally *always* use the fully qualified path name to delete directories. It's just way too easy to end up deleting the wrong directory because you assume you're in place when you're actually elsewhere
 
  


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 Off
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 .. not emtpy ??? waelaltaqi Linux - Software 6 11-04-2005 11:28 AM
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
rmdir trm cmd psyklops Linux - General 4 01-21-2002 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:08 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration