![]() ![]() ![]() Some Linux-native filesystems support several attributes that you can list with the lsattr command. How to list file attribute using lsattr command T - and top of directory hierarchy: A directory will be deemed to be the top of directory hierarchies for the purposes of the Orlov block allocator.S - synchronous updates: the changes on a file are written synchronously on the disk.D - synchronous directory updates: it makes sure that changes to files are written to disk immediately, and not to cache first.A - no atime updates: Linux won’t update the access time stamp when you access a file.u - undeletable: When a file is deleted, its contents are saved which allows a utility to be developed that works with that information to salvage deleted files.t - no tail-merging: Tail-merging is a process in which small data pieces at a file’s end that don’t fill a complete block are merged with similar pieces of data from other files.s - secure deletion: it makes sure that recovery of a file is not possible after it has been deleted.j - data journaling: it ensures that on an Ext3 file system the file is first written to the journal and only after that to the data blocks on the hard disk.The file can’t be deleted, links to it can’t be created, and the file can’t be renamed. i - immutable: it makes a file immutable, which goes a step beyond simply disabling write access to the file.e - extent format: it indicates that the file is using extents for mapping the blocks on disk.d - no dump: it makes sure the file is not backed up in backups where the dump utility is used.c - compressed: it causes the kernel to compress data written to the file automatically and uncompress it when it’s read back.It prevents accidental or malicious changes to files that record data, such as log files. a - append only: this attribute allows a file to be added to, but not to be removed.The detailed meaning of these attributes according to the manual page is: The files and directories can have the following attributes: In particular, some Linux-native filesystems support several attributes that you can adjust with the chattr command. Some filesystems support additional attributes (other than those described in the preceding sections). How to list file attribute using lsattr command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |