From 10306395e5d3235ab05f00567e5d0e102414d21a Mon Sep 17 00:00:00 2001 From: Naveen Vardhi Date: Tue, 16 Feb 2016 13:44:30 +0530 Subject: [PATCH] chattr: add page --- pages/linux/chattr.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/linux/chattr.md diff --git a/pages/linux/chattr.md b/pages/linux/chattr.md new file mode 100644 index 0000000000..694b50bb0f --- /dev/null +++ b/pages/linux/chattr.md @@ -0,0 +1,15 @@ +# chattr + +> Change attributes of files or folders. + +- Make a file or folder immutable to changes and deletion, even by superuser: + +`chattr +i {{path}}` + +- Make a file or folder mutable: + +`chattr -i {{path}}` + +- Recursively make an entire folder and contents immutable: + +`chattr -R +i {{folder}}`