Permissions and owners

The lsattr command

Lists the special attributes of files (such as immutable).

Syntax

lsattr [archivo]

Most useful options

-RRecursive

Copy-ready examples

$ lsattrFile attributes

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • A normal file shows only dashes: it means it has no special attributes.

Related commands

FAQ

What does the i in the list mean?

That the file is immutable.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course