General Flashcards

1
Q

Command to list extend file attributes

A

lsattr

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Command to set an extended attribute for append

A

sudo chattr +a perm_demo.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Remove immutable attribute from a file

A

sudo chattr -i perm_demo.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly