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.
|
|
|
11-21-2003, 01:49 PM
|
#1
|
Member
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269
Rep:
|
RMDIR - how to remove a non-empty directory??
How do you remove a non-empty directory without having to manually delete all of its contents??
|
|
|
11-21-2003, 01:52 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
rm -R /path/to/directory
rm -rf /path/to/directory
Use with caution.......
|
|
1 members found this post helpful.
|
11-21-2003, 02:49 PM
|
#3
|
Senior Member
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
|
You always CAN use a gui tool like konqueror to do that, you know. You don't have to do EVERYTHING by the command line.
|
|
|
11-21-2003, 02:52 PM
|
#4
|
Member
Registered: Feb 2003
Location: just outside reality
Distribution: balanced
Posts: 752
Rep:
|
Quote:
Originally posted by JaseP
You always CAN use a gui tool like konqueror to do that, you know. You don't have to do EVERYTHING by the command line.
|
or an in between like File Runner. use it. love it.
|
|
|
11-21-2003, 02:52 PM
|
#5
|
Member
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
what's wrong with using the command line??
|
|
|
11-21-2003, 03:11 PM
|
#6
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
Quote:
Originally posted by jacksmash
what's wrong with using the command line??
|
It always works and gives error messages if something is wrong?
No, wait! That's what is right with the command line...
|
|
|
11-22-2003, 11:22 AM
|
#7
|
Senior Member
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479
Rep:
|
Be EXTREMELY careful.
This is how (not that specific command) that I messed up my intire Linux install. had to reformat both hdd's. No backup did I have either.
sigh...
be warned!!
titanium_geek
|
|
|
11-22-2003, 11:30 AM
|
#8
|
Member
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
ok, thanks!!
|
|
|
11-22-2003, 02:41 PM
|
#9
|
Member
Registered: Feb 2003
Location: just outside reality
Distribution: balanced
Posts: 752
Rep:
|
Quote:
Originally posted by jacksmash
ok, thanks!!
|
just had to say jacksmash: your sig sounds like my enitre csc120 class-=myself
|
|
|
11-23-2003, 08:44 AM
|
#10
|
Member
Registered: Sep 2003
Location: Illinois, United States
Distribution: Slackware 9.1
Posts: 37
Rep:
|
#rm -rf / oops!
|
|
|
11-23-2003, 11:54 AM
|
#11
|
Member
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
Quote:
Originally posted by Sir Gawain
#rm -rf / oops!
|
Like I'm going to try that!!
|
|
|
11-23-2003, 12:03 PM
|
#12
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
So you think. You actually may do that unintentionally. Several people have thought that, but did it anyhow.
When in root, sit on your hands a lot and resist the urge to hit enter. Read what you typed several times because once you hit that enter key, the commands get carried out as long as there is enough system left to perform them.
|
|
|
11-23-2003, 12:39 PM
|
#13
|
Member
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
Good tip. Thanks!
|
|
|
11-23-2003, 12:43 PM
|
#14
|
Member
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519
Rep:
|
If it doesn't work, stick a -f in there. That's what I usually do! (In my mind -f stands for "just f***ing do it)!
|
|
|
11-23-2003, 12:47 PM
|
#15
|
Member
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269
Original Poster
Rep:
|
Language language!
|
|
|
All times are GMT -5. The time now is 11:43 PM.
|
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
|
|