Introduction to commands for removing file attributes in Linux

Source: Internet
Author: User
Article Title: Introduction to commands for removing file attributes in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Chattr-ais/bin/netstat

When you modify A file with the 'A' attribute, its atime record does not change.

This can avoid some disk I/O processing in the laptop system. Files with the 'A' attribute set can only be opened in add mode for writing.

Only Super Users can set or clear this attribute. Files with the 'C' attribute set are automatically compressed by the kernel on the disk.

Uncompressed data is returned when the file is read.

A write operation on this file will compress the data before saving them to the disk. Files with the 'D' attribute set cannot be backed up by running the dump (8) program. Objects with the 'I' attribute cannot be modified: You cannot delete or rename the object. You cannot create a link to the object, and cannot write any data to the file. Only Super Users can set or clear this attribute. When deleting a file with the 's' attribute set, the data block is cleared and written back to the disk.

When you modify a file with the 's' attribute, the modification is synchronized to the disk. This is the same as the 'sync' Mount Option Applied to the file subsystem. When you delete a file with the 'U' attribute set, the content is saved. This allows you to request the restoration of deleted files.

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.