Tag: dirty lock file trick linux

Lock a file on Linux

Here is how to lock a file from write/delete in a dirty way . this trick will work this file system ext2-4 XFS, ReiserFS, JFS and OCFS2. and the trick is to use the command chattr for changing file extended

Tagged with: ,