Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-29 00:20:05 +00:00
parent 5c637b8c84
commit d1988a6d2c
87 changed files with 623 additions and 154 deletions

37
tldr/bun-update Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun update
> Update dependencies in a Bun project.
> More information: <https://bun.com/docs/pm/cli/update>.
- Update all dependencies:
`bun update`
- Update to the latest version, regardless of its compatibility:
`bun update --latest`
- Update a specific dependency:
`bun update {{package_name}}`
- Update a dependency to a specific version:
`bun update {{package_name}}@{{version}}`
- Update packages interactively:
`bun update {{[-i|--interactive]}}`
- Update dependencies recursively across all workspaces:
`bun update {{[-r|--recursive]}}`
- Update dependencies interactively and recursively:
`bun update {{[-i|--interactive]}} {{[-r|--recursive]}}`

37
tldr/copilot Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# copilot
> Interact with GitHub Copilot.
> More information: <https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli>.
- Start interactive mode:
`copilot`
- Allow all file editing:
`copilot --allow-tool write`
- Resume the most recent session:
`copilot --continue`
- Resume a previous session using session picker:
`copilot --resume`
- Use a specific model:
`copilot --model "{{gpt-5}}"`
- Allow all Git commands except `git push`:
`copilot --allow-tool 'shell(git:*)' --deny-tool 'shell(git push)'`
- Execute a prompt directly without interactive mode, while allowing `copilot` to run any command:
`copilot {{[-p|--prompt]}} "{{Fix the bug in main.js}}" --allow-all-tools`

View File

@@ -5,21 +5,34 @@ source: https://github.com/tldr-pages/tldr.git
---
# espeak
> Use text-to-speech to speak through the default sound device.
> A multi-lingual software speech synthesizer.
> Note: `espeak` is considered discontinued, as development has shifted to `espeak-ng`.
> More information: <https://manned.org/espeak>.
- Speak a phrase aloud:
`espeak "I like to ride my bike."`
`espeak "{{text}}"`
- Speak a file aloud:
- Speak text from `stdin`:
`echo "{{text}}" | espeak`
- Speak the contents of a [f]ile:
`espeak -f {{path/to/file}}`
- Save output to a WAV audio file, rather than speaking it directly:
- Speak using a specific [v]oice:
`espeak -w {{filename.wav}} "It's GNU plus Linux"`
`espeak -v {{voice}} "{{text}}"`
- Use a different voice:
- Speak at a specific [s]peed (default is 160) and [p]itch (default is 50):
`espeak -v {{voice}}`
`espeak -s {{speed}} -p {{pitch}} "{{text}}"`
- Output the audio to a [w]AV file instead of speaking it directly:
`espeak -w {{path/to/output.wav}} "{{text}}"`
- List all available voices:
`espeak --voices`

38
tldr/espeak-ng Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# espeak-ng
> A multi-lingual software speech synthesizer.
> See also: `speak-ng`, `espeak`.
> More information: <https://github.com/espeak-ng/espeak-ng/blob/master/src/espeak-ng.1.ronn>.
- Speak a phrase aloud:
`espeak-ng "{{text}}"`
- Speak text from `stdin`:
`echo "{{text}}" | espeak-ng`
- Speak the contents of a [f]ile:
`espeak-ng -f {{path/to/file}}`
- Speak using a specific [v]oice:
`espeak-ng -v {{voice}} "{{text}}"`
- Speak at a specific [s]peed (default is 175) and [p]itch (default is 50):
`espeak-ng -s {{speed}} -p {{pitch}} "{{text}}"`
- Output the audio to a [w]AV file instead of speaking it directly:
`espeak-ng -w {{path/to/output.wav}} "{{text}}"`
- List all available voices:
`espeak-ng --voices`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gh copilot
> Interact with GitHub Copilot.
> Note: Deprecated in favor of `copilot`.
> More information: <https://github.com/github/gh-copilot#usage>.
- Suggest a command, given a description:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hyperfine
> A benchmarking tool.
> More information: <https://github.com/sharkdp/hyperfine/>.
> More information: <https://manned.org/hyperfine>.
- Run a basic benchmark, performing at least 10 runs:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# jenv
> Manage the "JAVA_HOME" environment variable.
> More information: <https://github.com/jenv/jenv/>.
> More information: <https://github.com/jenv/jenv>.
- Add a Java version to jEnv:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kops
> Create, destroy, upgrade and maintain Kubernetes clusters.
> More information: <https://github.com/kubernetes/kops/>.
> More information: <https://kops.sigs.k8s.io/cli/kops/>.
- Create a cluster from the configuration specification:

42
tldr/kubectl-drain Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl drain
> Drain a node in preparation for maintenance by marking it unschedulable and evicting all pods.
> See also: `kubectl cordon`, `kubectl uncordon`.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_drain>.
- Drain a node:
`kubectl drain {{node_name}}`
- Drain a node, ignoring DaemonSet-managed pods:
`kubectl drain {{node_name}} --ignore-daemonsets`
- Drain a node and delete pods using emptyDir volumes (local data will be lost):
`kubectl drain {{node_name}} --ignore-daemonsets --delete-emptydir-data`
- Drain a node, forcing eviction of pods not managed by a controller:
`kubectl drain {{node_name}} --force`
- Drain a node with a custom grace period for pod termination:
`kubectl drain {{node_name}} --grace-period {{seconds}}`
- Drain a node, evicting only pods that match a label selector:
`kubectl drain {{node_name}} --pod-selector {{label_key}}={{label_value}}`
- Drain a node with a timeout:
`kubectl drain {{node_name}} --timeout {{duration}}`
- Preview the drain operation without actually evicting pods (dry run):
`kubectl drain {{node_name}} --dry-run={{none|server|client}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# asciiart
> Convert images to ASCII.
> More information: <https://github.com/nodanaonlyzuul/asciiart>.
> More information: <https://github.com/nodanaonlyzuul/asciiart#in-the-command-line>.
- Read an image from a file and print in ASCII:

View File

@@ -8,34 +8,30 @@ source: https://github.com/tldr-pages/tldr.git
> The Aura Package Manager: a secure, multilingual package manager for Arch Linux and the AUR.
> More information: <https://github.com/fosskers/aura>.
- Search for packages from the official repositories and AUR:
- Search for packages from the AUR:
`aura --aursync --both --search {{keyword|regex}}`
`aura {{[-As|--aursync --search]}} {{keyword|regex}}`
- Install a package from the AUR:
`aura --aursync {{package}}`
`aura {{[-A|--aursync]}} {{package}}`
- Update all AUR packages in a verbose mode and remove all make dependencies:
`aura --aursync --diff --sysupgrade --delmakedeps --unsuppress`
`aura {{[-Akua|--aursync --diff --sysupgrade --delmakedeps]}}`
- Install a package from the official repositories:
`aura --sync {{package}}`
`aura {{[-S|--sync]}} {{package}}`
- Synchronize and update all packages from the official repositories:
`aura --sync --refresh --sysupgrade`
- Downgrade a package using the package cache:
`aura --downgrade {{package}}`
`aura {{[-Syu|--sync --refresh --sysupgrade]}}`
- Remove a package and its dependencies:
`aura --remove --recursive --unneeded {{package}}`
`aura {{[-Rsu|--remove --recursive --unneeded]}} {{package}}`
- Remove orphan packages (installed as dependencies but not required by any package):
`aura --orphans --abandon`
`aura {{[-Oj|--orphans --abandon]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# auracle
> Interact with Arch Linux's User Repository, commonly referred to as the AUR.
> More information: <https://github.com/falconindy/auracle>.
> More information: <https://github.com/falconindy/auracle/blob/master/man/auracle.1.pod>.
- Display AUR packages that match a `regex`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> An Arch Linux utility to build and install packages from the Arch User Repository.
> See also: `pacman`.
> More information: <https://github.com/polygamma/aurman>.
> More information: <https://github.com/polygamma/aurman#syntax>.
- Synchronize and update all packages:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Vote for packages in the Arch User Repository.
> To be able to vote, the file `~/.config/aurvote` must exist and contain your AUR credentials.
> More information: <https://github.com/archlinuxfr/aurvote>.
> More information: <https://github.com/archlinuxfr/aurvote#name>.
- Interactively create the file `~/.config/aurvote` containing your AUR username and password:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# blight
> Utility for changing the display brightness.
> More information: <https://github.com/gutjuri/blight>.
> More information: <https://github.com/gutjuri/blight#usage>.
- Set display brightness to 50%:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Navigate directory trees interactively.
> See also: `broot`.
> More information: <https://github.com/Canop/broot>.
> More information: <https://manned.org/broot>.
- Start and navigate the current directory tree interactively:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Configure and control `bspwm`, managing nodes, desktops, monitors, and more.
> See also: `bspwm`.
> More information: <https://github.com/baskerville/bspwm>.
> More information: <https://github.com/baskerville/bspwm/blob/master/doc/bspwm.1.asciidoc>.
- Define two virtual desktops:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A tiling window manager based on binary space partitioning.
> See also: `bspc` for controlling it.
> More information: <https://github.com/baskerville/bspwm>.
> More information: <https://github.com/baskerville/bspwm/blob/master/doc/bspwm.1.asciidoc>.
- Start `bspwm` (note that a pre-existing window manager must not be open when this command is run):

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage clipboard history for Wayland compositors.
> Works with `wl-copy` and `wl-paste`.
> More information: <https://github.com/sentriz/cliphist>.
> More information: <https://github.com/sentriz/cliphist#usage>.
- List clipboard history entries:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Convert Debian packages into Arch Linux packages.
> See also: `pacman-upgrade`.
> More information: <https://github.com/helixarch/debtap>.
> More information: <https://github.com/helixarch/debtap#available-options>.
- Update debtap database (before the first run):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dex
> DesktopEntry Execution is a program to generate and execute DesktopEntry files of the Application type.
> More information: <https://github.com/jceb/dex>.
> More information: <https://github.com/jceb/dex#dex>.
- Execute all programs in the autostart folders:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dnsrecon
> DNS enumeration tool.
> More information: <https://github.com/darkoperator/dnsrecon>.
> More information: <https://manned.org/dnsrecon>.
- Scan a domain and save the results to an SQLite database:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A data extraction tool for alpm databases, offering printf-like flexibility for pacman-based utilities.
> See also: `pacman`.
> More information: <https://github.com/falconindy/expac>.
> More information: <https://github.com/falconindy/expac#name>.
- List the dependencies of a package:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# farge
> Display the color of a specific pixel on the screen in either hexadecimal or RGB formats.
> More information: <https://github.com/sdushantha/farge>.
> More information: <https://github.com/sdushantha/farge#usage>.
- Display a small preview window of a pixel's color with it's hexadecimal value, and copy this value to the clipboard:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A GUI desktop RSS client.
> Note: FeedReader is no longer being maintained.
> More information: <https://github.com/jangernert/FeedReader>.
> More information: <https://manned.org/feedreader>.
- Print the count of unread articles:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kjv
> The word of God available right on your desktop.
> More information: <https://github.com/bontibon/kjv>.
> More information: <https://github.com/layeh/kjv#kjv>.
- Display books:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# larasail
> Manage Laravel on Digital Ocean servers.
> More information: <https://github.com/thedevdojo/larasail>.
> More information: <https://github.com/thedevdojo/larasail#setup-your-server>.
- Set up the server with Laravel dependencies using the default PHP version:

View File

@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
- Display help:
`lci -h`
`lci {{[-h|--help]}}`
- Display version:
`lci -v`
`lci {{[-v|--version]}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Make a fast tree from genomes.
> Does not make a phylogeny.
> More information: <https://github.com/lskatz/mashtree>.
> More information: <https://github.com/lskatz/mashtree#usage>.
- Fastest method in mashtree to create a tree from fastq and/or fasta files using multiple threads, piping into a newick file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mbw
> Memory Bandwidth Benchmark.
> More information: <https://github.com/raas/mbw>.
> More information: <https://manned.org/mbw>.
- Run 3 memory bandwidth tests with 512MB size:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Configure Secure Boot Machine Owner Keys (MOK).
> Some operations, such as enabling and disabling Secure Boot or enrolling keys require a reboot.
> More information: <https://github.com/lcp/mokutil>.
> More information: <https://manned.org/mokutil>.
- Show if Secure Boot is enabled:
@@ -23,15 +23,15 @@ source: https://github.com/tldr-pages/tldr.git
- List enrolled keys:
`mokutil --list-enrolled`
`mokutil {{[-l|--list-enrolled]}}`
- Enroll a new key:
`mokutil --import {{path/to/key.der}}`
`mokutil {{[-i|--import]}} {{path/to/key.der}}`
- List the keys to be enrolled:
`mokutil --list-new`
`mokutil {{[-N|--list-new]}}`
- Set shim verbosity:

View File

@@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git
# mons
> Quickly manage two displays.
> More information: <https://github.com/Ventto/mons>.
> More information: <https://github.com/Ventto/mons#usage>.
- Enable only the primary monitor:
`mons -o`
- Enable only the secondary monitor:
- Enable only the [s]econdary monitor:
`mons -s`
- Duplicate the primary monitor onto the secondary monitor, using the resolution of the primary monitor:
- [d]uplicate the primary monitor onto the secondary monitor, using the resolution of the primary monitor:
`mons -d`
- Mirror the primary monitor onto the secondary monitor, using the resolution of the secondary monitor:
- [m]irror the primary monitor onto the secondary monitor, using the resolution of the secondary monitor:
`mons -m`

View File

@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Autoselect and execute the snippet that best matches a query:
`navi --query '{{query}}' --best-match`
`navi {{[-q|--query]}} '{{query}}' --best-match`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pacaur
> A utility for Arch Linux to build and install packages from the Arch User Repository.
> More information: <https://github.com/rmarquis/pacaur>.
> More information: <https://github.com/rmarquis/pacaur#name>.
- Synchronize and update all packages (includes AUR):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pacgraph
> Draw a graph of installed packages to PNG/SVG/GUI/console.
> More information: <https://github.com/keenerd/pacgraph>.
> More information: <https://manned.org/pacgraph>.
- Produce an SVG and PNG graph:
@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
- Produce an SVG graph:
`pacgraph --svg`
`pacgraph {{[-s|--svg]}}`
- Print summary to console:
`pacgraph --console`
`pacgraph {{[-c|--console]}}`
- Override the default filename/location (Note: Do not specify the file extension):
`pacgraph --file={{path/to/file}}`
`pacgraph {{[-f|--file]}} {{path/to/file}}`
- Change the color of packages that are not dependencies:
`pacgraph --top={{color}}`
`pacgraph {{[-t|--top]}} {{color}}`
- Change the color of package dependencies:
`pacgraph --dep={{color}}`
`pacgraph {{[-d|--dep]}} {{color}}`
- Change the background color of a graph:
`pacgraph --background={{color}}`
`pacgraph {{[-b|--background]}} {{color}}`
- Change the color of links between packages:
`pacgraph --link={{color}}`
`pacgraph {{[-l|--link]}} {{color}}`

29
tldr/linux/pacreport Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pacreport
> Generate a report of installed packages.
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/pacreport.pod>.
- Generate a summary of installed packages:
`pacreport`
- List unowned files:
`pacreport --unowned-files`
- List missing package files:
`pacreport --missing-files`
- Search for unmerged backup files (i.e. `.pacnew`, `.pacsave`) in `/etc`:
`pacreport --backups`
- Display packages in a specific group that are not currently installed:
`pacreport --group {{group_name}}`

View File

@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
- Search the package database for a package name:
`pacstall --search {{query}}`
`pacstall {{[-S|--search]}} {{query}}`
- Install a package:
`pacstall --install {{package}}`
`pacstall {{[-I|--install]}} {{package}}`
- Remove a package:
`pacstall --remove {{package}}`
`pacstall {{[-R|--remove]}} {{package}}`
- Add a repository to the database (only GitHub and GitLab are supported):
`pacstall --add-repo {{remote_repository_location}}`
`pacstall {{[-A|--add-repo]}} {{remote_repository_location}}`
- Update pacstall's scripts:
`pacstall --update`
`pacstall {{[-U|--update]}}`
- Update all packages:
`pacstall --upgrade`
`pacstall {{[-Up|--upgrade]}}`
- Display information about a package:
`pacstall --cache-info {{package}}`
`pacstall {{[-Ci|--cache-info]}} {{package}}`
- List all installed packages:
`pacstall --list`
`pacstall {{[-L|--list]}}`

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Clone a container:
`pct clone {{template_id}} {{copy_id}}`
`pct {{[cl|clone]}} {{template_id}} {{copy_id}}`
- Clone a container with a custom name:

13
tldr/linux/pct-mount Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pct mount
> Mount a container's filesystem on the host.
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html#cli_pct_mount>.
- Mount the filesystem of a specific container:
`pct mount {{100}}`

13
tldr/linux/pct-unmount Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pct unmount
> Unmount a container's filesystem from the host.
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html#cli_pct_unmount>.
- Unmount the filesystem of a specific container:
`pct unmount {{100}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# physlock
> Lock all consoles and virtual terminals.
> More information: <https://github.com/muennich/physlock>.
> More information: <https://github.com/xyb3rt/physlock#usage>.
- Lock every console (require current user or root to unlock):

View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# Project Zomboid
> Start a headless Project Zomboid server.
> More information: <https://pzwiki.net/wiki/Dedicated_server>.
- Start the server:
`{{path/to/start-server.sh}}`
- Start a server with a specific name:
`{{path/to/start-server.sh}} -servername {{server_name}}`

View File

@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Display API path usage instructions:
`pvesh {{[u|usage]}} {{/pools}}`
- Add a new thinpool to Proxmox:
`pvesh create /storage --storage {{storage_id}} --vgname {{volume_group}} --type lvmthin --thinpool {{thinpool_name}} --content {{content_type1,content_type2,...}}`

View File

@@ -16,6 +16,18 @@ source: https://github.com/tldr-pages/tldr.git
`pveum {{[u|user]}} {{[a|add]}} {{username}}@pve`
- Add a user with an email, description, and password:
`pveum {{[u|user]}} {{[a|add]}} {{username}}@pve --email {{email_address}} --comment {{description}} --password {{password}}`
- Change user password:
`pveum {{[pa|passwd]}} {{[username}}@pve`
- Delete a user:
`pveum {{[u|user]}} {{[d|delete]}} {{username}}@pve`
- Give a user access to a specific VM with specific permissions:
`pveum {{[a|acl]}} {{[m|modify]}} /vms/{{1000}} --user {{username}}@pve --role {{PVEVMUser}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Show utilization of AMD GPUs.
> May require root privileges depending on your system.
> More information: <https://github.com/clbr/radeontop>.
> More information: <https://github.com/clbr/radeontop/blob/master/radeontop.asc>.
- Show the utilization of the default AMD GPU:
@@ -15,12 +15,12 @@ source: https://github.com/tldr-pages/tldr.git
- Enable colored output:
`radeontop --color`
`radeontop {{[-c|--color]}}`
- Select a specific GPU (the bus number is the first number in the output of `lspci`):
`radeontop --bus {{bus_number}}`
`radeontop {{[-b|--bus]}} {{bus_number}}`
- Specify the display refresh rate (higher means more GPU overhead):
`radeontop --ticks {{samples_per_second}}`
`radeontop {{[-t|--ticks]}} {{samples_per_second}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A frontend for emulators, game engines and media players.
> The reference implementation of the libretro API.
> More information: <https://github.com/libretro/RetroArch>.
> More information: <https://manned.org/retroarch>.
- Start in the menu mode:
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Start in full screen mode:
`retroarch --fullscreen`
`retroarch {{[-f|--fullscreen]}}`
- List all compiled features:
@@ -23,11 +23,11 @@ source: https://github.com/tldr-pages/tldr.git
- Set the path of a configuration file:
`retroarch --config={{path/to/config_file}}`
`retroarch {{[-c|--config]}} {{path/to/config_file}}`
- Display help:
`retroarch --help`
`retroarch {{[-h|--help]}}`
- Display version:

View File

@@ -7,12 +7,12 @@ source: https://github.com/tldr-pages/tldr.git
> Handle RPMNEW, RPMSAVE and RPMORIG files left over by package upgrades.
> See also: `rpm`.
> More information: <https://github.com/xsuchy/rpmconf>.
> More information: <https://manned.org/man/rpmconf.8>.
- List leftover files and interactively choose what to do with each of them:
`sudo rpmconf --all`
`sudo rpmconf {{[-a|--all]}}`
- Delete orphaned RPMNEW and RPMSAVE files:
`sudo rpmconf --all --clean`
`sudo rpmconf {{[-a|--all]}} {{[-c|--clean]}}`

18
tldr/linux/systemctl-link Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl link
> Link a unit file located outside the unit file search path into the search path.
> See also: `systemctl disable`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#link%20PATH%E2%80%A6>.
- Link a unit file to make it available for systemd commands:
`systemctl link {{path/to/service}}`
- Link multiple unit files at once:
`systemctl link {{path/to/service1 path/to/service2 ...}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A tiny Todoist client in Rust.
> It takes simple input and dumps it in your inbox or another project. Taking advantage of natural language processing to assign due dates, tags, etc.
> More information: <https://github.com/alanvardy/tod>.
> More information: <https://github.com/tod-org/tod/blob/main/docs/usage.md#usage>.
- Import your projects (this is necessary to enable project prompts):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# trashy
> An alternative to `rm` and `trash-cli` written in Rust.
> More information: <https://github.com/oberblastmeister/trashy>.
> More information: <https://github.com/oberblastmeister/trashy#usage>.
- Move a specific file to the trash:

View File

@@ -6,12 +6,12 @@ source: https://github.com/tldr-pages/tldr.git
# woeusb
> Windows media creation tool.
> More information: <https://github.com/WoeUSB/WoeUSB>.
> More information: <https://manned.org/woeusb>.
- Format a USB then create a bootable Windows installation drive:
`woeusb --device {{path/to/windows.iso}} {{/dev/sdX}}`
`woeusb {{[-d|--device]}} {{path/to/windows.iso}} {{/dev/sdX}}`
- Copy Windows files to an existing partition of a USB storage device and make it bootable, without erasing the current data:
`woeusb --partition {{path/to/windows.iso}} {{/dev/sdXN}}`
`woeusb {{[-p|--partition]}} {{path/to/windows.iso}} {{/dev/sdXN}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# xed
> Edit files in Cinnamon desktop environment.
> More information: <https://github.com/linuxmint/xed>.
> More information: <https://manned.org/xed>.
- Start the editor:

View File

@@ -7,23 +7,23 @@ source: https://github.com/tldr-pages/tldr.git
> Find and download videos and music. Written in POSIX shell.
> See also: `youtube-dl`, `yt-dlp`, `instaloader`.
> More information: <https://github.com/pystardust/ytfzf>.
> More information: <https://manned.org/ytfzf>.
- Search for videos on YouTube with thumbnail previews:
`ytfzf --show-thumbnails {{search_pattern}}`
`ytfzf {{[-t|--show-thumbnails]}} {{search_pattern}}`
- Play only the audio of the first item in a loop:
`ytfzf --audio-only --auto-select --loop {{search_pattern}}`
`ytfzf {{[-m|--audio-only]}} {{[-a|--auto-select]}} {{[-l|--loop]}} {{search_pattern}}`
- Download a video from the history:
`ytfzf --download --choose-from-history`
`ytfzf {{[-d|--download]}} --choose-from-history`
- Play all the music found in a search:
`ytfzf --audio-only --select-all {{search_pattern}}`
`ytfzf {{[-m|--audio-only]}} {{[-A|--select-all]}} {{search_pattern}}`
- See the trending videos in an external menu:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# meshnamed
> Distributed naming system for IPv6 mesh networks.
> More information: <https://github.com/zhoreeq/meshname/>.
> More information: <https://github.com/zhoreeq/meshname>.
- Start a local meshname DNS server:

View File

@@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git
# tag
> Edit tags on Mac OS X files (10.9 Mavericks and above).
> More information: <https://github.com/jdberry/tag/#usage>.
> More information: <https://github.com/jdberry/tag#usage>.
- Add tags to a file:
`tag --add {{tag_name1,tag_name2,...}} {{path/to/file}}`
`tag {{[-a|--add]}} {{tag_name1,tag_name2,...}} {{path/to/file}}`
- Remove a tag:
`tag --remove {{tag_name}} {{path/to/file}}`
`tag {{[-r|--remove]}} {{tag_name}} {{path/to/file}}`
- Remove all tags from a file:
`tag --remove \* {{path/to/file}}`
`tag {{[-r|--remove]}} \* {{path/to/file}}`
- Show all files with a given tag:
`tag --match {{tag_name}}`
`tag {{[-m|--match]}} {{tag_name}}`

33
tldr/poetry-new Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# poetry new
> Create a new Poetry project in a specific directory.
> More information: <https://python-poetry.org/docs/cli/#new>.
- Create a new project (defaults to `src` layout):
`poetry new {{path/to/directory}}`
- Create a new project asking for configuration details interactively:
`poetry new {{path/to/directory}} {{[-i|--interactive]}}`
- Create a new project with a specific package name:
`poetry new {{path/to/directory}} --name {{package_name}}`
- Create a new project using the flat layout (without the `src` directory):
`poetry new {{path/to/directory}} --flat`
- Create a new project with a specific author:
`poetry new {{path/to/directory}} --author "{{Name <email@example.com>}}"`
- Create a new project with a specific README format:
`poetry new {{path/to/directory}} --readme {{md|rst|txt|...}}`

33
tldr/poetry-publish Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# poetry publish
> Publishes a package to a remote repository.
> More information: <https://python-poetry.org/docs/cli/#publish>.
- Publish the current package to PyPI:
`poetry publish`
- Build the package before publishing:
`poetry publish --build`
- Publish to a specific repository:
`poetry publish {{[-r|--repository]}} {{repository_name}}`
- Publish with specific credentials:
`poetry publish {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}}`
- Perform a dry run to see what would be done without actually publishing:
`poetry publish --dry-run`
- Skip files that already exist in the repository:
`poetry publish --skip-existing`

29
tldr/poetry-remove Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# poetry remove
> Remove a package from the project dependencies.
> More information: <https://python-poetry.org/docs/cli/#remove>.
- Remove one or more packages from the project's dependencies:
`poetry remove {{package1 package2 ...}}`
- Remove a package from the development dependencies:
`poetry remove {{package}} {{[-D|--dev]}}`
- Remove a package from a specific dependency group:
`poetry remove {{package}} {{[-G|--group]}} {{group_name}}`
- Remove a package without making any changes (dry-run):
`poetry remove {{package}} --dry-run`
- Update the lock file only, without removing the package from the environment:
`poetry remove {{package}} --lock`

25
tldr/poetry-run Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# poetry run
> Run a command in the project's virtual environment.
> More information: <https://python-poetry.org/docs/cli/#run>.
- Run a command inside the virtual environment:
`poetry run {{command}}`
- Run a command with arguments:
`poetry run {{command}} {{argument1 argument2 ...}}`
- Run a script defined in `pyproject.toml`:
`poetry run {{script_name}}`
- Run a Python script:
`poetry run python {{path/to/script.py}}`

33
tldr/poetry-update Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# poetry update
> Update the dependencies as according to the `pyproject.toml` file.
> More information: <https://python-poetry.org/docs/cli/#update>.
- Update all dependencies:
`poetry update`
- Update one or more specific packages:
`poetry update {{package1 package2 ...}}`
- Update the lock file only, without installing the packages:
`poetry update --lock`
- Synchronize the environment with the locked packages:
`poetry update --sync`
- Update dependencies only for a specific group:
`poetry update --only {{group_name}}`
- Simulate the update process without making changes:
`poetry update --dry-run`

38
tldr/speak-ng Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# speak-ng
> A multi-lingual software speech synthesizer.
> See also: `espeak-ng`, `espeak`.
> More information: <https://github.com/espeak-ng/espeak-ng/blob/master/src/speak-ng.1.ronn>.
- Speak a phrase aloud:
`speak-ng "{{text}}"`
- Speak text from `stdin`:
`echo "{{text}}" | speak-ng`
- Speak the contents of a [f]ile:
`speak-ng -f {{path/to/file}}`
- Speak using a specific [v]oice:
`speak-ng -v {{voice}} "{{text}}"`
- Speak at a specific [s]peed (default is 175) and [p]itch (default is 50):
`speak-ng -s {{speed}} -p {{pitch}} "{{text}}"`
- Output the audio to a [w]AV file instead of speaking it directly:
`speak-ng -w {{path/to/output.wav}} "{{text}}"`
- List all available voices:
`speak-ng --voices`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sysbench
> Benchmark a System's CPU, IO and memory.
> More information: <https://github.com/akopytov/sysbench/>.
> More information: <https://github.com/akopytov/sysbench#usage>.
- Run a CPU benchmark with 1 thread for 10 seconds:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# transcrypt
> Transparently encrypt files within a Git repository.
> More information: <https://github.com/elasticdog/transcrypt>.
> More information: <https://github.com/elasticdog/transcrypt#command-line-options>.
- Initialize an unconfigured repository:

View File

@@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git
- Upload a file showing a progress bar (requires Python package `requests_toolbelt`):
`transfersh --progress {{path/to/file}}`
`transfersh {{[-p|--progress]}} {{path/to/file}}`
- Upload a file using a different file name:
`transfersh --name {{filename}} {{path/to/file}}`
`transfersh {{[-n|--name]}} {{filename}} {{path/to/file}}`
- Upload a file to a custom transfer.sh server:
`transfersh --servername {{upload.server.name}} {{path/to/file}}`
`transfersh {{[-sn|--servername]}} {{upload.server.name}} {{path/to/file}}`
- Upload all files from a directory recursively:
`transfersh --recursive {{path/to/directory}}/`
`transfersh {{[-r|--recursive]}} {{path/to/directory}}/`
- Upload a specific directory as an uncompressed tar:
`transfersh -rt {{path/to/directory}}`
`transfersh {{[-rt|--recursive --tar]}} {{path/to/directory}}`

View File

@@ -7,36 +7,36 @@ source: https://github.com/tldr-pages/tldr.git
> Show the contents of the current directory as a tree.
> Respects the `.gitignore` settings by default.
> More information: <https://github.com/dduan/tre>.
> More information: <https://github.com/dduan/tre#everything-else>.
- Print directories only:
`tre --directories`
`tre {{[-d|--directories]}}`
- Print JSON containing files in the tree hierarchy instead of the normal tree diagram:
`tre --json`
`tre {{[-j|--json]}}`
- Print files and directories up to the specified depth limit (where 1 means the current directory):
`tre --limit {{depth}}`
`tre {{[-l|--limit]}} {{depth}}`
- Print all hidden files and directories using the specified colorization mode:
`tre --all --color {{automatic|always|never}}`
`tre {{[-a|--all]}} {{[-c|--color]}} {{automatic|always|never}}`
- Print files within the tree hierarchy, assigning a shell alias to each file that, when called, will open the associated file using the provided `command` (or in `$EDITOR` by default):
`tre --editor {{command}}`
`tre {{[-e|--editor]}} {{command}}`
- Print files within the tree hierarchy, excluding all paths that match the provided `regex`:
`tre --exclude {{regex}}`
`tre {{[-E|--exclude]}} {{regex}}`
- Display version:
`tre --version`
`tre {{[-V|--version]}}`
- Display help:
`tre --help`
`tre {{[-h|--help]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# trufflehog
> Find and verify credentials in files, Git repositories, S3 buckets, and Docker images.
> More information: <https://github.com/trufflesecurity/trufflehog>.
> More information: <https://github.com/trufflesecurity/trufflehog#memo-usage>.
- Scan a Git repository for verified secrets:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tspin
> A log file highlighter based on the `less` pager and basically behaves like any pager.
> More information: <https://github.com/bensadeh/tailspin>.
> More information: <https://github.com/bensadeh/tailspin#settings>.
- Read from file and view in `less`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Cut text (or bytes) where a delimiter matches, then keep the desired parts.
> A more user-friendly and powerful version of `cut` with sensible defaults.
> More information: <https://github.com/riquito/tuc>.
> More information: <https://github.com/riquito/tuc#help>.
- Cut and rearrange fields:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# twurl
> Curl-like command but tailored specifically for the Twitter API.
> More information: <https://github.com/twitter/twurl>.
> More information: <https://github.com/twitter/twurl#getting-started>.
- Authorize `twurl` to access a Twitter account:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ugrep
> Ultra fast search tool with query TUI.
> More information: <https://github.com/Genivia/ugrep>.
> More information: <https://github.com/Genivia/ugrep#man-page>.
- Start a query TUI to search files in the current directory recursively (`<Ctrl z>` for help):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# viu
> View images on the terminal.
> More information: <https://github.com/atanunq/viu>.
> More information: <https://github.com/atanunq/viu#command-line-options>.
- Render an image or animated GIF:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wakeonlan
> Send packets to wake-on-LAN (WOL) enabled PCs.
> More information: <https://github.com/jpoliv/wakeonlan>.
> More information: <https://manned.org/wakeonlan>.
- Send packets to all devices on the local network (255.255.255.255) by specifying a MAC address:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wasm-objdump
> Display information from WebAssembly binaries.
> More information: <https://github.com/WebAssembly/wabt>.
> More information: <https://webassembly.github.io/wabt/doc/wasm-objdump.1.html>.
- Display the section headers of a given binary:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wasm-opt
> Optimize WebAssembly binary files.
> More information: <https://github.com/webassembly/binaryen>.
> More information: <https://manned.org/wasm-opt>.
- Apply default optimizations and write to a given file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wasm2c
> Convert a file from the WebAssembly binary format to a C source file and header.
> More information: <https://github.com/WebAssembly/wabt>.
> More information: <https://webassembly.github.io/wabt/doc/wasm2c.1.html>.
- Convert a file to a C source file and header and display it to the console:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wasm2wat
> Convert a file from the WebAssembly binary format to the text format.
> More information: <https://github.com/WebAssembly/wabt>.
> More information: <https://webassembly.github.io/wabt/doc/wasm2wat.1.html>.
- Convert a file to the text format and display it to the console:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wat2wasm
> Convert a file from the WebAssembly text format to the binary format.
> More information: <https://github.com/WebAssembly/wabt>.
> More information: <https://webassembly.github.io/wabt/doc/wat2wasm.1.html>.
- Parse and check a file for errors:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# whatwaf
> Detect and bypass web application firewalls and protection systems.
> More information: <https://github.com/Ekultek/WhatWaf>.
> More information: <https://github.com/Ekultek/WhatWaf#basic-help-menu>.
- Detect protection on a single URL, optionally use verbose output:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# whatweb
> Next-generation web scanner.
> More information: <https://github.com/urbanadventurer/WhatWeb/>.
> More information: <https://github.com/urbanadventurer/WhatWeb#usage>.
- Scan websites/targets for web technologies:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wikit
> Easily get Wikipedia summaries.
> More information: <https://github.com/KorySchneider/wikit>.
> More information: <https://github.com/KorySchneider/wikit#usage>.
- Show a short summary of a specific topic on Wikipedia:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wrk
> HTTP benchmarking tool.
> More information: <https://github.com/wg/wrk>.
> More information: <https://github.com/wg/wrk#basic-usage>.
- Run a benchmark for `30` seconds, using `12` threads, and keeping `400` HTTP connections open:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wuzz
> Interactively inspect HTTP requests and responses.
> More information: <https://github.com/asciimoo/wuzz>.
> More information: <https://github.com/asciimoo/wuzz#commands>.
- Start `wuzz`:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Friendly and fast tool for sending HTTP requests.
> Note: `xh`, written in rust, serves as an effective drop-in replacement for `http`.
> See also: `http`, `curl`.
> More information: <https://github.com/ducaale/xh>.
> More information: <https://github.com/ducaale/xh#usage>.
- Send a GET request (shows response headers and content):

32
tldr/ya
View File

@@ -5,29 +5,37 @@ source: https://github.com/tldr-pages/tldr.git
---
# ya
> Manage Yazi packages and plugins.
> More information: <https://github.com/sxyazi/yazi>.
> Manage Yazi plugins and flavors, publish or subscribe to DDS messages.
> More information: <https://yazi-rs.github.io/docs/cli>.
- Add a package:
`ya pack {{[-a|--all]}} {{package}}`
`ya pkg add {{package}}`
- Delete a package:
`ya pkg delete {{package}}`
- Upgrade all packages:
`ya pack {{[-u|--upgrade]}}`
`ya pkg upgrade`
- Subscribe to messages from all remote instances:
- List all packages:
`ya sub {{kinds}}`
`ya pkg list`
- Emit a command to be executed by the current instance:
`ya emit {{command}} {{arguments}}`
- Emit commands to a specific remote instance:
`ya emit-to {{receiver}} {{command}} {{arguments}}`
- Publish a message to the current instance with string body:
`ya pub --str {{string_message}}`
- Publish a message to the current instance with JSON body:
- Subscribe to a specific kind of message from a remote instance:
`ya pub --json {{json_message}}`
- Publish a message to the specified instance with string body:
`ya pub-to --str {{message}} {{receiver}} {{kind}}`
`ya sub {{message_kind}}`

View File

@@ -8,24 +8,24 @@ source: https://github.com/tldr-pages/tldr.git
> If `transcrypt` is installed, this command allows you to pass options directly to `transcrypt`.
> With the environment configured to use the yadm repository.
> Transcrypt enables transparent encryption and decryption of files in a Git repository.
> More information: <https://github.com/elasticdog/transcrypt>.
> More information: <https://github.com/elasticdog/transcrypt#command-line-options>.
- Set the symmetric cipher to utilize for encryption:
`yadm transcrypt --cipher={{cipher}}`
`yadm transcrypt {{[-c|--cipher]}} {{cipher}}`
- Pass the password to derive the key from:
`yadm transcrypt --password={{password}}`
`yadm transcrypt {{[-p|--password]}} {{password}}`
- Assume yes and accept defaults for non-specified options:
`yadm transcrypt --yes`
`yadm transcrypt {{[-y|--yes]}}`
- Display the current repository's cipher and password:
`yadm transcrypt --display`
`yadm transcrypt {{[-d|--display]}}`
- Re -encrypt all encrypted files using new credentials:
`yadm transcrypt --rekey`
`yadm transcrypt {{[-r|--rekey]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# yapf
> Python style guide checker.
> More information: <https://github.com/google/yapf>.
> More information: <https://github.com/google/yapf#usage>.
- Display a diff of the changes that would be made, without making them (dry-run):

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Keep track of the most frequently used directories.
> Uses a ranking algorithm to navigate to the best match.
> More information: <https://github.com/ajeetdsouza/zoxide>.
> More information: <https://manned.org/zoxide>.
- Go to the highest-ranked directory that contains `string` in the name:
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Start an interactive directory search (requires `fzf`):
`zoxide query --interactive`
`zoxide query {{[-i|--interactive]}}`
- Add a directory or increment its rank: