Date created: 12/09/19 08:17:21. Last modified: 12/17/19 09:12:21

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: Randomise Wi-Fi MAC
Next page: Static Routes