Name
lsattr — stdin stdout - file -- opt --help --version
Synopsis
lsattr [options] [files]
If you set extended attributes with chattr, you can view them with lsattr (list attributes). The output uses
the same letters as chattr; for
example, this file is immutable and undeletable:
$ lsattr myfile -u--i--- myfile
With no files specified, lsattr prints the attributes of all files
in the current directory.
Useful options
|
|
Recursively process directories. |
|
|
List all files, including those whose names begin with a dot. |
|
|
If listing a directory, do not list its contents, just the directory itself. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access