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.
- Full explanation of USB flash disk mounting in Linux File System
- Learn how to back up a Linux system through train
- Babybox answers Linux MAC address and other multi-system startup
- Linux Server optimization Overview
- Explanation of how to build a Linux FTP Server