Forrest logo
back to the lsattr tool

lsattr:tldr:e5183

lsattr: List file attributes recursively in the current and subsequent directories.
$ lsattr -R
try on your machine

The command "lsattr -R" is used to list the attributes of files or directories recursively within a specified directory.

Here, "lsattr" is the command used to display the attributes of files and directories. The "-R" option stands for recursive, meaning the command will search for files and directories in the current directory and all its subdirectories.

When used together, "lsattr -R" will show the attributes of all files and directories, including hidden files and directories, within the specified directory and its subdirectories. Some common attributes that may be displayed include "i" for an immutable file, "a" for an append-only file, "s" for a secure deletion file, and so on.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lsattr tool