lsattr

From Wikipedia, the free encyclopedia
Jump to: navigation, search

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[edit]

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[edit]

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[edit]

References[edit]

  1. ^ lsattr man
  2. ^ [1]
  3. ^ chattr man