LinuxQuestions.org
Review your favorite Linux distribution.
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 06-02-2003, 09:09 PM   #1
Nicksan
Member
 
Registered: May 2003
Posts: 84

Rep: Reputation: 15
Another Newbie Question


I have lotsa stuff in my /tmp folder that looks like old stuff I havent accessed in a long time, can I delete this stuff? I have RH8 and using KDE. And how can I figure out what programs are starting up at boot up? Thanks.
 
Old 06-02-2003, 09:10 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
How to ask questions about Linux
 
Old 06-02-2003, 10:20 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
cleaning /tmp

The original idea behind /tmp was that nothing on /tmp was permanent. Most distributions wiped /tmp clean at boot.

Then KDE started leaving some of its files permanently on /tmp. Leaving the files there permanently speeds up KDE login. If you delete these files then KDE just takes longer to initialize.

My distribution, and obviously yours too, stopped cleaning /tmp at boot so as to have a fast KDE. I also started accumulating junk on /tmp from programs that do not bother to erase their temporary files.

I decided to clean /tmp at every shutdown. I added the following lines to /etc/init.d/halt.local to clean /tmp:
echo "cleaning /tmp"
rm /tmp/* -R

This works fine on SuSE 8.1. The first time I start KDE after boot it takes about 10 seconds longer to initialize. On your distribution /etc/init.d/halt.local may or may not be the place to put the commands.

I read someplace that KDE was looking for a better place to keep its files.

Last edited by jailbait; 06-02-2003 at 10:22 PM.
 
Old 06-02-2003, 11:43 PM   #4
dejan_j
Member
 
Registered: May 2003
Location: Sydney
Distribution: RedHat
Posts: 111

Rep: Reputation: 15
yeh u can del most of it with out affecting any part of us machines performance
 
Old 06-04-2003, 05:54 AM   #5
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
Runin rm * as user in that directory will get rid of most of it.

You cannot delete everything in that directory, as various programs use it for intra-process socket communication, deleting the sockets will terminate the apps usually.
 
Old 06-04-2003, 04:52 PM   #6
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
What you could also do is issue the "ls -lt" command which lists everything in detailed format and the last time the item was modified (thats the "t" option). The top of the list is the newers files and as it goes lower, its the older stuff.
 
  


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
Very Newbie Question. Please Help imfineru Linux - Newbie 8 08-20-2005 05:09 AM
Apache newbie question.. (very newbie question) tarballed Linux - Newbie 1 02-07-2003 08:41 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 12:53 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM
Security question {newbie question} Radio Linux - Security 3 05-17-2002 06:32 PM

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

All times are GMT -5. The time now is 09:08 AM.

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