All rights reserved, please indicate the source when citing
lsattr - Display File Attributes
The lsattr (list attrbute) command displays file and directory attributes for ext2, ext3, or ext4 filesystems.
The syntax for the 'lsattr' command is: lsattr [OPTIONS] [FILES/DIRECTORIES].
Some common options for the lsattr command include:
- -a: Display all files and directories, including hidden ones.
- -d: Display only the attributes of directories, not the contents within.
- -R: Recursively list attributes of directories and their contents.
Example:
$ lsattr FILE ← Display attributes of the specified file
-----adA-------- FILE
|
The output attributes [aAcdDisSu] have specific meanings, which you can refer to the chattr command link for further understanding. For more detailed explanations and additional examples of using the chattr command, you can refer to the provided link.