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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-11-2008, 04:28 PM
|
#1
|
|
LQ Newbie
Registered: Dec 2007
Posts: 16
Rep:
|
deleting /var/log
I would like to delete everything in /var/log to get more space, I donīt need them anymore..
I donī t want to get into trouble with that, so I want to know it is safe or not 
|
|
|
|
02-11-2008, 04:37 PM
|
#2
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
Usually log files are made with ordering so you'll get:
dmesg
dmesg.0
dmesg.1.gz
dmesg.2.gz
etc...
The compressed ones are usually very safe to remove, the ones with 0 are usually back ups of the live logs, you don't want to be deleting dmesg when the kernels trying to write to it. The others without this scheme you can usually delete the older versions quite easily, but I'd leave the latest, you never know whats trying to write to them or when it will be useful.
Most system delete the oldest ones anyway, I know my system only keeps dmesg.4.gz anything older gets removed automatically.
|
|
|
|
02-11-2008, 06:09 PM
|
#3
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,084
Rep: 
|
If you do have files numbered as leonscape describes, you are probably running logrotate. In the files /etc/logrotate.conf and /etc/logrotate.d/* you can modify the rotate directive to use fewer backups. For example, if you see the line rotate 4 change it to rotate 1
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:05 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|