Solve the problem by using valuerelarge

Source: Internet
Author: User
Solve $ last | more/var/adm/wtmpx: valuerelargefordefineddatatype # cd/var/adm #/usr/lib/acct/fwtmp & lt; wtmpx & gt; wtmpx. asciieditwtm uses the last reported Value too large to solve $ last | more/var/adm/wtmpx: value too large for defined data type # cd/var/adm #/usr/lib/acct/fwtmp <wtmpx> wtmpx. ascii edit wtmpx. ascii by "vi" or "tail" #/usr/lib/acct/fwtmp-ic <wtmpx. ascii> wtmpx # rm wtmpx. ascii ------------- --------- # Cp/var/adm/wtmpx. old #>/var/adm/wtmpx follow this method to clear the # logadm-w wtmpx-c-C 3-p 1 m/var/adm/wtmpxWhere in the wtmpx file ksh: -w writes an entry in the/etc/logadm. conf file with entry name "wtmpx ". -c is a flag to copy and then truncate the file-C is the number of copies to keep-p is the retention period (one month here) the duration of last storage can be limited. In addition, the last file in LINUX can be found in the wtmp file in/var/log.

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.