
上QQ阅读APP看书,第一时间看更新
How to do it...
To make the files immutable, follow these steps:
- Use chattr to make a file immutable:
# chattr +i file
- The file is now immutable. Try the following command:
rm file rm: cannot remove `file': Operation not permitted
- In order to make it writable, remove the immutable attribute, as follows:
chattr -i file