18

I have a file, which I wanted to protect from accidental deletion, so I've ran:

chattr +i filename

Now my question is, once I've changed a file attributes, where can I see the newly set attributes?

Alex Kulinkovich
  • 167
  • 2
  • 2
  • 8
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146

1 Answers1

28

You want

lsattr filename

See man lsattr.

pevik
  • 288
  • 1
  • 12
Andrew Schulman
  • 8,811
  • 21
  • 32
  • 47