General Flashcards
1
Q
Command to list extend file attributes
A
lsattr
2
Q
Extended attribute a
A
a: You can append text to the end of a file that has this attribute, but you can’t overwrite it. Only someone with proper sudo privileges can set or delete this attribute.
3
Q
Extended attribute i
A
i: This makes a file immutable, and only someone with proper sudo privileges can set or delete it. Files with this attribute can’t be deleted or changed in any way. It’s also not possible to create hard links to files that have this attribute.
4
Q
Command to set an extended attribute for append
A
sudo chattr +a perm_demo.txt
5
Q
Remove immutable attribute from a file
A
sudo chattr -i perm_demo.txt