The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
 

lsattr - Display File Attributes





The lsattr (lisattrbute) 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:

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.