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. |
Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.