mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 05:47:38 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/autoexpect
Normal file
21
tldr/linux/autoexpect
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# autoexpect
|
||||
|
||||
> Generate a script from watching a session.
|
||||
> More information: <https://manned.org/autoexpect>.
|
||||
|
||||
- Spawn a shell and generate a script from it:
|
||||
|
||||
`autoexpect`
|
||||
|
||||
- Run a command and generate a script from it:
|
||||
|
||||
`autoexpect {{command}}`
|
||||
|
||||
- Run a command, generate a script, and save the script to a specified file:
|
||||
|
||||
`autoexpect -f {{path/to/file}} {{command}}`
|
||||
25
tldr/linux/koji-cancel
Normal file
25
tldr/linux/koji-cancel
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# koji cancel
|
||||
|
||||
> Cancel active tasks running on the Koji build system.
|
||||
> More information: <https://docs.pagure.org/koji/>.
|
||||
|
||||
- Cancel a task by its ID:
|
||||
|
||||
`koji cancel {{task_id}}`
|
||||
|
||||
- Cancel multiple tasks:
|
||||
|
||||
`koji cancel {{task_id1 task_id2 ...}}`
|
||||
|
||||
- Cancel a task with verbose output:
|
||||
|
||||
`koji cancel --verbose {{task_id}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji cancel {{[-h|--help]}}`
|
||||
17
tldr/linux/koji-taginfo
Normal file
17
tldr/linux/koji-taginfo
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# koji taginfo
|
||||
|
||||
> Print basic information about a tag.
|
||||
> More information: <https://docs.pagure.org/koji>.
|
||||
|
||||
- Print basic information:
|
||||
|
||||
`koji taginfo {{tag1 tag2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji taginfo --help`
|
||||
33
tldr/linux/koji-untag-build
Normal file
33
tldr/linux/koji-untag-build
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# koji untag-build
|
||||
|
||||
> Remove a tag from one or more builds.
|
||||
> More information: <https://docs.pagure.org/koji>.
|
||||
|
||||
- Remove a tag from one or more builds:
|
||||
|
||||
`koji untag-build {{tag}} {{NVR1 NVR2 ...}}`
|
||||
|
||||
- Untag all versions of the package in this tag:
|
||||
|
||||
`koji untag-build {{tag}} {{pkg1 pkg2 ...}} --all`
|
||||
|
||||
- Untag all versions of the package in this tag except the latest:
|
||||
|
||||
`koji untag-build {{tag}} {{pkg1 pkg2 ...}} --non-latest`
|
||||
|
||||
- Test mode:
|
||||
|
||||
`koji untag-build {{tag}} {{NVR1 NVR2 ...}} {{[-n|--test]}}`
|
||||
|
||||
- Print details:
|
||||
|
||||
`koji untag-build {{tag}} {{NVR1 NVR2 ...}} {{[-v|--verbose]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji untag-build --help`
|
||||
@@ -21,9 +21,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo setsebool -P {{container_use_devices}} {{1|true|on|0|false|off}}`
|
||||
|
||||
- Set or unset multiple booleans [P]ersistently at once:
|
||||
- Set or unset multiple booleans at once [P]ersistently:
|
||||
|
||||
`sudo setsebool -P {{ftpd_use_fusefs=1 mount_anyfile=0 ...}}`
|
||||
`sudo setsebool -P {{key1 1 key2 0 ...}}`
|
||||
|
||||
- Set or unset a boolean persistently (alternative method using `semanage-boolean`):
|
||||
|
||||
|
||||
@@ -23,3 +23,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Execute a command as another user:
|
||||
|
||||
`su - {{username}} {{[-c|--command]}} "{{command}}"`
|
||||
|
||||
- Switch to a given user and use a specific shell (e.g., zsh, fish, bash):
|
||||
|
||||
`su {{[-s|--shell]}} /{{path/to/shell}} {{username}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`su {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`su {{[-V|--version]}}`
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Reload multiple services:
|
||||
|
||||
`systemctl reload {{networking apache2 ...}}`
|
||||
`systemctl reload {{unit1 unit2 ...}}`
|
||||
|
||||
- Reload a service for the current user:
|
||||
|
||||
|
||||
@@ -11,4 +11,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Flip the current (non-persistent) values of the specified booleans:
|
||||
|
||||
`sudo togglesebool {{virt_use_samba virt_use_usb ...}}`
|
||||
`sudo togglesebool {{virt_use_samba|virt_use_usb|...}}`
|
||||
|
||||
- Flip multiple booleans:
|
||||
|
||||
`sudo togglesebool {{key1 key2 ...}}`
|
||||
|
||||
33
tldr/linux/xfs_admin
Normal file
33
tldr/linux/xfs_admin
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# xfs_admin
|
||||
|
||||
> Tune an XFS filesystem.
|
||||
> More information: <https://manned.org/xfs_admin>.
|
||||
|
||||
- Display the filesystem label:
|
||||
|
||||
`sudo xfs_admin {{[-l|--list]}} {{/dev/sdX}}`
|
||||
|
||||
- Set the filesystem label:
|
||||
|
||||
`sudo xfs_admin {{[-L|--Label]}} "{{label}}" {{/dev/sdX}}`
|
||||
|
||||
- Display the filesystem UUID:
|
||||
|
||||
`sudo xfs_admin {{[-u|--uuid]}} {{/dev/sdX}}`
|
||||
|
||||
- Set the filesystem UUID (use with caution):
|
||||
|
||||
`sudo xfs_admin {{[-U|--UUID]}} {{uuid}} {{/dev/sdX}}`
|
||||
|
||||
- Generate a new UUID for the filesystem:
|
||||
|
||||
`sudo xfs_admin {{[-U|--UUID]}} generate {{/dev/sdX}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`xfs_admin`
|
||||
Reference in New Issue
Block a user