message, message.1 in /var/log/ can be deleted for space?
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.
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..
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.