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


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

Rep: Reputation: 30

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?

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

Rep: Reputation: 75
$rm -rf directoryname
Be careful with that command it can be dangerous especially when run as root.
Old 10-23-2005, 03:26 PM   #3
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


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 07:07 AM
Rmdir .. not emtpy ??? waelaltaqi Linux - Software 6 11-04-2005 12:28 PM
rmdir Fatal_3rr0r Linux - General 3 06-23-2003 05:25 PM
rmdir or other command Cichlid Linux - General 2 08-28-2002 05:30 PM
rmdir trm cmd psyklops Linux - General 4 01-21-2002 10:49 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:18 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