LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-22-2010, 04:13 PM   #1
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 343

Rep: Reputation: 22
Question How do I delete unwanted folders


I noticed after uninstalling Firefox that the folder is still listed in the files/etc ... how do I delete these files?

/etc/firefox
/etc/firefox-3.0
/etc/forefox-3.5
 
Old 07-22-2010, 04:26 PM   #2
buckem
LQ Newbie
 
Registered: May 2010
Posts: 9

Rep: Reputation: 2
rm -rf /etc/firefox
rm -rf /etc/firefox-3.0
rm -rf /etc/forefox-3.5

this will delete the folders and all files within them.
 
Old 07-22-2010, 04:45 PM   #3
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 343

Original Poster
Rep: Reputation: 22
Thanks a lot as that appears to have done the trick
I've made a note of those commands for future reference.

gael.
 
Old 07-22-2010, 05:02 PM   #4
buckem
LQ Newbie
 
Registered: May 2010
Posts: 9

Rep: Reputation: 2
You're welcome, I came back to linux this year after being off of it since just before slackware 3 was released and could not for the life of me remember that I needed to add the -rf after rm to remove a folder with files.
 
Old 07-23-2010, 01:36 AM   #5
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 343

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by buckem View Post
You're welcome, I came back to linux this year after being off of it since just before slackware 3 was released and could not for the life of me remember that I needed to add the -rf after rm to remove a folder with files.
I'm very grateful that you did come back as I have benefited from your return ... cheers
 
  


Reply



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
find -exec command to recursively delete files and folders in folders with X name Joan Murt Linux - Newbie 2 07-08-2009 04:35 PM
Best way to delete old unwanted log files?? xmdms Linux - Newbie 6 10-27-2008 09:36 AM
Can't delete Folders. duffmckagan SUSE / openSUSE 1 09-19-2005 11:09 AM
unwanted folders oscotty General 11 08-28-2005 01:01 PM
How to delete unwanted kernels? ludwig W Linux - Software 4 04-14-2003 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:15 PM.

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