How To Install Lsattr On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Maintainer: Theodore Y. Ts'o
Email: [email protected] .
Website: http://e2fsprogs.sourceforge.net
Section: admin
Install lsattr
-
Debian
apt-get install e2fsprogsClick to copy -
Ubuntu
apt-get install e2fsprogsClick to copy -
Alpine OS
apk add e2fsprogsClick to copy -
Arch Linux
pacman -S e2fsprogsClick to copy -
Kali Linux
apt-get install e2fsprogsClick to copy -
CentOS
yum install e2fsprogsClick to copy -
Fedora
dnf install e2fsprogsClick to copy -
Raspbian
apt-get install e2fsprogsClick to copy -
macOS
brew install e2fsprogsClick to copy
List file attributes on a Linux file system.
How to use lsattr?
Below are few example commands for lsattr that you can use in the terminal.
Display the attributes of the files in the current directory:lsattrClick to copyList the attributes of files in a particular path:lsattr pathClick to copyList file attributes recursively in the current and subsequent directories:lsattr -RClick to copyShow attributes of all the files in the current directory, including hidden ones:lsattr -aClick to copyDisplay attributes of directories in the current directory:lsattr -dClick to copy
To install the latest version of lsattr in your favorite operating system just copy the lsattr installation command from above and paste it into terminal. It will download and install the latest version of lsattr 2026 package in your OS.




