Linux Command Library
commands
Commands
basic
Basic
tips
Tips

lsattr

list file attributes on a Linux second extended file system

- Display the attributes of the files in the current directory:
lsattr

- List the attributes of files in a particular path:
lsattr [path]

- List file attributes recursively in the current and subsequent directories:
lsattr -R

- Show attributes of all the files in the current directory, including hidden ones:
lsattr -a

- Display attributes of directories in the current directory:
lsattr -d

lsattr [ -RVadlpv ] [ files... ]

lsattr lists the file attributes on a second extended file system. See chattr(1) for a description of the attributes and what they mean.

-R
Recursively list attributes of directories and their contents.
-V
Display the program version.
-a
List all files in directories, including files that start with `.'.
-d
List directories like other files, rather than listing their contents.
-l
Print the options using a long names instead of a single character abbreviation.
-p
List the file's project number.
-v
List the file's version/generation number.

lsattr was written by Remy Card <Remy.Card@linux.org>. It is currently being maintained by Theodore Ts'o <tytso@alum.mit.edu>.

There are none :-).

lsattr is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net.

chattr(1)

play store download app store download
Imprint
Sonnenallee 29, 12047 Berlin, Germany
e-mail: sschubert89@gmail.com

Privacy policy
Successfully copied