diff --git a/tldr/cancel b/tldr/cancel index d8ba9a82..2b5230c3 100644 --- a/tldr/cancel +++ b/tldr/cancel @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > See also: `lp`, `lpmove`, `lpstat`. > More information: . -- Cancel the current job of the default printer (set with `lpoptions -d {{printer}}`): +- Cancel the current job of the default printer (set with `lpoptions -d printer_name`): `cancel` diff --git a/tldr/hexyl b/tldr/hexyl index dbfa8ad2..08199159 100644 --- a/tldr/hexyl +++ b/tldr/hexyl @@ -16,11 +16,3 @@ source: https://github.com/tldr-pages/tldr.git - Print the hexadecimal representation of the first n bytes of a file: `hexyl {{[-n|--length]}} {{n}} {{path/to/file}}` - -- Print bytes 512 through 1024 of a file: - -`hexyl -r {{512}}:{{1024}} {{path/to/file}}` - -- Print 512 bytes starting at the 1024th byte: - -`hexyl -r {{1024}}:+{{512}} {{path/to/file}}` diff --git a/tldr/linux/flatpak-remote-info b/tldr/linux/flatpak-remote-info index 6e3fb1c7..7386840c 100644 --- a/tldr/linux/flatpak-remote-info +++ b/tldr/linux/flatpak-remote-info @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Show information about the specific commit, rather than the latest version: -`flatpak remote-info --commit={{COMMIT}} {{remote_name}} {{com.example.app}}` +`flatpak remote-info --commit {{COMMIT}} {{remote_name}} {{com.example.app}}` diff --git a/tldr/linux/flatpak-update b/tldr/linux/flatpak-update index 559be916..4458c731 100644 --- a/tldr/linux/flatpak-update +++ b/tldr/linux/flatpak-update @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Update/Downgrade to a specific commit (also see flatpak remote-info and flatpak mask): -`flatpak update --commit={{COMMIT}} {{com.example.app}}` +`flatpak update --commit {{COMMIT}} {{com.example.app}}` diff --git a/tldr/linux/hyprshot b/tldr/linux/hyprshot new file mode 100644 index 00000000..a1a0eda5 --- /dev/null +++ b/tldr/linux/hyprshot @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# hyprshot + +> Screenshot utility for the Hyprland Wayland compositor. +> More information: . + +- Select and take a screenshot of a region: + +`hyprshot {{[-m|--mode]}} region` + +- Select and take a screenshot of a specific window: + +`hyprshot {{[-m|--mode]}} window` + +- Select and take a screenshot of a specific output: + +`hyprshot {{[-m|--mode]}} output` + +- Take a screenshot of the currently active window: + +`hyprshot {{[-m|--mode]}} active {{[-m|--mode]}} window` + +- Freeze the screen and take a screenshot of the selected region: + +`hyprshot {{[-z|--freeze]}} {{[-m|--mode]}} region` + +- Select and take a screenshot of a specific window, saving to the given output directory: + +`hyprshot {{[-o|--output-folder]}} {{path/to/directory}} {{[-m|--mode]}} window` + +- Select and take a screenshot of a specific output, saving the screenshot to the clipboard only: + +`hyprshot --clipboard {{[-m|--mode]}} output` diff --git a/tldr/linux/kde-builder b/tldr/linux/kde-builder index ecaf82d2..b4bcd842 100644 --- a/tldr/linux/kde-builder +++ b/tldr/linux/kde-builder @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Compile a component without updating its local code and without compiling its dependencies: -`kde-builder {{[-S|--no-src]}} {{[-D|--no-include-dependencies]}} {{component_name}}` +`kde-builder {{[-SD|--no-src --no-include-dependencies]}} {{component_name}}` - Refresh the build directories before compiling: diff --git a/tldr/linux/lvm_import_vdo b/tldr/linux/lvm_import_vdo new file mode 100644 index 00000000..c50784f0 --- /dev/null +++ b/tldr/linux/lvm_import_vdo @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lvm_import_vdo + +> Import a VDO volume created by the VDO manager into an LVM-managed logical volume (irreversible). +> More information: . + +- Import a VDO volume with automatic names for the VG/LV: + +`lvm_import_vdo {{/dev/mapper/vdo_volume}}` + +- Import and set the destination VG/LV name: + +`lvm_import_vdo {{[-n|--name]}} {{vg_name/lv_name}} {{/dev/mapper/vdo_volume}}` + +- Show what would be done without changing anything: + +`lvm_import_vdo --dry-run {{/dev/mapper/vdo_volume}}` + +- Convert in place without using a temporary snapshot (less safe): + +`lvm_import_vdo --no-snapshot {{/dev/mapper/vdo_volume}}` + +- Verbose output and automatically answer "yes" to prompts: + +`lvm_import_vdo {{[-v|--verbose]}} {{[-y|--yes]}} {{/dev/mapper/vdo_volume}}` + +- Use a VDO manager configuration file during import: + +`lvm_import_vdo --vdo-config {{path/to/vdo.conf}} {{/dev/mapper/vdo_volume}}` diff --git a/tldr/linux/lvmconfig b/tldr/linux/lvmconfig new file mode 100644 index 00000000..3845d8e1 --- /dev/null +++ b/tldr/linux/lvmconfig @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lvmconfig + +> Display and manipulate LVM configuration information. +> More information: . + +- Display the effective configuration in use (after merging all config sources): + +`lvmconfig --typeconfig current --mergedconfig` + +- Show only settings that differ from their defaults: + +`lvmconfig --typeconfig diff` + +- List all configuration keys: + +`lvmconfig {{[-l|--list]}}` + +- Print the default configuration with full comments and extra spacing: + +`lvmconfig --typeconfig default --withcomments --withspaces` + +- Validate the full merged configuration and report errors: + +`lvmconfig --mergedconfig --validate` + +- Write the current effective configuration to a file: + +`lvmconfig --typeconfig current {{[-f|--file]}} {{path/to/output.conf}}` diff --git a/tldr/linux/lvmdevices b/tldr/linux/lvmdevices new file mode 100644 index 00000000..88a4df88 --- /dev/null +++ b/tldr/linux/lvmdevices @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lvmdevices + +> Manage the LVM devices file that lists block devices allowed for physical volumes. +> More information: . + +- List devices recorded in the devices file: + +`lvmdevices` + +- Add a device to the devices file: + +`lvmdevices --adddev {{/dev/sdXN}}` + +- Remove a device from the devices file: + +`lvmdevices --deldev {{/dev/sdXN}}` + +- Add a physical volume by its PVID: + +`lvmdevices --addpvid {{PVID}}` + +- Remove a physical volume by its PVID: + +`lvmdevices --delpvid {{PVID}}` + +- Update the devices file after device names change: + +`lvmdevices --update` + +- Check the devices file for problems: + +`lvmdevices --check` + +- Display version: + +`lvmdevices --version` diff --git a/tldr/linux/lvmdiskscan b/tldr/linux/lvmdiskscan new file mode 100644 index 00000000..dc548204 --- /dev/null +++ b/tldr/linux/lvmdiskscan @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lvmdiskscan + +> Scan for devices that may be used as physical volumes by LVM (deprecated; prefer `pvs`). +> More information: . + +- Scan all devices: + +`lvmdiskscan` + +- Show only physical volumes (PVs): + +`lvmdiskscan {{[-l|--lvmpartition]}}` + +- Increase verbosity (repeat for more detail): + +`lvmdiskscan {{[-v|--verbose]}}` diff --git a/tldr/linux/lvmdump b/tldr/linux/lvmdump new file mode 100644 index 00000000..49acb9bd --- /dev/null +++ b/tldr/linux/lvmdump @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lvmdump + +> Collect diagnostic information about LVM2 (Logical Volume Manager). +> By default, outputs a compressed tar archive with system and configuration data in the home directory. +> More information: . + +- Generate a basic dump: + +`lvmdump` + +- Generate an extended dump with metadata and daemon info: + +`lvmdump -a -l -m` + +- Dump the information into a directory instead of a tarball: + +`lvmdump -d {{path/to/directory}}` + +- Display help: + +`lvmdump -h` diff --git a/tldr/linux/pvesh b/tldr/linux/pvesh index 2f855732..133068c1 100644 --- a/tldr/linux/pvesh +++ b/tldr/linux/pvesh @@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Discover API paths: `pvesh {{[l|ls]}} {{/}}` + +- Display API path usage instructions: + +`pvesh {{[u|usage]}} {{/pools}}` diff --git a/tldr/mamba b/tldr/mamba index 229c966b..507b0621 100644 --- a/tldr/mamba +++ b/tldr/mamba @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Update all packages in the current environment: -`mamba update --all` +`mamba update {{[-a|--all]}}` - Search for a specific package across repositories: @@ -27,11 +27,11 @@ source: https://github.com/tldr-pages/tldr.git - List all environments: -`mamba info --envs` +`mamba info {{[-e|--envs]}}` -- Remove unused [p]ackages and [t]arballs from the cache: +- Remove unused packages and tarballs from the cache: -`mamba clean -pt` +`mamba clean {{[-pt|--packages --tarballs]}}` - Activate an environment: diff --git a/tldr/mamba-repoquery b/tldr/mamba-repoquery index 88350ced..d629c24d 100644 --- a/tldr/mamba-repoquery +++ b/tldr/mamba-repoquery @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - List the dependencies of a package installed in the currently activated environment, in a tree format: -`mamba repoquery depends --tree {{scipy}}` +`mamba repoquery depends {{[-t|--tree]}} {{scipy}}` - Print packages in the current environment that require a particular package to be installed (i.e. inverse of `depends`): diff --git a/tldr/mlr b/tldr/mlr index fd68b605..735af2ae 100644 --- a/tldr/mlr +++ b/tldr/mlr @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mlr > Miller is like `awk`, `sed`, `cut`, `join`, and `sort` for name-indexed data such as CSV, TSV, and tabular JSON. -> More information: . +> More information: . - Pretty-print a CSV file in a tabular format: diff --git a/tldr/piper b/tldr/piper index 84162182..21cb5842 100644 --- a/tldr/piper +++ b/tldr/piper @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A fast, local neural text to speech system. > Try out and download speech models from . -> More information: . +> More information: . - Output a WAV [f]ile using a text-to-speech [m]odel (assuming a configuration file at model_path + .json): diff --git a/tldr/windows/runas b/tldr/windows/runas new file mode 100644 index 00000000..17c57ab5 --- /dev/null +++ b/tldr/windows/runas @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# runas + +> Run a program as another user. +> More information: . + +- Run a program as the Administrator local user: + +`runas /user:.\Administrator "{{command}}"` + +- Run a program as a specific user: + +`runas /user:{{domain\username}} "{{command}}"` + +- Run a program without loading the user's profile: + +`runas /noprofile /user:{{domain\username}} "{{command}}"` + +- Open Command Prompt as another user: + +`runas /user:{{domain\username}} cmd` + +- Run Notepad as a specific user with the current user's environment variables, opening a file with escaped quotes: + +`runas /env /user:{{domain\username}} "notepad \"{{C:\path o ile.txt}}\""` + +- Run Active Directory Users and Computers as a specific user: + +`runas /env /user:{{domain\username}} "mmc %windir%\system32\dsa.msc"` diff --git a/tldr/xteddy b/tldr/xteddy index 2757b7c9..57ec9d7a 100644 --- a/tldr/xteddy +++ b/tldr/xteddy @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `xteddy` -- Use the window manager to display the teddy bear and ignore the "quit" (`q`) command: +- Use the window manager to display the teddy bear and ignore the "quit" (``) command: `xteddy -wm -noquit`