Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.