Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-17-2003, 03:29 PM   #1
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: Mandrake 9.1
Posts: 59

Rep: Reputation: 15
Deleting Directories

Greetings from the uber-newbie

I am slowly coming to terms with this LInux thing, but in the process of mounting my FAT32 drive (fstab so it works on startup) I inadvertantly created some useless directories. For tidyness sake, I would like to delete them. What is the best way to accomplish this?



EDIT: This probably doesn't matter, but the directories are called /mnt/fat and mnt/fat32.

Last edited by J_Bone; 08-17-2003 at 03:45 PM.
Old 08-17-2003, 03:35 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
rm -r is the way to remove directories

Old 08-17-2003, 03:45 PM   #3
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374

will work too, if the directories are empty.
Old 08-17-2003, 03:50 PM   #4
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: Mandrake 9.1
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks very much!

I used rm -r, it cleaned everything up.
Old 08-17-2003, 05:19 PM   #5
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Be careful with rm -r. Don't do it from the wrong directory or you could do a lot of damage! It's always best to use the full path when issueing that command.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting directories NomadABC Linux - Newbie 2 02-10-2005 03:11 PM
rm command - deleting directories Micro420 Linux - Newbie 11 11-02-2003 03:18 PM
deleting directories AZDAVE Linux - Newbie 1 08-15-2003 11:05 AM
Deleting full directories? AekaGSR Linux - Newbie 5 06-19-2003 06:50 PM
Deleting directories with files in them AMDPwred Linux - General 7 02-16-2003 01:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration