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.
Most BSD-like systems, including macOS, have always had an analogous chflags command to set the attributes, but no command specifically meant to display them; specific options to the ls command are used instead. The chflags command first appeared in 4.4BSD.
Solaris has no commands specifically meant to manipulate them. chmod[1] and ls[2] are used instead.
Other Unix-like operating systems, in general, have no analogous commands. The similar-sounding commands chatr (from HP-UX) and lsattr (from AIX) exist but have unrelated functions.
Among other things, the chattr command is useful to make files immutable so that password files and certain system files cannot be erased during software upgrades.[3]
^chmod(1) – illumos and OpenSolaris User Commands Reference Manual from latest Sun based OpenSolaris
^ls(1) – illumos and OpenSolaris User Commands Reference Manual from latest Sun based OpenSolaris
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. Most...
can be listed by the lsattr command and modified, where possible, by the chattr command. Programs can examine and alter attributes using ioctl operations...
these systems, only the symbolic modes can be used. File-system permissions chattr, the command used to change the attributes of a file or directory on Linux...
Denyer was 'completely bedridden' for 7 weeks after The Amazing Race". Chattr. Retrieved 29 October 2023. Laidlaw, Kyle (24 October 2023). "GRANT DENYER...
bzip2 cal cat — Print content of one or more files to stdout. catv chat chattr chgrp chmod — Change file modes chown chpasswd chpst chroot chrt chvt cksum...
search a device for bad blocks blkid locate/print block device attributes chattr change file attributes on a Linux file system debugfs used to manually view...
Copy (concatenate) files to stdout. cd — Change the working directory. chattr — Change file attributes on a Linux file system. chgrp — Change group of...
Gladiators Australia is returning and there are two big names hosting". Chattr. Retrieved 2 January 2024. Knox, David (12 December 2023). "10 bumps Gladiators...
command from the Linux operating system, displaying counterpart of the chattr command lsattr (AIX command), command from the AIX operating system, intended...
Recap Episode 1: The Sharks make one business an offer they can't refuse". Chattr. Retrieved 27 August 2023. Knox, David (6 September 2023). "Upfronts 2024:...
"The Block's Shaynna Blaze explains her surprising new music career". Chattr. Retrieved 3 May 2024. "'Gave me goosebumps': First listen as Shaynna Blaze...
allowed users to control which files were backed up using the BACKUP command. chattr, the equivalent on Unix and Linux cacls, the Windows NT access control list...
top-level directories as well. If /home lives in the root filesystem, a simple chattr command will make the system treat it as a top-level directory. When creating...
Recap Episode 1: The Sharks make one business an offer they can't refuse". Chattr. Retrieved 27 August 2023. "Pluto TV FAST channels to launch on 10 Play"...