mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 16:53:04 +00:00
Update cheatsheets
This commit is contained in:
@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Part of the AppArmor suite.
|
||||
> More information: <https://manned.org/aa-update-browser>.
|
||||
|
||||
- List available browser abstraction profiles:
|
||||
- [l]ist available browser abstraction profiles:
|
||||
|
||||
`sudo aa-update-browser -l`
|
||||
|
||||
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo aa-update-browser -d {{path/to/profile}}`
|
||||
|
||||
- Update a profile with specific abstractions:
|
||||
- [u]pdate a profile with specific abstractions:
|
||||
|
||||
`sudo aa-update-browser -u {{abstraction1,abstraction2,...}} {{path/to/profile}}`
|
||||
|
||||
|
||||
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`arithmetic -o {{+|-|x|/}}`
|
||||
|
||||
- Specify a range. Addition and multiplication problems would feature numbers between 0 and range, inclusive. Subtraction and division problems would have required result and number to be operated on, between 0 and range:
|
||||
- Specify a [r]ange. Addition and multiplication problems would feature numbers between 0 and range, inclusive. Subtraction and division problems would have required result and number to be operated on, between 0 and range:
|
||||
|
||||
`arithmetic -r {{7}}`
|
||||
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`chattr -R +i {{path/to/directory}}`
|
||||
|
||||
- Mark a directory and its files to be interpreted in a case-insensitive manner:
|
||||
- Mark a directory and its files to be interpreted in a case-insensitive manner (case-[F]olding):
|
||||
|
||||
`chattr +F {{path/to/directory}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ctop
|
||||
|
||||
> Instantly visualize container performance and health with real-time metrics on CPU, memory, and block IO usage.
|
||||
> More information: <https://github.com/bcicen/ctop>.
|
||||
> More information: <https://github.com/bcicen/ctop#usage>.
|
||||
|
||||
- Show only [a]ctive containers:
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`dnstracer -s {{dns.example.org}} {{www.example.com}}`
|
||||
|
||||
- Only query IPv4 servers:
|
||||
- Only query IPv[4] servers:
|
||||
|
||||
`dnstracer -4 {{www.example.com}}`
|
||||
|
||||
- Retry each request 5 times on failure:
|
||||
- [r]etry each request 5 times on failure:
|
||||
|
||||
`dnstracer -r {{5}} {{www.example.com}}`
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo e2fsck -c {{/dev/sdXN}}`
|
||||
|
||||
- Force checking even if the filesystem seems clean:
|
||||
- [f]orce checking even if the filesystem seems clean:
|
||||
|
||||
`sudo e2fsck -f {{/dev/sdXN}}`
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`e2image -I {{/dev/sdXN}} {{path/to/image_file}}`
|
||||
|
||||
- Create a large raw sparse file with metadata at proper offsets:
|
||||
- Create a large [r]aw sparse file with metadata at proper offsets:
|
||||
|
||||
`e2image -r {{/dev/sdXN}} {{path/to/image_file}}`
|
||||
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`export PATH=$PATH:{{path/to/append}}`
|
||||
|
||||
- Display a list of active exported variables in shell command form:
|
||||
- [p]rint a list of active exported variables in shell command form:
|
||||
|
||||
`export -p`
|
||||
|
||||
@@ -31,5 +31,5 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View multiple images from the web:
|
||||
|
||||
`curl -Osw '%{filename_effective}
|
||||
`curl {{[-Osw|--remote-name --silent --write-out]}} '%{filename_effective}
|
||||
' '{{http://www.example.com/[1-10].jpg}}' | imv`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# protontricks
|
||||
|
||||
> A simple wrapper that runs Winetricks commands for Proton enabled games.
|
||||
> More information: <https://github.com/Matoking/protontricks>.
|
||||
> More information: <https://github.com/Matoking/protontricks#usage>.
|
||||
|
||||
- Run the protontricks GUI:
|
||||
|
||||
@@ -18,15 +18,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a command within a game's installation directory:
|
||||
|
||||
`protontricks -c {{command}} {{appid}}`
|
||||
`protontricks {{[-c|--command]}} {{command}} {{appid}}`
|
||||
|
||||
- [l]ist all installed games:
|
||||
- List all installed games:
|
||||
|
||||
`protontricks -l`
|
||||
`protontricks {{[-l|--list]}}`
|
||||
|
||||
- [s]earch for a game's App ID by name:
|
||||
- Search for a game's App ID by name:
|
||||
|
||||
`protontricks -s {{game_name}}`
|
||||
`protontricks {{[-s|--search]}} {{game_name}}`
|
||||
|
||||
- Run an executable in the proton environment of a specific game:
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`protontricks --help`
|
||||
`protontricks {{[-h|--help]}}`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`shutdown -h 13:00`
|
||||
|
||||
- Cancel a pending shutdown/reboot operation:
|
||||
- [c]ancel a pending shutdown/reboot operation:
|
||||
|
||||
`shutdown -c`
|
||||
|
||||
41
tldr/linux/spa-acp-tool
Normal file
41
tldr/linux/spa-acp-tool
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# spa-acp-tool
|
||||
|
||||
> Debug ALSA card profile probing without running PipeWire.
|
||||
> More information: <https://docs.pipewire.org/page_man_spa-acp-tool_1.html>.
|
||||
|
||||
- List all ALSA objects:
|
||||
|
||||
`spa-acp-tool {{[l|list]}}`
|
||||
|
||||
- Probe a specific ALSA card by ID:
|
||||
|
||||
`spa-acp-tool {{[c|card]}} {{card_id}}`
|
||||
|
||||
- List available ALSA profiles for a card:
|
||||
|
||||
`spa-acp-tool {{[lpr|list-profiles]}} {{card_id}}`
|
||||
|
||||
- Set the active ALSA profile by ID:
|
||||
|
||||
`spa-acp-tool {{[spr|set-profile]}} {{profile_id}}`
|
||||
|
||||
- List available devices for a card:
|
||||
|
||||
`spa-acp-tool {{[ld|list-devices]}} {{card_id}}`
|
||||
|
||||
- Get volume from a device:
|
||||
|
||||
`spa-acp-tool {{[gv|get-volume]}} {{device_id}}`
|
||||
|
||||
- Set volume on a device:
|
||||
|
||||
`spa-acp-tool {{[v|set-volume]}} {{device_id}} {{volume_level}}`
|
||||
|
||||
- Toggle mute state on a device:
|
||||
|
||||
`spa-acp-tool {{[m|toggle-mute]}} {{device_id}}`
|
||||
13
tldr/linux/spa-inspect
Normal file
13
tldr/linux/spa-inspect
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# spa-inspect
|
||||
|
||||
> Display SPA plugin information, list and try to instantiate available factories.
|
||||
> More information: <https://docs.pipewire.org/page_man_spa-inspect_1.html>.
|
||||
|
||||
- Display information about a SPA plugin:
|
||||
|
||||
`spa-inspect {{path/to/plugin.so}}`
|
||||
14
tldr/linux/systemctl-daemon-reexec
Normal file
14
tldr/linux/systemctl-daemon-reexec
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl daemon-reexec
|
||||
|
||||
> Reexecute systemd while preserving current unit states.
|
||||
> See also: `systemctl daemon-reload` for applying changes in unit files.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#daemon-reexec>.
|
||||
|
||||
- Reexecute systemd:
|
||||
|
||||
`systemctl daemon-reexec`
|
||||
26
tldr/linux/systemctl-is-failed
Normal file
26
tldr/linux/systemctl-is-failed
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl is-failed
|
||||
|
||||
> Check if one or more systemd units have failed.
|
||||
> See also: `systemctl is-active`, `systemctl status`.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#is-failed%20PATTERN%E2%80%A6>.
|
||||
|
||||
- Check if there are any failed units:
|
||||
|
||||
`systemctl is-failed`
|
||||
|
||||
- Check if a unit or multiple units have failed:
|
||||
|
||||
`systemctl is-failed {{unit1 unit2 ...}}`
|
||||
|
||||
- Suppress output and return only the exit code:
|
||||
|
||||
`systemctl is-failed {{unit}} {{[-q|--quiet]}}`
|
||||
|
||||
- Check if a user unit has failed:
|
||||
|
||||
`systemctl is-failed {{unit}} --user`
|
||||
30
tldr/linux/systemctl-list-sockets
Normal file
30
tldr/linux/systemctl-list-sockets
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl list-sockets
|
||||
|
||||
> List active socket units currently in memory, ordered by listening address.
|
||||
> See also: `systemctl list-units`, `systemctl list-unit-files`.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-sockets%20PATTERN%E2%80%A6>.
|
||||
|
||||
- List active socket units currently in memory:
|
||||
|
||||
`systemctl list-sockets`
|
||||
|
||||
- List active socket units with their socket types:
|
||||
|
||||
`systemctl list-sockets --show-types`
|
||||
|
||||
- List all socket units, including inactive and failed ones:
|
||||
|
||||
`systemctl list-sockets {{[-a|--all]}}`
|
||||
|
||||
- List socket units filtered by state:
|
||||
|
||||
`systemctl list-sockets --state {{active|inactive|failed|...}}`
|
||||
|
||||
- List socket units matching a name pattern:
|
||||
|
||||
`systemctl list-sockets {{pattern1 pattern2 ...}}`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tuxi
|
||||
|
||||
> Scrape Google search results and SERPs and provide instant and concise answers.
|
||||
> More information: <https://github.com/Bugswriter/tuxi>.
|
||||
> More information: <https://github.com/Bugswriter/tuxi#usage>.
|
||||
|
||||
- Make a search using Google:
|
||||
|
||||
|
||||
25
tldr/linux/vgcfgrestore
Normal file
25
tldr/linux/vgcfgrestore
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vgcfgrestore
|
||||
|
||||
> Restore volume group configuration (not user data) from a text back up file produced by `vgcfgbackup`.
|
||||
> More information: <https://manned.org/vgcfgrestore>.
|
||||
|
||||
- Restore VG metadata from last backup.:
|
||||
|
||||
`vgcfgrestore {{vg_name}}`
|
||||
|
||||
- Restore VG metadata from specified backup-file:
|
||||
|
||||
`vgcfgrestore {{[-f|--file]}} {{path/to/file}} {{vg_name}}`
|
||||
|
||||
- List all VG metadata backups:
|
||||
|
||||
`vgcfgrestore {{[-l|--list]}} {{vg_name}}`
|
||||
|
||||
- List one VG metadata backup file:
|
||||
|
||||
`vgcfgrestore {{[-l|--list ]}} {{[ -f|--file]}} {{path/to/file}} {{vg_name}}`
|
||||
Reference in New Issue
Block a user