Date created: Monday, December 9, 2019 8:17:21 AM. Last modified: Monday, January 25, 2021 2:10:27 PM
Set/Unset Immutable Flag
To set the immutable flag on a file on Linux, to prevent even root modification, use the chattr command:
chattr +i file.txt
chattr -i file.tx
On Mac the equivelent is:
sudo chflags -v uimmutable,simmutable file.txt
sudo chflags -v nouimmutable,nosimmutable file.txt
Previous page: rpm2cpio.sh
Next page: Static Routes