lsattr列出文件属性
名字
lsattr - list file attributes on a Linux second extended file system
语法
lsattr [ -RVadv ] [ files... ]
OPTIONS
-R Recursively list attributes of directories and their contents.
迭代输出目录下的所有文件属性
[root@myhost pm]
/etc/pm/config.d:
/etc/pm/power.d:
/etc/pm/sleep.d:
-V Display the program version.
[root@myhost pm]
lsattr 1.42.9 (28-Dec-2013)
-a List all files in directories, including files that start with `.'.
[root@myhost pm]
-d List directories like other files, rather than listing their contents.
[root@myhost pm]
-v List the file's version/generation number.
[root@myhost pm]
18446744073311469393