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.
Look in YaST2.
Click on System -> /etc/sysconfig Editor. Click on Search and enter "TMP". There are several options such as the MAX_DAYS_IN_TMP or CLEAR_TMP_DIRS_AT_BOOTUP which allow you to clear out /tmp in a cron job clearing out old tmp files or to clear out /tmp when you boot up.
Or you can edit /etc/sysconfig/cron directly. You can also add /var/tmp to the list of directories to clear out.
Also check your log rotation setup; /etc/syslog-ng/syslog-ng.conf. This file configures log rotation and how many backups to retain.
Hi Allez,
Thank you for ur reply.
The following is the output after executing given commands
I've cleared few log files and tmp files, so now the size has subsided.
Look in YaST2.
Click on System -> /etc/sysconfig Editor. Click on Search and enter "TMP". There are several options such as the MAX_DAYS_IN_TMP or CLEAR_TMP_DIRS_AT_BOOTUP which allow you to clear out /tmp in a cron job clearing out old tmp files or to clear out /tmp when you boot up.
Or you can edit /etc/sysconfig/cron directly. You can also add /var/tmp to the list of directories to clear out.
Also check your log rotation setup; /etc/syslog-ng/syslog-ng.conf. This file configures log rotation and how many backups to retain.
Thank You very much jschiwal for your very helpful reply
One more help i need from you
I need to clean few data files which comeup upto some 5-8 GB perday.
Usually i need to keep last two days files and clean up the rest.
So i use the following command to clean up the files
But the problem here is, you can observe that only AU and AF changed rest of the command is same.
so when i put '*' instead of AU and AF , since the data is in GB's it is not able to remove the data.
it's working only when i give as separate command.
So can you please suggest me any script where i can use any variable instead of 'AU,AF, BA, BC .... etc'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.