mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 20:48:35 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# createrepo
|
||||
|
||||
> Initializes an RPM repository in a directory, including all XML and SQLite files.
|
||||
> Initialize an RPM repository in a directory, including all XML and SQLite files.
|
||||
> More information: <https://manned.org/createrepo>.
|
||||
|
||||
- Initialize a basic repository in a directory:
|
||||
|
||||
31
tldr/linux/dnf-versionlock
Normal file
31
tldr/linux/dnf-versionlock
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf versionlock
|
||||
|
||||
> Protect packages from updates to newer versions.
|
||||
> Not default to `dnf` but supported via `dnf-plugins-core`.
|
||||
> See also: `dnf`.
|
||||
> More information: <https://dnf-plugins-core.readthedocs.io/en/latest/versionlock.html>.
|
||||
|
||||
- List the current versionlock entries:
|
||||
|
||||
`dnf versionlock`
|
||||
|
||||
- Add a versionlock for all available packages matching the spec:
|
||||
|
||||
`dnf versionlock add {{package}}`
|
||||
|
||||
- Add an exclude (within versionlock) for the available packages matching the spec:
|
||||
|
||||
`dnf versionlock exclude {{package}}`
|
||||
|
||||
- Remove any matching versionlock entries:
|
||||
|
||||
`dnf versionlock delete {{package}}`
|
||||
|
||||
- Remove all versionlock entries:
|
||||
|
||||
`dnf versionlock clear`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# impala
|
||||
|
||||
> Manage WiFi networks through a TUI.
|
||||
> Manage Wi-Fi networks through a TUI.
|
||||
> More information: <https://github.com/pythops/impala>.
|
||||
|
||||
- Launch `impala` in station mode:
|
||||
|
||||
@@ -17,11 +17,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo iw dev {{wlp}} set type managed`
|
||||
|
||||
- Set device WiFi channel (device must first be in monitor mode with the interface up):
|
||||
- Set device Wi-Fi channel (device must first be in monitor mode with the interface up):
|
||||
|
||||
`sudo iw dev {{wlp}} set channel {{channel_number}}`
|
||||
|
||||
- Set device WiFi frequency in Mhz (device must first be in monitor mode with the interface up):
|
||||
- Set device Wi-Fi frequency in Mhz (device must first be in monitor mode with the interface up):
|
||||
|
||||
`sudo iw dev {{wlp}} set freq {{freq_in_mhz}}`
|
||||
|
||||
|
||||
25
tldr/linux/pw-mididump
Normal file
25
tldr/linux/pw-mididump
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pw-mididump
|
||||
|
||||
> Dump MIDI messages to `stdout`.
|
||||
> More information: <https://docs.pipewire.org/page_man_pw-mididump_1.html>.
|
||||
|
||||
- Listen for and dump all incoming MIDI events:
|
||||
|
||||
`pw-mididump`
|
||||
|
||||
- Dump MIDI events from a specific file:
|
||||
|
||||
`pw-mididump {{path/to/file.mid}}`
|
||||
|
||||
- Connect to a specific remote PipeWire instance:
|
||||
|
||||
`pw-mididump {{[-r|--remote]}} {{remote_instance_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-mididump {{[-h|--help]}}`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# rnm
|
||||
|
||||
> Bulk Rename Utility.
|
||||
> More information: <https://github.com/neurobin/rnm>.
|
||||
> More information: <https://github.com/neurobin/rnm#basic-options>.
|
||||
|
||||
- Replace a search string with a replacement string in filenames:
|
||||
|
||||
|
||||
@@ -8,26 +8,26 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Interface to Slurm via REST API. It can be used in two modes: *Inetd Mode* & *Listen Mode*.
|
||||
> More information: <https://slurm.schedmd.com/slurmrestd.html>.
|
||||
|
||||
- Change the group ID (and drop supplemental groups) before processing client requests:
|
||||
- Change the [g]roup ID (and drop supplemental groups) before processing client requests:
|
||||
|
||||
`slurmrestd -g {{group_id}} {{[host]:port | unix:/path/to/socket}}`
|
||||
`slurmrestd -g {{group_id}} {{[host]:port|unix:/path/to/socket}}`
|
||||
|
||||
- Comma-delimited list of authentication plugins to load:
|
||||
- Comma-delimited list of [a]uthentication plugins to load:
|
||||
|
||||
`slurmrestd -a {{authentication_plugins}} {{[host]:port | unix:/path/to/socket}}`
|
||||
`slurmrestd -a {{authentication_plugins}} {{[host]:port|unix:/path/to/socket}}`
|
||||
|
||||
- Read Slurm configuration from the specified file:
|
||||
- Read Slurm configuration from the specified [f]ile:
|
||||
|
||||
`slurmrestd -f {{path/to/file}}`
|
||||
|
||||
- Change user ID before processing client request:
|
||||
- Change [u]ser ID before processing client request:
|
||||
|
||||
`slurmrestd -u {{user_id}}`
|
||||
|
||||
- Display help:
|
||||
- Display [h]elp:
|
||||
|
||||
`slurmrestd -h`
|
||||
|
||||
- Display version:
|
||||
- Display [V]ersion:
|
||||
|
||||
`slurmrestd -V`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# slurp
|
||||
|
||||
> Select a region in a Wayland compositor.
|
||||
> More information: <https://github.com/emersion/slurp>.
|
||||
> More information: <https://github.com/emersion/slurp/blob/master/slurp.1.scd>.
|
||||
|
||||
- Select a region and print it to `stdout`:
|
||||
|
||||
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Select a specific region and take a borderless video of it, using `wf-recorder`:
|
||||
|
||||
`wf-recorder --geometry "$(slurp -w 0)"`
|
||||
`wf-recorder {{[-g|--geometry]}} "$(slurp -w 0)"`
|
||||
|
||||
25
tldr/linux/systemctl-list-timers
Normal file
25
tldr/linux/systemctl-list-timers
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl list-timers
|
||||
|
||||
> List all active systemd timers.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-timers%20PATTERN…>.
|
||||
|
||||
- List all active timers:
|
||||
|
||||
`systemctl list-timers`
|
||||
|
||||
- List all timers, including inactive ones:
|
||||
|
||||
`systemctl list-timers {{[-a|--all]}}`
|
||||
|
||||
- List timers matching a pattern:
|
||||
|
||||
`systemctl list-timers {{pattern}}`
|
||||
|
||||
- List timers matching a specific state:
|
||||
|
||||
`systemctl list-timers --state {{active|inactive|failed|...}}`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vncviewer
|
||||
|
||||
> Launches a VNC (Virtual Network Computing) client.
|
||||
> Launch a VNC (Virtual Network Computing) client.
|
||||
> More information: <https://manned.org/vncviewer>.
|
||||
|
||||
- Launch a VNC client which connects to a host on a given display:
|
||||
|
||||
Reference in New Issue
Block a user