Tips for removing Linux file attributes in the operating system

Source: Internet
Author: User

When learning about linux, you may encounter file attributes. The following describes how to remove the attributes of linux Files by using commands.

Chattr-ais/bin/netstat

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

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

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 reading from the linux File attribute.

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.

The above describes how to use commands to remove the attributes of linux Files.

  1. Full explanation of USB flash disk mounting in Linux File System
  2. Learn how to back up a Linux system through train
  3. Babybox answers Linux MAC address and other multi-system startup
  4. Linux Server optimization Overview
  5. Explanation of how to build a Linux FTP Server

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.