mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 03:47:38 +00:00
Update cheatsheets
This commit is contained in:
4
tldr/^
4
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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -8,10 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Manage GitLab CLI command aliases.
|
||||
> More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/alias/index.md>.
|
||||
|
||||
- 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`
|
||||
|
||||
21
tldr/gst-device-monitor-1.0
Normal file
21
tldr/gst-device-monitor-1.0
Normal file
@@ -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: <https://manned.org/gst-device-monitor-1.0>.
|
||||
|
||||
- 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}}`
|
||||
@@ -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: <https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html>.
|
||||
|
||||
- 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 `<Ctrl c>` 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}}`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
@@ -6,11 +6,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# autorandr
|
||||
|
||||
> Automatically change screen layout.
|
||||
> More information: <https://github.com/phillipberndt/autorandr>.
|
||||
> More information: <https://manned.org/autorandr>.
|
||||
|
||||
- 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}}`
|
||||
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`balooctl --help`
|
||||
`balooctl {{[-h|--help]}}`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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: <http://he.fi/bchunk>.
|
||||
> More information: <https://manned.org/bchunk>.
|
||||
|
||||
- Convert binary CD into a standard iso9960 image file:
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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 ...}}`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
@@ -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:...}}`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
@@ -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: <https://github.com/Hummer12007/brightnessctl>.
|
||||
> More information: <https://github.com/Hummer12007/brightnessctl#usage>.
|
||||
|
||||
- List devices with changeable brightness:
|
||||
|
||||
`brightnessctl --list`
|
||||
`brightnessctl {{[-l|--list]}}`
|
||||
|
||||
- Print the current brightness of the display backlight:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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`):
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
|
||||
@@ -12,6 +12,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`btrfs version --help`
|
||||
|
||||
- Display btrfs-progs version:
|
||||
- Display version:
|
||||
|
||||
`btrfs version`
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -8,13 +8,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Manage the Pi-hole ad-blocking DNS server.
|
||||
> More information: <https://docs.pi-hole.net/main/pihole-command>.
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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: <https://docs.pipewire.org/page_man_pw-cat_1.html>.
|
||||
|
||||
- Play a WAV file over the default target:
|
||||
|
||||
@@ -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: <https://docs.pipewire.org/page_man_pw-cli_1.html>.
|
||||
|
||||
- Print information of all object of a specific type:
|
||||
|
||||
@@ -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`
|
||||
|
||||
17
tldr/linux/vgextend
Normal file
17
tldr/linux/vgextend
Normal file
@@ -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: <https://manned.org/vgextend>.
|
||||
|
||||
- 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 ...}}`
|
||||
@@ -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: <https://pipewire.pages.freedesktop.org/wireplumber/>.
|
||||
|
||||
- List all objects managed by WirePlumber:
|
||||
|
||||
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`meson test`
|
||||
|
||||
- Show the help:
|
||||
- Display help:
|
||||
|
||||
`meson {{[-h|--help]}}`
|
||||
|
||||
|
||||
16
tldr/nano
16
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: <https://nano-editor.org>.
|
||||
> More information: <https://nano-editor.org/dist/latest/nano.html>.
|
||||
|
||||
- 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:
|
||||
|
||||
`<Ctrl x>`
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pixi task {{command}}`
|
||||
|
||||
- Print the help message:
|
||||
- Display help:
|
||||
|
||||
`pixi {{command}} --help`
|
||||
|
||||
|
||||
@@ -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)"`
|
||||
|
||||
16
tldr/rnano
16
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: <https://manned.org/rnano>.
|
||||
|
||||
- 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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user