![Linux Shell Scripting Cookbook(Third Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/161/36701161/b_36701161.jpg)
上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