What are file attributes and how do I set them?

Updated -

File attributes are extra features you can use to tune a given file. The two commands that are used for viewing and changing file attributes are lsattr and chattr respectively.

Both of these commands are contained in the package e2fsprogs.

lsattr outputs the current attributes of a given file, if no argument is given, then it di...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content