-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ cabal | |
cargo | ||
cat | ||
cf | ||
chattr | ||
chgrp | ||
chmod | ||
chown | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"chattr","description":"change file attributes on a Linux file system","usage":"chattr [ -RVf ] [ -v version ] [ -p project ] [ mode ] files...","options":[{"names":["-R"],"argument":"","description":"Recursively change attributes of directories and their contents."},{"names":["-V"],"argument":"","description":"Be verbose with chattr's output and print the program version."},{"names":["-f"],"argument":"","description":"Suppress most error messages."},{"names":["-v"],"argument":"version","description":"Set the file's version/generation number."},{"names":["-p"],"argument":"project","description":"Set the file's project number."}],"tldr":"> Change attributes of files or directories.\n> More information: <https://manned.org/chattr>.\n\n- Make a file or directory immutable to changes and deletion, even by superuser:\n\n`chattr +i {{path/to/file_or_directory}}`\n\n- Make a file or directory mutable:\n\n`chattr -i {{path/to/file_or_directory}}`\n\n- Recursively make an entire directory and contents immutable:\n\n`chattr -R +i {{path/to/directory}}`\n"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: chattr | ||
description: change file attributes on a Linux file system | ||
usage: chattr [ -RVf ] [ -v version ] [ -p project ] [ mode ] files... | ||
options: | ||
- names: | ||
- -R | ||
argument: "" | ||
description: Recursively change attributes of directories and their contents. | ||
- names: | ||
- -V | ||
argument: "" | ||
description: Be verbose with chattr's output and print the program version. | ||
- names: | ||
- -f | ||
argument: "" | ||
description: Suppress most error messages. | ||
- names: | ||
- -v | ||
argument: version | ||
description: Set the file's version/generation number. | ||
- names: | ||
- -p | ||
argument: project | ||
description: Set the file's project number. | ||
tldr: | | ||
> Change attributes of files or directories. | ||
> More information: <https://manned.org/chattr>. | ||
- Make a file or directory immutable to changes and deletion, even by superuser: | ||
`chattr +i {{path/to/file_or_directory}}` | ||
- Make a file or directory mutable: | ||
`chattr -i {{path/to/file_or_directory}}` | ||
- Recursively make an entire directory and contents immutable: | ||
`chattr -R +i {{path/to/directory}}` |