Lsattr

From Wikipedia, the free encyclopedia

lsattr is a command-line program for listing the attributes on a Linux second extended file system (ext2).[1] It is also a command to display attributes of devices on an AIX operating system.[2]

Options

The form of the lsattr command (gnu 1.41.3):

 lsattr [ -RVadv ] [ files...  ]
  • -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.
  • -v List the file’s version/generation number.

Attributes

Some attributes include:

  • don't update atime (A)
  • synchronous updates (S)
  • synchronous directory updates (D)
  • append only (a)
  • compressed (c)
  • no dump (d)
  • immutable (i)
  • data journaling (j)
  • secure deletion (s)
  • top of directory hierarchy (T)
  • no tail-merging (t)
  • undeletable (u)
  • use hashed b-trees for directory lookups (I)
Details of the attributes can be found in the chattr man page [3]


See also

References

  1. lsattr man
  2. chattr man


This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.