Linux Command Encyclopedia disk maintenance: Logrotate

Source: Internet
Author: User
Keywords Linux logrotate command encyclopedia disk maintenance
Tags aliyun automatic command encyclopedia disk disk maintenance file files function

Function Description: Manage record file.

Grammar: logrotate&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;" [-?DFV] [-S < status file] [--usage] [Configuration file]

Supplemental Note: Use the logrotate directive to make it easy for you to manage the documentation generated by your system. It provides automatic replacement, compression, deletion, and mailing of record files, each of which can be set to be processed daily, weekly or monthly, and processed as soon as the file is too large. You must edit it yourself, specify the profile, and the preset configuration file is stored in the ETC directory, and the filename is called logrotate.conf.

Parameters:
-or--help online Help.
-D or--debug the instruction execution process in detail to facilitate error-making or understanding of program execution.
-F or--force forcibly initiates record file maintenance operations, even if the Logrotate directive deems it unnecessary.
The-s< state file > or--state=< state file > uses the specified state file.
The-V or--version displays the instruction execution process.
-usage Display instruction basic usage.

Related Article

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.