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.
I'm totally newbie in Linux world and have just installed Red Hat 9 in my machine. I am very excited to learn much more about this OS. I and some co-workers are supposed to install Linux in a machine we have in our company's marketing departament for file sharing purposes. I heard we must use Samba, since we will have clients running on Windows, right?!
First I am beginning with the Bash stuff, and I hope I can learn about C programming in Linux evironment too. I enjoy C and Java programmings.
Well... could you help me with my first doubt? I tried to delete a directory using rmdir <name of the directory>, but an error was displayed saying the dir is not empty. How can I delete a directory, even if it is not empty and either have sub-directories?
Thanks a lot!
Brunno
Last edited by brunnopessoa; 11-09-2003 at 11:50 AM.
The -f(orce) option tells rm not to ask you for each file you want to delete. If you just use rm -r dirname you'll get prompted for each and every file in the directory and its subdirectories. Something really annoying, like this:
Code:
hw@baron:~/build$ rm -r wmpower-0.1.3/
rm: descend into directory `wmpower-0.1.3/'? y
rm: remove regular file `wmpower-0.1.3//Makefile'? y
rm: remove regular file `wmpower-0.1.3//LEGGIMI'? y
rm: remove regular file `wmpower-0.1.3//README'? y
rm: remove regular file `wmpower-0.1.3//fdl.txt'? y
i am reading something about hardlinks to inodes and symlinks to file names. If I delete all hardlinks to an inode, this inode itselt is deleted automatically? is that the way it works?
Last edited by brunnopessoa; 11-09-2003 at 11:56 AM.
haha!! thank you for your newbie question!! i searched found this thread and deleted a stupid folder i couldnt delete!! =) damn folder was annoying me!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.