LinuxQuestions.org
Visit Jeremy's Blog.
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 10-29-2004, 10:38 AM   #1
joe-uncle
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Removing temporary files


I am newbie with Linux and I want to know answer for the next question:

I noticed there are lots of files in /tmp directory. Many subdirectories there are locked. Can I remove them? And can I remove files in other tmp-directories?

I am using Suse 9.1 Pro. So someone know good program which could help me to get rid off temporary files?

Thanks
Uncle Joe
 
Old 10-29-2004, 11:24 AM   #2
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
You can remove everything in /tmp when you reboot.
When the system is running, don't do it. You mentionned those "lock" file:

When certain programs start, they write a program.lock file (or sometimes folder) in /tmp. So that if you try to start a 2nd instance the same program, it will notice that there is a lock file in /tmp so will refuse to start. When you cleanly close the program the lock file is removed.
This can be useful to know if you kill a process and then cannot restart the program. It might be because you need to manually remove the lock file in /tmp.

If you still afraid about removing everthing in /tmp during a reboot, make a copy of /tmp somewhere. Once you'll see it's safe you can delete you backup.

Hope this help
 
Old 10-29-2004, 11:30 AM   #3
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
I forgot to say:
no need for a good program to get rid of /tmp file. suse can do it for you. Edit the /etc/sysconfig/cron file. Read the comment (I think they are pretty self-explanatory) and modify the variable to fit your need

If you don't like Command Line Interface, I think you can do it through YaST (system + /etc/sysconfig editor) I ain't sure, I always use CLI.
 
Old 10-29-2004, 11:51 AM   #4
joe-uncle
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, after a little seeking I found that. it really works.

OMN
 
  


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
Temporary Internet Files?????????? RobTek Linux - Newbie 12 10-25-2004 07:20 PM
crontab & quota files are temporary files? hamish Linux - Software 0 07-10-2004 02:09 PM
Temporary Files Full? Killer7 Linux - Software 8 02-07-2004 04:27 PM
Removing Temporary Files coolamit78 Linux - General 5 09-17-2003 03:40 PM
Internet Temporary Files jnutty3 Linux - General 4 10-27-2001 11:37 AM

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

All times are GMT -5. The time now is 09:51 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