Immune

From OnnoWiki
Revision as of 09:08, 19 February 2024 by Onnowpurbo (talk | contribs) (Created page with "File system support The command line tools chattr (to manipulate attributes) and lsattr (to list attributes) were originally specific to the Second Extended Filesystem family...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File system support The command line tools chattr (to manipulate attributes) and lsattr (to list attributes) were originally specific to the Second Extended Filesystem family (ext2, ext3, ext4), and are available as part of the e2fsprogs package.

However, the functionality has since been extended, fully or partially, to many other systems, including XFS, ReiserFS, JFS and OCFS2. The btrfs file system includes the attribute functionality, including the C flag, which turns off the built-in copy-on-write (CoW) feature of btrfs due to slower performance associated with CoW.

chattr description

The form of the chattr command is:

chattr [-RVf] [-+=AacDdijsTtSu] [-v version] files...
-R recursively changes attributes of directories and their contents
-V is to be verbose and print the program version
-f suppresses most error messages

lsattr description The form of the lsattr command (gnu 1.41.3):

lsattr [ -RVadv ] [ files...  ]
-R recursively lists attributes of directories and their contents
-V displays the program version
-a lists all files in directories, including dotfiles
-d lists directories like other files, rather than listing their contents