mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-09 23:58:02 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/linux/pvck
Normal file
37
tldr/linux/pvck
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pvck
|
||||
|
||||
> Check and repair LVM metadata on physical volumes.
|
||||
> More information: <https://manned.org/pvck>.
|
||||
|
||||
- Print LVM on-disk headers and structures (label, PV header, MDA header, metadata area):
|
||||
|
||||
`pvck {{/dev/sdXN}} --dump headers`
|
||||
|
||||
- Print the current VG metadata text:
|
||||
|
||||
`pvck {{/dev/sdXN}} --dump metadata`
|
||||
|
||||
- List all metadata versions found in the metadata area:
|
||||
|
||||
`pvck {{/dev/sdXN}} --dump metadata_all`
|
||||
|
||||
- Search common locations for metadata when headers may be damaged, and save it to a file:
|
||||
|
||||
`pvck {{/dev/sdXN}} --dump metadata_search {{[-f|--file]}} {{path/to/metadata.txt}}`
|
||||
|
||||
- Select the second metadata area (mda2) when printing metadata:
|
||||
|
||||
`pvck {{/dev/sdXN}} --dump metadata --settings "mda_num=2"`
|
||||
|
||||
- Repair headers and metadata using a metadata input file (use with care):
|
||||
|
||||
`pvck {{/dev/sdXN}} --repair {{[-f|--file]}} {{path/to/metadata_file}}`
|
||||
|
||||
- Repair only the PV header and label header:
|
||||
|
||||
`pvck {{/dev/sdXN}} --repairtype pv_header`
|
||||
25
tldr/linux/pw-jack
Normal file
25
tldr/linux/pw-jack
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pw-jack
|
||||
|
||||
> Run a JACK application with PipeWire.
|
||||
> More information: <https://docs.pipewire.org/page_man_pw-jack_1.html>.
|
||||
|
||||
- Run a command with its arguments, using PipeWire:
|
||||
|
||||
`pw-jack {{command}} {{argument1 argument2 ...}}`
|
||||
|
||||
- Run a command in verbose mode:
|
||||
|
||||
`pw-jack -v {{command}}`
|
||||
|
||||
- Connect to a specific remote PipeWire instance:
|
||||
|
||||
`pw-jack -r {{remote_instance_name}} {{command}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-jack -h`
|
||||
34
tldr/linux/semanage-login
Normal file
34
tldr/linux/semanage-login
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# semanage-login
|
||||
|
||||
> Manage SELinux login mappings between Linux users and SELinux users.
|
||||
> See also: `semanage`, `semanage-user`.
|
||||
> More information: <https://manned.org/semanage-login>.
|
||||
|
||||
- List all login mappings:
|
||||
|
||||
`sudo semanage login {{[-l|--list]}}`
|
||||
|
||||
- Add a login mapping (map Linux user to SELinux user):
|
||||
|
||||
`sudo semanage login {{[-a|--add]}} {{[-s|--seuser]}} {{selinux_user}} {{linux_username}}`
|
||||
|
||||
- Delete a login mapping:
|
||||
|
||||
`sudo semanage login {{[-d|--delete]}} {{linux_username}}`
|
||||
|
||||
- Modify an existing login mapping:
|
||||
|
||||
`sudo semanage login {{[-m|--modify]}} {{[-s|--seuser]}} {{selinux_user}} {{linux_username}}`
|
||||
|
||||
- Add a login mapping with a specific MLS/MCS range:
|
||||
|
||||
`sudo semanage login {{[-a|--add]}} {{[-s|--seuser]}} {{user_u}} {{[-r|--range]}} {{s0-s0:c0.c1023}} {{linux_username}}`
|
||||
|
||||
- List only customized login mappings:
|
||||
|
||||
`sudo semanage login {{[-l|--list]}} {{[-C|--locallist]}}`
|
||||
26
tldr/linux/systemctl-list-automounts
Normal file
26
tldr/linux/systemctl-list-automounts
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl list-automounts
|
||||
|
||||
> List automount units currently in memory, showing mount paths and unit names.
|
||||
> See also: `systemctl list-units`, `systemctl list-unit-files`.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-automounts%20PATTERN%E2%80%A6>.
|
||||
|
||||
- List automount units currently in memory:
|
||||
|
||||
`systemctl list-automounts`
|
||||
|
||||
- List all automount units, including inactive ones:
|
||||
|
||||
`systemctl list-automounts {{[-a|--all]}}`
|
||||
|
||||
- Filter automount units by state:
|
||||
|
||||
`systemctl list-automounts --state {{active|inactive|failed|...}}`
|
||||
|
||||
- Filter automount units by name pattern:
|
||||
|
||||
`systemctl list-automounts {{pattern1 pattern2 ...}}`
|
||||
Reference in New Issue
Block a user