LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 11-17-2004, 02:50 AM   #1
phpsharma
LQ Newbie
 
Registered: Aug 2004
Location: hyderabad
Posts: 21

Rep: Reputation: 15
message, message.1 in /var/log/ can be deleted for space?


I want to clean up the disk for more space and speed. I have seen files with names

-rw-r--r-- 1 root root 151256 Nov 17 01:43 lastlog
-rw-r--r-- 1 root root 361241 Nov 17 01:37 maillog
-rwxrwxrwx 1 root root 192414 Nov 17 01:43 messages*
-rwxrwxrwx 1 root root 468801 Nov 14 04:02 messages.1*
-rwxrwxrwx 1 root root 482992 Nov 7 04:02 messages.2*
-rwxrwxrwx 1 root root 418636 Oct 31 04:05 messages.3*
-rwxrwxrwx 1 root root 438527 Oct 24 04:03 messages.4*
-rw-r----- 1 mysql mysql 0 Nov 14 04:02 mysqld.log
-rw-r----- 1 mysql mysql 0 Nov 7 04:02 mysqld.log.1
-rw-r----- 1 mysql mysql 0 Oct 31 04:06 mysqld.log.2
-rw-r----- 1 mysql mysql 0 Oct 24 04:03 mysqld.log.3
-rw-r----- 1 mysql mysql 0 Oct 18 04:09 mysqld.log.4

is messages*, messages.1*... messages.n* ..


can i remove these files in order to save some space..


Thanks,
sharma
 
Old 11-17-2004, 09:15 AM   #2
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
The numbered files are backups of old files made by logrotate and it's safe to delete those. The other files are in active use, you can see which process keeps them open with the fuser command. If really desperate for disk space you can empty them too, but in that case use
>messages
instead of rm.
 
Old 11-17-2004, 09:20 AM   #3
phpsharma
LQ Newbie
 
Registered: Aug 2004
Location: hyderabad
Posts: 21

Original Poster
Rep: Reputation: 15
i couldn't get this

Thank you LasseW

but in that case use >messages instead of rm.

what do you mean by this .. Please clarify

Thanks,
sharma
 
Old 11-17-2004, 10:51 AM   #4
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
Hi Sharma,

To delete the numbered files, use the rm command, eg

rm messages.1

You should never use this command for a file that's being used by a process, check this with

fuser messages

If necessary, a file like that can be emptied by typing

>messages

The file will be emptied, ie you can still see it in the file listing with a size of 0.

lasse
 
Old 11-17-2004, 12:23 PM   #5
phpsharma
LQ Newbie
 
Registered: Aug 2004
Location: hyderabad
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks a Lot

How can i clean up the disk on redhat linux. where can i look up for the tmp files and others.

How to maintain the redhat linux server . please give some guide lines to make my website faster..

Thanks,
sharma
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
message in /var/log/messges hereshashi Linux - Security 2 08-03-2005 08:00 PM
/var/log/kern.log message dimkal Linux - Hardware 1 05-08-2004 06:57 AM
got a /var/log/message.... gigi Linux - Software 0 01-19-2004 04:12 AM
Trigger script by message in /var/log/messages? Zoidy Linux - Software 3 01-17-2004 12:03 AM
Odd recurring message in /var/log/messages tarballedtux Linux - General 4 05-21-2003 08:28 PM


All times are GMT -5. The time now is 07:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration