Editing
Routine Maintenance
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Free up space on mail == You can clear out root mail: <pre> mail /var/log# ll -h /var/mail/root -rw------- 1 root mail 543K Dec 19 13:05 /var/mail/root mail /var/log# rm /var/mail/root </pre> Or you can archive mail logs: <pre> mail /var/log# ls -l htt* -rw-r--r-- 1 root wheel 297436931 Dec 19 13:26 httpd-access.log -rw-r--r-- 1 root wheel 9824324 Jul 4 11:34 httpd-access.log.old.0.gz -rw-r--r-- 1 root wheel 6884137 Mar 17 2012 httpd-access.log.old.1.gz -rw-r--r-- 1 root wheel 18557444 Dec 3 2009 httpd-access.log.old.10.gz -rw-r--r-- 1 root wheel 14740263 Jan 9 2007 httpd-access.log.old.11.gz -rw-r--r-- 1 root wheel 14209465 Nov 28 2007 httpd-access.log.old.12.gz -rw-r--r-- 1 root wheel 16874396 Feb 19 2012 httpd-access.log.old.3.gz -rw-r--r-- 1 root wheel 14554859 Jul 22 2011 httpd-access.log.old.4.gz -rw-r--r-- 1 root wheel 10513227 Feb 18 2011 httpd-access.log.old.5.gz -rw-r--r-- 1 root wheel 7201946 Oct 29 2010 httpd-access.log.old.6.gz -rw-r--r-- 1 root wheel 10062537 May 6 2010 httpd-access.log.old.7.gz -rw-r--r-- 1 root wheel 10157042 Aug 12 2010 httpd-access.log.old.8.gz -rw-r--r-- 1 root wheel 11909534 Mar 4 2010 httpd-access.log.old.9.gz -rw-r--r-- 1 root wheel 59030930 Dec 19 13:01 httpd-error.log -rw-r--r-- 1 root wheel 3413134 Mar 4 2010 httpd-error.log.0.gz -rw-r--r-- 1 root wheel 795515 May 1 2007 httpd-error.log.1.gz -rw-r--r-- 1 root wheel 1142153 Nov 30 2007 httpd-error.log.2.gz -rw-r--r-- 1 root wheel 2325801 Feb 18 2011 httpd-error.log.gz mail /var/log# sh # for f in 12 11 10 9 8 7 6 5 4 3 2 1 0; do g=`echo $f+1|bc`; mv httpd-access.log.old.$f.gz httpd-access.log.old.$g.gz; done # mv httpd-access.log httpd-access.log.old.0 # touch httpd-access.log # apachectl restart # gzip httpd-access.log.old.0 # for f in 2 1 0; do g=`echo $f+1|bc`; mv httpd-error.log.$f.gz httpd-error.log.$g.gz; done # mv httpd-error.log httpd-error.log.0 # touch httpd-error.log # apachectl restart # gzip httpd-error.log.0 # exit </pre>
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information