Use the following command to made folder undeletable.
$sudo chattr +i <file/folder name>
To again make it deletable, use following command
$sudo chattr -i <file/folder name>
here were setting attribute immutable with + and resetting it with - sign. i=immutable flag/attribute.
$sudo chattr +i <file/folder name>
To again make it deletable, use following command
$sudo chattr -i <file/folder name>
here were setting attribute immutable with + and resetting it with - sign. i=immutable flag/attribute.
No comments:
Post a Comment