From 42ee16d1f0f8e2398b319b7d903559b36e186d07 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 28 Jun 2025 00:19:57 +0000 Subject: [PATCH] Update cheatsheets --- tldr/^ | 4 ++++ tldr/crystal | 2 +- tldr/gh-issue-create | 2 +- tldr/glab-alias | 8 ++++---- tldr/gst-device-monitor-1.0 | 21 +++++++++++++++++++++ tldr/gst-launch-1.0 | 15 ++++++++++++++- tldr/linux/aurman | 14 +++++++------- tldr/linux/aurvote | 6 +++--- tldr/linux/autorandr | 10 +++++----- tldr/linux/balooctl | 2 +- tldr/linux/bcachefs | 6 +++--- tldr/linux/bchunk | 2 +- tldr/linux/betterdiscordctl | 8 ++++---- tldr/linux/bleachbit | 8 ++++---- tldr/linux/bluebuild | 4 ++-- tldr/linux/bluetoothd | 8 ++++---- tldr/linux/br | 8 ++++---- tldr/linux/brightnessctl | 4 ++-- tldr/linux/bspc | 10 +++++----- tldr/linux/btrbk | 4 ++-- tldr/linux/btrfs-balance | 2 +- tldr/linux/btrfs-subvolume | 2 +- tldr/linux/btrfs-version | 2 +- tldr/linux/bully | 4 ++-- tldr/linux/byzanz-record | 4 ++-- tldr/linux/legit | 4 ++-- tldr/linux/pihole | 6 +++--- tldr/linux/proctl | 2 +- tldr/linux/pw-cat | 1 + tldr/linux/pw-cli | 1 + tldr/linux/setxkbmap | 8 ++++---- tldr/linux/vgextend | 17 +++++++++++++++++ tldr/linux/wpctl | 1 + tldr/meson | 2 +- tldr/nano | 16 ++++++++-------- tldr/nix-classic | 2 +- tldr/nix-store.2 | 8 ++++---- tldr/nix-store.3 | 6 +++--- tldr/nix-why-depends | 2 +- tldr/pixi | 2 +- tldr/poetry | 4 ++-- tldr/rnano | 16 +++------------- tldr/ts-node | 2 +- tldr/upx | 2 +- 44 files changed, 155 insertions(+), 107 deletions(-) create mode 100644 tldr/gst-device-monitor-1.0 create mode 100644 tldr/linux/vgextend diff --git a/tldr/^ b/tldr/^ index 488a4f2e..69c63ce9 100644 --- a/tldr/^ +++ b/tldr/^ @@ -24,3 +24,7 @@ source: https://github.com/tldr-pages/tldr.git - Replace all occurrences of `string1`: `^{{string1}}^{{string2}}^:&` + +- Print the substituted command without running it: + +`^{{string1}}^{{string2}}^:p` diff --git a/tldr/crystal b/tldr/crystal index 422eccf7..b092d70b 100644 --- a/tldr/crystal +++ b/tldr/crystal @@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git `crystal init app {{application_name}}` -- Display all help options: +- Display help: `crystal help` diff --git a/tldr/gh-issue-create b/tldr/gh-issue-create index 4a1a2b5c..505942da 100644 --- a/tldr/gh-issue-create +++ b/tldr/gh-issue-create @@ -32,6 +32,6 @@ source: https://github.com/tldr-pages/tldr.git `gh issue create {{[-w|--web]}}` -- Display the help: +- Display help: `gh issue create --help` diff --git a/tldr/glab-alias b/tldr/glab-alias index c1e505c8..bb6b58dc 100644 --- a/tldr/glab-alias +++ b/tldr/glab-alias @@ -8,10 +8,6 @@ source: https://github.com/tldr-pages/tldr.git > Manage GitLab CLI command aliases. > More information: . -- Display the subcommand help: - -`glab alias` - - List all the aliases `glab` is configured to use: `glab alias list` @@ -27,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Delete a command shortcut: `glab alias delete {{alias_name}}` + +- Display the subcommand help: + +`glab alias` diff --git a/tldr/gst-device-monitor-1.0 b/tldr/gst-device-monitor-1.0 new file mode 100644 index 00000000..56e76458 --- /dev/null +++ b/tldr/gst-device-monitor-1.0 @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gst-device-monitor-1.0 + +> List devices detected by GStreamer. +> More information: . + +- List all current devices: + +`gst-device-monitor-1.0` + +- List all current devices and monitor for any changes: + +`gst-device-monitor-1.0 {{[-f|--follow]}}` + +- List devices of a specific type: + +`gst-device-monitor-1.0 {{Audio|Video}}/{{Source|Sink}}` diff --git a/tldr/gst-launch-1.0 b/tldr/gst-launch-1.0 index b2778914..ef86b288 100644 --- a/tldr/gst-launch-1.0 +++ b/tldr/gst-launch-1.0 @@ -6,11 +6,16 @@ source: https://github.com/tldr-pages/tldr.git # gst-launch-1.0 > Build and run a GStreamer pipeline. +> See also: `gst-inspect-1.0`. > More information: . - Play test video in a window: -`gst-launch-1.0 videotestsrc ! xvimagesink` +`gst-launch-1.0 videotestsrc ! autovideosink` + +- Play test audio: + +`gst-launch-1.0 audiotestsrc ! autoaudiosink` - Play a media file in a window: @@ -23,3 +28,11 @@ source: https://github.com/tldr-pages/tldr.git - Stream a file to an RTSP server: `gst-launch-1.0 filesrc location={{path/to/file}} ! rtspclientsink location=rtsp://{{host_IP}}/{{path/to/file}}` + +- Force an End Of Stream event if the pipeline is shut down with `` for containers that require finalization such as `mp4`: + +`gst-launch-1.0 {{[-e|--eos-on-shutdown]}} videotestsrc ! x264enc ! mp4mux ! filesink location={{path/to/file.mp4}}` + +- Multiplex together test video and test audio into a file: + +`gst-launch-1.0 {{[-e|--eos-on-shutdown]}} videotestsrc ! x264enc ! {{element_name}}. audiotestsrc ! opusenc ! {{element_name}}. matroskamux name={{element_name}} ! filesink location={{path/to/file.mkv}}` diff --git a/tldr/linux/aurman b/tldr/linux/aurman index e2f25274..82f388c5 100644 --- a/tldr/linux/aurman +++ b/tldr/linux/aurman @@ -11,27 +11,27 @@ source: https://github.com/tldr-pages/tldr.git - Synchronize and update all packages: -`aurman --sync --refresh --sysupgrade` +`aurman {{[-S|--sync]}} {{[-y|--refresh]}} {{[-u|--sysupgrade]}}` - Synchronize and update all packages without show changes of `PKGBUILD` files: -`aurman --sync --refresh --sysupgrade --noedit` +`aurman {{[-S|--sync]}} {{[-y|--refresh]}} {{[-u|--sysupgrade]}} --noedit` - Install a new package: -`aurman --sync {{package}}` +`aurman {{[-S|--sync]}} {{package}}` - Install a new package without show changes of `PKGBUILD` files: -`aurman --sync --noedit {{package}}` +`aurman {{[-S|--sync]}} --noedit {{package}}` - Install a new package without prompting: -`aurman --sync --noedit --noconfirm {{package}}` +`aurman {{[-S|--sync]}} --noedit --noconfirm {{package}}` - Search the package database for a keyword from the official repositories and AUR: -`aurman --sync --search {{keyword}}` +`aurman {{[-S|--sync]}} {{[-s|--search]}} {{keyword}}` - Remove a package and its dependencies: @@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git - Clear the package cache (use two `--clean` flags to clean all packages): -`aurman --sync --clean` +`aurman {{[-S|--sync]}} {{[-c|--clean]}}` diff --git a/tldr/linux/aurvote b/tldr/linux/aurvote index 667a74af..3ba1f865 100644 --- a/tldr/linux/aurvote +++ b/tldr/linux/aurvote @@ -19,12 +19,12 @@ source: https://github.com/tldr-pages/tldr.git - Unvote one or more AUR packages: -`aurvote --unvote {{package1 package2 ...}}` +`aurvote {{[-u|--unvote]}} {{package1 package2 ...}}` - Check if one or more AUR packages have already been voted: -`aurvote --check {{package1 package2 ...}}` +`aurvote {{[-c|--check]}} {{package1 package2 ...}}` - Display help: -`aurvote --help` +`aurvote {{[-h|--help]}}` diff --git a/tldr/linux/autorandr b/tldr/linux/autorandr index b06b0cdf..b2e2f533 100644 --- a/tldr/linux/autorandr +++ b/tldr/linux/autorandr @@ -6,11 +6,11 @@ source: https://github.com/tldr-pages/tldr.git # autorandr > Automatically change screen layout. -> More information: . +> More information: . - Save the current screen layout: -`autorandr --save {{profile_name}}` +`autorandr {{[-s|--save]}} {{profile_name}}` - Show the saved profiles: @@ -18,12 +18,12 @@ source: https://github.com/tldr-pages/tldr.git - Load the first detected profile: -`autorandr --change` +`autorandr {{[-c|--change]}}` - Load a specific profile: -`autorandr --load {{profile_name}}` +`autorandr {{[-l|--load]}} {{profile_name}}` - Set the default profile: -`autorandr --default {{profile_name}}` +`autorandr {{[-d|--default]}} {{profile_name}}` diff --git a/tldr/linux/balooctl b/tldr/linux/balooctl index af0f978d..c02f548b 100644 --- a/tldr/linux/balooctl +++ b/tldr/linux/balooctl @@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`balooctl --help` +`balooctl {{[-h|--help]}}` diff --git a/tldr/linux/bcachefs b/tldr/linux/bcachefs index 0f8c9d65..c9fac871 100644 --- a/tldr/linux/bcachefs +++ b/tldr/linux/bcachefs @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Create a RAID 0 filesystem where an SSD acts as a cache and an HDD acts as a long-term storage: -`sudo bcachefs format --label=ssd.ssd1 {{path/to/ssd/partition}} --label=hdd.hdd1 {{path/to/hdd/partition}} --replicas=1 --foreground_target=ssd --promote_target=ssd --background_target=hdd` +`sudo bcachefs format {{[-l|--label]}} {{ssd.ssd1}} {{path/to/ssd/partition}} {{[-l|--label]}} {{hdd.hdd1}} {{path/to/hdd/partition}} --replicas 1 --foreground_target {{ssd}} --promote_target {{ssd}} --background_target {{hdd}}` - Mount a multidevice filesystem: @@ -27,11 +27,11 @@ source: https://github.com/tldr-pages/tldr.git - Display disk usage: -`bcachefs fs usage --human-readable {{path/to/mountpoint}}` +`bcachefs fs usage {{[-h|--human-readable]}} {{path/to/mountpoint}}` - Set replicas after formatting and mounting: -`sudo bcachefs set-fs-option --metadata_replicas={{2}} --data_replicas={{2}} {{path/to/partition}}` +`sudo bcachefs set-fs-option --metadata_replicas {{2}} --data_replicas {{2}} {{path/to/partition}}` - Force `bcachefs` to ensure all files are replicated: diff --git a/tldr/linux/bchunk b/tldr/linux/bchunk index b932f7fd..01f37d8a 100644 --- a/tldr/linux/bchunk +++ b/tldr/linux/bchunk @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # bchunk > Convert CD images to a set of `.iso` and `.cdr` tracks. -> More information: . +> More information: . - Convert binary CD into a standard iso9960 image file: diff --git a/tldr/linux/betterdiscordctl b/tldr/linux/betterdiscordctl index c681d1ee..af8fc148 100644 --- a/tldr/linux/betterdiscordctl +++ b/tldr/linux/betterdiscordctl @@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git - Install BetterDiscord on Discord Canary: -`sudo betterdiscordctl --d-flavors canary install` +`sudo betterdiscordctl {{[-f|--d-flavors]}} canary install` - Install BetterDiscord on Discord PTB: -`sudo betterdiscordctl --d-flavors ptb install` +`sudo betterdiscordctl {{[-f|--d-flavors]}} ptb install` - Install BetterDiscord on Discord installed with Flatpak: -`sudo betterdiscordctl --d-install flatpak install` +`sudo betterdiscordctl {{[-i|--d-install]}} flatpak install` - Install BetterDiscord on Discord installed with Snap: -`sudo betterdiscordctl --d-install snap install` +`sudo betterdiscordctl {{[-i|--d-install]}} snap install` diff --git a/tldr/linux/bleachbit b/tldr/linux/bleachbit index 5c537d15..38086643 100644 --- a/tldr/linux/bleachbit +++ b/tldr/linux/bleachbit @@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git - Shred a file: -`bleachbit --shred {{path/to/file}}` +`bleachbit {{[-s|--shred]}} {{path/to/file}}` - List available cleaner options: -`bleachbit --list-cleaners` +`bleachbit {{[-l|--list-cleaners]}}` - Preview the files that will be deleted and other changes that will be made before actually performing the clean-up operation: -`bleachbit --preview {{--preset|cleaner1.option1 cleaner2.* ...}}` +`bleachbit {{[-p|--preview]}} --preset {{cleaner1.option1 cleaner2.option2 ...}}` - Perform the clean-up operation and delete files: -`bleachbit --clean {{--preset|cleaner1.option1 cleaner2.* ...}}` +`bleachbit {{[-c|--clean]}} --preset {{cleaner1.option1 cleaner2.option2 ...}}` diff --git a/tldr/linux/bluebuild b/tldr/linux/bluebuild index 524e27ed..56767e0a 100644 --- a/tldr/linux/bluebuild +++ b/tldr/linux/bluebuild @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Generate a Containerfile: -`bluebuild generate --output {{Containerfile}} {{path/to/recipe.yml}}` +`bluebuild generate {{[-o|--output]}} {{Containerfile}} {{path/to/recipe.yml}}` - Generate an ISO from a recipe: @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`bluebuild --help` +`bluebuild {{[-h|--help]}}` diff --git a/tldr/linux/bluetoothd b/tldr/linux/bluetoothd index 6101962d..c8597511 100644 --- a/tldr/linux/bluetoothd +++ b/tldr/linux/bluetoothd @@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git - Start the daemon, logging to `stdout`: -`bluetoothd --nodetach` +`bluetoothd {{[-n|--nodetach]}}` - Start the daemon with a specific configuration file (defaults to `/etc/bluetooth/main.conf`): -`bluetoothd --configfile {{path/to/file}}` +`bluetoothd {{[-f|--configfile]}} {{path/to/file}}` - Start the daemon with verbose output to `stderr`: -`bluetoothd --debug` +`bluetoothd {{[-d|--debug]}}` - Start the daemon with verbose output coming from specific files in the bluetoothd or plugins source: -`bluetoothd --debug={{path/to/file1:path/to/file2:...}}` +`bluetoothd {{[-d|--debug=]}}{{path/to/file1:path/to/file2:...}}` diff --git a/tldr/linux/br b/tldr/linux/br index 41b38d15..fa65ed0a 100644 --- a/tldr/linux/br +++ b/tldr/linux/br @@ -15,16 +15,16 @@ source: https://github.com/tldr-pages/tldr.git - Start displaying the size of files and directories: -`br --sizes` +`br {{[-s|--sizes]}}` - Start displaying permissions: -`br --permissions` +`br {{[-p|--permissions]}}` - Start displaying directories only: -`br --only-folders` +`br {{[-f|--only-folders]}}` - Start displaying hidden files and directories: -`br --hidden` +`br {{[-h|--hidden]}}` diff --git a/tldr/linux/brightnessctl b/tldr/linux/brightnessctl index 5f561859..13c5df2d 100644 --- a/tldr/linux/brightnessctl +++ b/tldr/linux/brightnessctl @@ -6,11 +6,11 @@ source: https://github.com/tldr-pages/tldr.git # brightnessctl > Utility for reading and controlling device brightness for Linux operating systems. -> More information: . +> More information: . - List devices with changeable brightness: -`brightnessctl --list` +`brightnessctl {{[-l|--list]}}` - Print the current brightness of the display backlight: diff --git a/tldr/linux/bspc b/tldr/linux/bspc index 581886b1..4c54c37c 100644 --- a/tldr/linux/bspc +++ b/tldr/linux/bspc @@ -11,23 +11,23 @@ source: https://github.com/tldr-pages/tldr.git - Define two virtual desktops: -`bspc monitor --reset-desktops {{desktop_name1}} {{desktop_name2}}` +`bspc monitor {{[-d|--reset-desktops]}} {{desktop_name1}} {{desktop_name2}}` - Focus the given desktop: -`bspc desktop --focus {{number}}` +`bspc desktop {{[-f|--focus]}} {{number}}` - Close the windows rooted at the selected node: -`bspc node --close` +`bspc node {{[-c|--close]}}` - Send the selected node to the given desktop: -`bspc node --to-desktop {{number}}` +`bspc node {{[-d|--to-desktop]}} {{number}}` - Toggle full screen mode for the selected node: -`bspc node --state ~fullscreen` +`bspc node {{[-t|--state]}} ~fullscreen` - Set the value of a specific setting: diff --git a/tldr/linux/btrbk b/tldr/linux/btrbk index 495a69b2..ab8f478f 100644 --- a/tldr/linux/btrbk +++ b/tldr/linux/btrbk @@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git - Print what would happen in a run without making the displayed changes: -`sudo btrbk --verbose dryrun` +`sudo btrbk {{[-v|--verbose]}} dryrun` - Run backup routines verbosely, show progress bar: -`sudo btrbk --progress --verbose run` +`sudo btrbk --progress {{[-v|--verbose]}} run` - Only create snapshots for configured subvolumes: diff --git a/tldr/linux/btrfs-balance b/tldr/linux/btrfs-balance index 8b623539..92f16ccb 100644 --- a/tldr/linux/btrfs-balance +++ b/tldr/linux/btrfs-balance @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Balance data block groups which are less than 15% utilized, running the operation in the background: -`sudo btrfs balance start --bg -dusage={{15}} {{path/to/btrfs_filesystem}}` +`sudo btrfs balance start {{[--bg|--background]}} -dusage={{15}} {{path/to/btrfs_filesystem}}` - Balance a max of 10 metadata chunks with less than 20% utilization and at least 1 chunk on a given device `devid` (see `btrfs filesystem show`): diff --git a/tldr/linux/btrfs-subvolume b/tldr/linux/btrfs-subvolume index 75865d07..4c7c3680 100644 --- a/tldr/linux/btrfs-subvolume +++ b/tldr/linux/btrfs-subvolume @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `sudo btrfs subvolume delete {{path/to/subvolume}}` -- Create a read-only snapshot of an existing subvolume: +- Create a [r]ead-only snapshot of an existing subvolume: `sudo btrfs subvolume snapshot -r {{path/to/source_subvolume}} {{path/to/target}}` diff --git a/tldr/linux/btrfs-version b/tldr/linux/btrfs-version index 3da643ef..1ca6758d 100644 --- a/tldr/linux/btrfs-version +++ b/tldr/linux/btrfs-version @@ -12,6 +12,6 @@ source: https://github.com/tldr-pages/tldr.git `btrfs version --help` -- Display btrfs-progs version: +- Display version: `btrfs version` diff --git a/tldr/linux/bully b/tldr/linux/bully index c6c64d27..10fdd353 100644 --- a/tldr/linux/bully +++ b/tldr/linux/bully @@ -11,8 +11,8 @@ source: https://github.com/tldr-pages/tldr.git - Crack the password: -`bully --bssid "{{mac}}" --channel "{{channel}}" --bruteforce "{{interface}}"` +`bully {{[-b|--bssid]}} "{{mac}}" {{[-c|--channel]}} "{{channel}}" {{[-B|--bruteforce]}} "{{interface}}"` - Display help: -`bully --help` +`bully {{[-h|--help]}}` diff --git a/tldr/linux/byzanz-record b/tldr/linux/byzanz-record index c63ddace..4a3dd814 100644 --- a/tldr/linux/byzanz-record +++ b/tldr/linux/byzanz-record @@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git - Show information while and after recording: -`byzanz-record --verbose {{path/to/file.[byzanz|flv|gif|ogg|ogv|webm]}}` +`byzanz-record {{[-v|--verbose]}} {{path/to/file.[byzanz|flv|gif|ogg|ogv|webm]}}` - Record the screen for a minute: -`byzanz-record --duration 60 {{path/to/file.[byzanz|flv|gif|ogg|ogv|webm]}}` +`byzanz-record {{[-d|--duration]}} 60 {{path/to/file.[byzanz|flv|gif|ogg|ogv|webm]}}` - Delay recording for 10 seconds: diff --git a/tldr/linux/legit b/tldr/linux/legit index 5f77720d..0bd22f23 100644 --- a/tldr/linux/legit +++ b/tldr/linux/legit @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Switch to a specified branch, stashing and restoring unstaged changes: -`git switch {{target_branch}}` +`git sw {{target_branch}}` - Synchronize current branch, automatically merging or rebasing, and stashing and unstashing: @@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git - Remove the last commit from the history: -`git undo {{--hard}}` +`git undo --hard` diff --git a/tldr/linux/pihole b/tldr/linux/pihole index cf5c6f3a..18f36138 100644 --- a/tldr/linux/pihole +++ b/tldr/linux/pihole @@ -8,13 +8,13 @@ source: https://github.com/tldr-pages/tldr.git > Manage the Pi-hole ad-blocking DNS server. > More information: . -- Check the Pi-hole daemon's status: +- Check Pi-hole's status: `pihole status` - Update Pi-hole and Gravity: -`pihole {{[-up|updatePihole]}}` +`sudo pihole {{[-up|updatePihole]}}` - Start or stop the daemon: @@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git - Allow or deny the specified domain: -`pihole {{allowlist|denylist}} {{example.com}}` +`pihole {{allow|deny}} {{example.com}}` - Search the lists for a domain: diff --git a/tldr/linux/proctl b/tldr/linux/proctl index 01fa3341..bc581d9e 100644 --- a/tldr/linux/proctl +++ b/tldr/linux/proctl @@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git `proctl {{-R|-delete-license}} {{@license_name1 @license_name2 ...}}` -- Show this helpful list of commands: +- Display help: `proctl {{-h|-help}}` diff --git a/tldr/linux/pw-cat b/tldr/linux/pw-cat index d26be5d6..e15d421c 100644 --- a/tldr/linux/pw-cat +++ b/tldr/linux/pw-cat @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pw-cat > Play and record audio files through PipeWire. +> See also: `wpctl`, `pw-cli`. > More information: . - Play a WAV file over the default target: diff --git a/tldr/linux/pw-cli b/tldr/linux/pw-cli index ab99d19c..cb4a9a44 100644 --- a/tldr/linux/pw-cli +++ b/tldr/linux/pw-cli @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pw-cli > Manage a PipeWire instance's modules, objects, nodes, devices, links and much more. +> See also: `wpctl`. > More information: . - Print information of all object of a specific type: diff --git a/tldr/linux/setxkbmap b/tldr/linux/setxkbmap index 9848d655..4e247ec7 100644 --- a/tldr/linux/setxkbmap +++ b/tldr/linux/setxkbmap @@ -16,10 +16,6 @@ source: https://github.com/tldr-pages/tldr.git `setxkbmap -layout {{us,de}} -variant {{,qwerty}} -option {{'grp:alt_caps_toggle'}}` -- Get help: - -`setxkbmap -help` - - List all layouts: `localectl list-x11-keymap-layouts` @@ -31,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - List available switching options: `localectl list-x11-keymap-options | grep grp:` + +- Display help: + +`setxkbmap -help` diff --git a/tldr/linux/vgextend b/tldr/linux/vgextend new file mode 100644 index 00000000..4ca7dbd1 --- /dev/null +++ b/tldr/linux/vgextend @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# vgextend + +> Add one or more physical volumes to an existing volume group. +> More information: . + +- Add a physical volume to an existing volume group: + +`vgextend {{vg1}} {{/dev/sda1}}` + +- Add multiple physical volumes to an existing volume group: + +`vgextend {{vg1}} {{/dev/sda1 /dev/sda2 ...}}` diff --git a/tldr/linux/wpctl b/tldr/linux/wpctl index 10e7e66e..822b1a93 100644 --- a/tldr/linux/wpctl +++ b/tldr/linux/wpctl @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage WirePlumber, a session and policy manager for PipeWire. > Note: You can use the special name `@DEFAULT_SINK@` in place of `id` to operate on the default sink. +> See also: `pw-cli`. > More information: . - List all objects managed by WirePlumber: diff --git a/tldr/meson b/tldr/meson index c9dcd35d..d980df7b 100644 --- a/tldr/meson +++ b/tldr/meson @@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git `meson test` -- Show the help: +- Display help: `meson {{[-h|--help]}}` diff --git a/tldr/nano b/tldr/nano index fa40e6e0..03d3cf03 100644 --- a/tldr/nano +++ b/tldr/nano @@ -5,22 +5,18 @@ source: https://github.com/tldr-pages/tldr.git --- # nano -> Command-line text editor. An enhanced `Pico` clone. +> Command-line text editor. An enhanced `pico` clone. > See also: `pico`, `rnano`. -> More information: . +> More information: . -- Start the editor: +- Open specific files, moving to the next file after closing the previous one: -`nano` +`nano {{path/to/file1 path/to/file2 ...}}` - Start the editor without using configuration files: `nano {{[-I|--ignorercfiles]}}` -- Open specific files, moving to the next file when closing the previous one: - -`nano {{path/to/file1 path/to/file2 ...}}` - - Open a file and position the cursor at a specific line and column: `nano +{{line}},{{column}} {{path/to/file}}` @@ -37,6 +33,10 @@ source: https://github.com/tldr-pages/tldr.git `nano {{[-B|--backup]}} {{path/to/file}}` +- Open a file in restricted mode (i.e. don't read/write to files not specified on the command-line): + +`nano {{[-R|--restricted]}} {{path/to/file}}` + - Exit nano: `` diff --git a/tldr/nix-classic b/tldr/nix-classic index 163efbda..a01168e6 100644 --- a/tldr/nix-classic +++ b/tldr/nix-classic @@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git - Show all dependencies of a store path (package), in a tree format: -`nix-store {{[-q|--query]}} --tree {{/nix/store/...}}` +`nix-store {{[-q|--query]}} --tree /nix/store/{{checksum-package-version.ext}}` - Update the channels (repositories): diff --git a/tldr/nix-store.2 b/tldr/nix-store.2 index 9dda2886..38adcf49 100644 --- a/tldr/nix-store.2 +++ b/tldr/nix-store.2 @@ -19,16 +19,16 @@ source: https://github.com/tldr-pages/tldr.git - Delete a specific store path (must be unused): -`nix-store --delete {{/nix/store/...}}` +`nix-store --delete /nix/store/{{checksum-package-version.ext}}` - Show all dependencies of a store path (package), in a tree format: -`nix-store {{[-q|--query]}} --tree {{/nix/store/...}}` +`nix-store {{[-q|--query]}} --tree /nix/store/{{checksum-package-version.ext}}` - Calculate the total size of a certain store path with all the dependencies: -`du {{[-cLsh|--total --dereference --summarize --human-readable]}} $(nix-store {{[-q|--query]}} --references {{/nix/store/...}})` +`du {{[-cLsh|--total --dereference --summarize --human-readable]}} $(nix-store {{[-q|--query]}} --references /nix/store/{{checksum-package-version.ext}})` - Show all dependents of a particular store path: -`nix-store {{[-q|--query]}} --referrers {{/nix/store/...}}` +`nix-store {{[-q|--query]}} --referrers /nix/store/{{checksum-package-version.ext}}` diff --git a/tldr/nix-store.3 b/tldr/nix-store.3 index ceacb3db..ca9e033f 100644 --- a/tldr/nix-store.3 +++ b/tldr/nix-store.3 @@ -19,12 +19,12 @@ source: https://github.com/tldr-pages/tldr.git - Delete a specific store path (most be unused): -`nix store delete {{/nix/store/...}}` +`nix store delete /nix/store/{{checksum-package-version.ext}}` - List a contents of the store path, on a remote store: -`nix store --store {{https://cache.nixos.org}} ls {{/nix/store/...}}` +`nix store --store {{https://cache.nixos.org}} ls /nix/store/{{checksum-package-version.ext}}` - Show the differences in versions between two store paths, with their respective dependencies: -`nix store diff-closures {{/nix/store/...}} {{/nix/store/...}}` +`nix store diff-closures /nix/store/{{checksum-package-version.ext}} /nix/store/{{checksum-package-version.ext}}` diff --git a/tldr/nix-why-depends b/tldr/nix-why-depends index 70555684..2e5787d3 100644 --- a/tldr/nix-why-depends +++ b/tldr/nix-why-depends @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Show why the currently running NixOS system requires a certain store path: -`nix why-depends {{/run/current-system}} {{/nix/store/...}}` +`nix why-depends {{/run/current-system}} /nix/store/{{checksum-package-version.ext}}` - Show why a package from nixpkgs requires another package as a _build-time_ dependency: diff --git a/tldr/pixi b/tldr/pixi index f1642e59..15f7d38c 100644 --- a/tldr/pixi +++ b/tldr/pixi @@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git `pixi task {{command}}` -- Print the help message: +- Display help: `pixi {{command}} --help` diff --git a/tldr/poetry b/tldr/poetry index d97979b1..2df6a6d9 100644 --- a/tldr/poetry +++ b/tldr/poetry @@ -37,6 +37,6 @@ source: https://github.com/tldr-pages/tldr.git `poetry version {{patch|minor|major|prepatch|preminor|premajor|prerelease}}` -- Spawn a shell within the project's virtual environment: +- Spawn a shell within the project's virtual environment (for versions below 2.0, use `poetry shell`): -`poetry shell` +`eval "$(poetry env activate)"` diff --git a/tldr/rnano b/tldr/rnano index ed85020d..c4d62a0e 100644 --- a/tldr/rnano +++ b/tldr/rnano @@ -5,19 +5,9 @@ source: https://github.com/tldr-pages/tldr.git --- # rnano -> A restricted version of `nano`. -> Command-line text editor with restricted drive access. -> See also: `nano`. +> This command is an alias of `nano --restricted`. > More information: . -- Start the editor: +- View documentation for the original command: -`rnano` - -- Open a specific file: - -`rnano {{path/to/file}}` - -- Display help: - -`rnano {{[-h|--help]}}` +`tldr nano` diff --git a/tldr/ts-node b/tldr/ts-node index 2fc1d9d6..da978b7d 100644 --- a/tldr/ts-node +++ b/tldr/ts-node @@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git `ts-node --transpile-only {{path/to/file.ts}}` -- Display TS-Node help: +- Display help: `ts-node --help` diff --git a/tldr/upx b/tldr/upx index dc61dd08..a1ccd4a0 100644 --- a/tldr/upx +++ b/tldr/upx @@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git `upx -d {{path/to/file}}` -- Detailed help: +- Display help: `upx --help`