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!
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.
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!
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:
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