LinuxQuestions.org
Help answer threads with 0 replies.
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 05-01-2008, 07:47 AM   #1
answerme
Member
 
Registered: Apr 2008
Posts: 94

Rep: Reputation: 24
unwanted files in linux


As in windows there are many unwanted files that we can deleted ,do we have unwanted file in linux also ,i know its yes but where are these files located .So that i can delete them
 
Old 05-01-2008, 08:44 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
It kind of depends on what you consider an unwanted file. Also, which distribution are you using, because different distributions tend to keep some files in different locations.

Learn to use your distribution's package manager (if it has one, which most do), as they all offer ways to "purge" packages - removing a package usually leaves a breadcrumb trail telling you that a particular program has, at some point, existed on your hard drive, whereas purging a package usually eliminates any trace that a program ever existed (it will remove things like .conf files and any directories in any users' home directories that were created by the program).
 
Old 05-01-2008, 08:52 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I dare say that there are "unwanted files" on every computer. But--"unwanted" by whom?

Before deleting something, you would have to a) know what it does, and b) know whether you needed it (this means you would have to know if another program uses the file). I'll bet you can find MANY files that noone here can identify.

you would be far better off building something like Linux form Scratch, and only installing what you DO need.
 
Old 05-01-2008, 01:33 PM   #4
mintojoseph
LQ Newbie
 
Registered: Nov 2006
Location: Kerala
Distribution: Fedora, Debian, RHEL
Posts: 29
Blog Entries: 1

Rep: Reputation: 15
If you want to optimize the system, you can start with uninstalling unwanted packages (programs you are not using)..
 
Old 05-01-2008, 01:47 PM   #5
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Even moreso, disabling certain daemons from running at boot, using a tool like webmin.
 
Old 05-01-2008, 06:44 PM   #6
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,162

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
Two things create enormous numbers of files.

Firstly Beagle, especially if you have it indexing all the web pages you visit. If you can remember where you put things in your own filing system, you may not want Beagle at all.

Secondly, do you have thumbnails displayed alongside every entry in your file browser? If so, take a look in ~/.thumbnails -- I've currently got 2100 there.

If you are interested in managing the number of services running, which will actually speed up the computer, take a look at www.mjmwired.net/resources/mjm-services-f8.html. Although it's aimed at Fedora, it's a good guide if you don't know your ahavi from your nmbd.
 
Old 05-02-2008, 12:17 AM   #7
answerme
Member
 
Registered: Apr 2008
Posts: 94

Original Poster
Rep: Reputation: 24
Thanking u all for the reply
Iam using redhat 5
My question since iam new to linux , .iam comparing linux with windows .As in windows we have temp dir under that there are unwanted files that we can delete,that wont harm to our system .As in linux also i have seen one temp dir under that there are many files are they also unwanted files.
 
1 members found this post helpful.
Old 05-02-2008, 06:07 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
If you mean cruft in /tmp and /var/tmp there's a cronjob, /etc/cron.daily/tmpwatch, that should take care of that. If you don't have it install the "tmpwatch" package.
 
Old 05-02-2008, 09:11 AM   #9
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
...and I believe /tmp (and quite possibly /var/tmp) get purged after every reboot.
 
Old 05-02-2008, 10:11 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
That may be distro-specific and not applicable to all situations. I mean, how often do you *want* your server to reboot? :-]
 
Old 05-02-2008, 10:59 AM   #11
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
True. I made the mother-of-all-f*ckups by assuming this applied to desktops/workstations only.
 
Old 05-02-2008, 07:34 PM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Hell no. A MOAF would be like mistaking Milan (as in guided rocket system) for Milan (as in the Scala of). Both will assail your hearing but one's less lethal than the other.
 
  


Reply


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
rmoving unwanted driver running in linux kernel mathimca05 Linux - Kernel 3 07-21-2010 02:10 PM
to remove unwanted things from linux kernel mathimca05 Linux - Newbie 1 10-15-2007 06:18 AM
Deleting unwanted files from any directory without reading each Karthikeyan Gurusamy Linux - Newbie 3 12-24-2005 02:48 AM
Unwanted autodial on Linux/Windows network djmurray Linux - Networking 20 09-07-2004 03:16 AM
can anyone tell me hoy to lock unwanted attached files in sendmail? jastorqu Linux - Networking 0 06-17-2004 01:05 PM


All times are GMT -5. The time now is 08:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration