MarketChattr
Company Profile

Chattr

chattr is the command in Linux that allows a user to set certain attributes of a file. lsattr is the command that displays the attributes of a file.

In Linux systems ({{mono|chattr}} and {{mono|lsattr}})
File system support The command line tools (to manipulate attributes) and (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. description The form of the 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 description The form of the 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 Attributes Some attributes include: Notes == In BSD-like systems () ==
In BSD-like systems ({{mono|chflags}})
File system support The command is not specific to particular file systems. UFS on BSD systems, and APFS, HFS+, SMB, AFP, and FAT on macOS support at least some flags. description The form of the command is: chflags [-R [-H | -L | -P flags file ... • -H If the -R option is specified, symbolic links on the command line are followed. (Symbolic links encountered in the tree traversal are not followed.) • -L If the -R option is specified, all symbolic links are followed. • -P If the -R option is specified, no symbolic links are followed. This is the default. • -R Change the file flags for the file hierarchies rooted in the files instead of just the files themselves. Displaying BSD-like systems, in general, have no default user-level command specifically meant to display the flags of a file. The command will do with either the -lo, or the -lO, depending on the system, flags passed. Attributes All traditional attributes can be set or cleared by the super-user; some can also be set or cleared by the owner of the file. Some attributes include: } == See also ==
tickerdossier.comtickerdossier.substack.com