Skip to content

Commit

Permalink
Add chattr
Browse files Browse the repository at this point in the history
  • Loading branch information
yamaton committed Apr 11, 2024
1 parent 5d5a7e2 commit e26a5be
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 5 deletions.
4 changes: 2 additions & 2 deletions general.json.gz
Git LFS file not shown
1 change: 1 addition & 0 deletions general.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ cabal
cargo
cat
cf
chattr
chgrp
chmod
chown
Expand Down
2 changes: 1 addition & 1 deletion general/bash
Submodule bash updated 1 files
+13 −0 completions/chattr
2 changes: 1 addition & 1 deletion general/fish
Submodule fish updated 1 files
+7 −0 completions/chattr.fish
1 change: 1 addition & 0 deletions general/json/chattr.json
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"}
39 changes: 39 additions & 0 deletions general/yaml/chattr.yaml
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}}`
2 changes: 1 addition & 1 deletion general/zsh
Submodule zsh updated 1 files
+17 −0 completions/_chattr

0 comments on commit e26a5be

Please sign in to comment.