Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-17-2005, 05:27 PM
|
#1
|
Member
Registered: Jan 2005
Distribution: slackware
Posts: 83
Rep:
|
removing a directory
[root@localhost html]# rm -d guest
rm: remove directory `guest'? yes
rm: cannot remove directory `guest': Is a directory
[root@localhost html]#
Theres probably an easy way to fix this, but its not working, and its a big file with a lot of tiny seperate files, so -r is annoying to do. Thanks, any help would be appreciated.
--brad
|
|
|
05-17-2005, 05:41 PM
|
#2
|
Member
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729
Rep:
|
rm -rf dir/
|
|
|
05-17-2005, 05:46 PM
|
#3
|
Member
Registered: Feb 2005
Location: Sunnyvale, CA
Distribution: Ubuntu
Posts: 205
Rep:
|
rm -rf guest
|
|
|
05-17-2005, 08:12 PM
|
#4
|
Member
Registered: Jan 2005
Distribution: slackware
Posts: 83
Original Poster
Rep:
|
ahh. thays easy, ty....
|
|
|
05-18-2005, 08:35 AM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Use that command with care. Use it wrongly and you can hose your entire system.
|
|
|
05-19-2005, 08:22 AM
|
#6
|
Member
Registered: Nov 2004
Distribution: RHEL 2.1, RHEL 3.0, SUSE 9.2
Posts: 31
Rep:
|
rm -rf <name> means "remove <name>, and everything in <name> if it's a directory, recursively, and don't ask me to confirm anything."
rmdir <name> means "remove the directory <name>, but only if it's empty.
To remove a directory and all its contents, the former is probably the easiest. But use sparingly.
|
|
|
All times are GMT -5. The time now is 05:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|