mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 10:48:44 +00:00
Update cheatsheets
This commit is contained in:
43
tldr/audit2allow
Normal file
43
tldr/audit2allow
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# audit2allow
|
||||
|
||||
> Scan logs for messages pertaining to denied permissions.
|
||||
> Generate a report of Type Enforcement (TE) rules that might allow successful operations.
|
||||
> See also `audit2why`.
|
||||
> More information: <https://manned.org/audit2allow>.
|
||||
|
||||
- Show all generated messages in audit and message logs:
|
||||
|
||||
`audit2allow {{[-a|--all]}}`
|
||||
|
||||
- Show all generated messages since last boot:
|
||||
|
||||
`audit2allow {{[-b|--boot]}}`
|
||||
|
||||
- Display detailed information around generated messages:
|
||||
|
||||
`audit2allow {{[-e|--explain]}}`
|
||||
|
||||
- Enable verbose output mode:
|
||||
|
||||
`audit2allow {{[-v|--verbose]}}`
|
||||
|
||||
- Use installed macros to generate a reference policy:
|
||||
|
||||
`audit2allow {{[-R|--reference]}}`
|
||||
|
||||
- Specify a policy file for further analysis:
|
||||
|
||||
`audit2allow {{[-p|--policy]}} {{path/to/policyfile}}`
|
||||
|
||||
- Limit analysis to messages with a type specified in `regex`:
|
||||
|
||||
`audit2allow {{[-t|--type]}} {{type_regex}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`audit2allow {{[-h|--help]}}`
|
||||
@@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Switch to a branch and automatically merge the current branch and any uncommitted changes into it:
|
||||
|
||||
`git switch {{[-m|--merge]}} {{branch_name}}`
|
||||
|
||||
- Switch to a tag:
|
||||
|
||||
`git switch {{[-d|--detach]}} {{tag}}`
|
||||
|
||||
34
tldr/gitea
Normal file
34
tldr/gitea
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gitea
|
||||
|
||||
> Administer Gitea, a lightweight Git hosting server.
|
||||
> Requires a configured `app.ini` file or environment variables.
|
||||
> More information: <https://docs.gitea.com/administration/command-line>.
|
||||
|
||||
- Run the Gitea web server using the default configuration:
|
||||
|
||||
`gitea web`
|
||||
|
||||
- Create the necessary database schema and tables:
|
||||
|
||||
`gitea migrate`
|
||||
|
||||
- Run administrative subcommands for user management or authentication management:
|
||||
|
||||
`gitea admin {{user list}}`
|
||||
|
||||
- Display help for a specific subcommand:
|
||||
|
||||
`gitea {{admin}} --help`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gitea help`
|
||||
|
||||
- Display version:
|
||||
|
||||
`gitea --version`
|
||||
@@ -19,19 +19,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List keys from the public keyring:
|
||||
|
||||
`pacman-key --list-keys`
|
||||
`pacman-key {{[-l|--list-keys]}}`
|
||||
|
||||
- Add the specified keys:
|
||||
|
||||
`sudo pacman-key --add {{path/to/keyfile.gpg}}`
|
||||
`sudo pacman-key {{[-a|--add]}} {{path/to/keyfile.gpg}}`
|
||||
|
||||
- Receive a key from a key server:
|
||||
|
||||
`sudo pacman-key --recv-keys "{{uid|name|email}}"`
|
||||
`sudo pacman-key {{[-r|--recv-keys]}} "{{uid|name|email}}"`
|
||||
|
||||
- Print the fingerprint of a specific key:
|
||||
|
||||
`pacman-key --finger "{{uid|name|email}}"`
|
||||
`pacman-key {{[-f|--finger]}} "{{uid|name|email}}"`
|
||||
|
||||
- Sign an imported key locally:
|
||||
|
||||
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove a specific key:
|
||||
|
||||
`sudo pacman-key --delete "{{uid|name|email}}"`
|
||||
`sudo pacman-key {{[-d|--delete]}} "{{uid|name|email}}"`
|
||||
|
||||
4
tldr/tar
4
tldr/tar
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- [c]reate a g[z]ipped (compressed) archive from a directory using relative paths:
|
||||
|
||||
`tar czf {{path/to/target.tar.gz}} --directory={{path/to/directory}} .`
|
||||
`tar czf {{path/to/target.tar.gz}} {{[-C|--directory]}} {{path/to/directory}} .`
|
||||
|
||||
- E[x]tract a (compressed) archive [f]ile into the current directory [v]erbosely:
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- E[x]tract a (compressed) archive [f]ile into the target directory:
|
||||
|
||||
`tar xf {{path/to/source.tar[.gz|.bz2|.xz]}} --directory={{path/to/directory}}`
|
||||
`tar xf {{path/to/source.tar[.gz|.bz2|.xz]}} {{[-C|--directory]}} {{path/to/directory}}`
|
||||
|
||||
- [c]reate a compressed archive and write it to a [f]ile, using the file extension to [a]utomatically determine the compression program:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user