Make File Immune

Knowledge Base Entry: #121
^Top
<< Back
Mobile-Menu










Make File Immune
Category: Linux/Commands
Author: Bugfish
Created at: 2021-02-13 10:44:11
Modified at: 2025-09-19 22:27:11
Directs Hits: 754

This unix Command will make a file non-writable.

Make non-Writable
chattr +i file
Make writable again
chattr -i file
See Status:
lsattr file
Caution: I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
This Website is using Session Cookies for Site Functionality.