Linux - NewbieThis 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.
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.
OK...trying to install wine, i screwed up and want to start over. I want to start over all the way from the beginning. So i go to delete the source tree so i can re-tar the tarball file and start from scratch. when i try to delete the wine20031016 directory in KDE, it doesn't work, telling me that i dont have the permissions to do it. when i use Konsole, logged in as su, i tried using the rmdir and the rm commands, both of which returned the same error: "cannot remove directory wine-20031016: file is a directory"
In Linux, like its Unix predecessors, you can't use rmdir or rm on a directory that still contains files, or other directories. The easiest thing to do is tell rm to remove files recursively. Open up a console, become root if necessary, and do:
rm -rf /path/to/wine-20031016
Also, in order to cut down on the number of times you have to become root, it may be good to un-tar and compile programs as a normal user. Set a directory somewhere that the user has write permission to, and do all your compiling there. That way, you don't need to become root to delete an old source tree. You can also run configure, make, and many other things as a normal user - then just become root to 'make install'.
p.s. - be very careful with the 'rm -rf' command, especially when you are root! If you rm -rf the wrong directory, you might wipe out your hard drive. The '-f' means 'force', which means it won't ask for any confirmation about deleting things. All the more reason to do most of that stuff as a normal user, if possible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.