15

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.K.
  • 167
  • 2
  • 2
  • 8
Itai Ganot
  • 10,424
  • 27
  • 88
  • 143

1 Answers1

26

You want

lsattr filename

See man lsattr.

pevik
  • 286
  • 1
  • 12
Andrew Schulman
  • 8,561
  • 21
  • 31
  • 47