Linux cleanup space

Source: Internet
Author: User

Linux Individual directory Space cleanup
var space cleanup
/var/spool/clientmqueue
The original/var/spool/clientmqueue is if there are users in the system to open cron, and cron execution of the program has output content, the output will be sent to cron users in the mail, and SendMail did not start to produce these files.
The server does have cron timed to execute dozens of scripts, and none of the output orientations are set, and the accumulated files are saved in the/var/spool/clientmqueue directory under le = =.
* * 4 root cd/var/spool/clientmqueue && ls |xargs rm-f

Workaround: Add >/dev/null after cron automatically executes the statement 2>&1
Cases:
4 3 * * */usr/bin/w >/dev/null 2>&1
This will be OK to pull, will not write to that directory ....
/var/spool/mail/
Message information in this directory

Linux cleanup space

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.