Update cheatsheets

This commit is contained in:
ivuorinen
2026-02-08 00:34:23 +00:00
parent c8acbc5872
commit a9c8ccc0e2
34 changed files with 357 additions and 49 deletions

34
tldr/autoload Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# autoload
> Mark functions for lazy loading in Zsh.
> Functions are not loaded into memory until first called, improving shell startup time.
> More information: <https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html>.
- Autoload a function by name:
`autoload {{function_name}}`
- Autoload a function and immediately resolve its definition:
`autoload +X {{function_name}}`
- Autoload a function using Zsh-style autoloading (recommended):
`autoload -Uz {{function_name}}`
- Make functions from a directory available by adding it to `fpath`:
`fpath=({{path/to/functions_dir}} $fpath) && autoload -Uz {{function_name}}`
- Autoload the Zsh completion system:
`autoload -Uz compinit && compinit`
- Autoload and use the `add-zsh-hook` utility:
`autoload -Uz add-zsh-hook`

12
tldr/bye Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bye
> This command is an alias of `exit`.
- View documentation for the original command:
`tldr exit`

12
tldr/chdir Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# chdir
> This command is an alias of `cd`.
- View documentation for the original command:
`tldr cd`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cmatrix
> Show a scrolling Matrix like screen in the terminal.
> See also: `cbonsai`, `asciiquarium`, `pipes.sh`.
> See also: `neo`, `cbonsai`, `asciiquarium`, `pipes.sh`.
> More information: <https://manned.org/cmatrix>.
- Enable [a]synchronous scrolling:

View File

@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
# dhcpig
> Initiates an advanced DHCP exhaustion attack and stress test.
> DHCPig needs to be run with root privileges.
> More information: <https://github.com/kamorin/DHCPig#usage>.
- Exhaust all of the available DHCP addresses using the specified interface:

12
tldr/getln Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# getln
> This command is an alias of `read -zr`.
- View documentation for the original command:
`tldr read`

34
tldr/hurl Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# hurl
> Run and test HTTP requests defined in a simple plain text format.
> Powered by curl.
> More information: <https://hurl.dev/docs/manual.html>.
- Run HTTP requests from a file:
`hurl {{path/to/file.hurl}}`
- Run HTTP requests and set variable to use:
`hurl --variable {{VariableName}}={{value}} {{path/to/file.hurl}}`
- Run HTTP requests with secret to be redacted on logs and reports:
`hurl --secret {{SecretName}}={{value}} {{path/to/file.hurl}}`
- Run HTTP requests and inject variables and secret from file:
`hurl --variables-file {{path/to/variables_file}} --secrets-file {{path/to/secrets_file}} {{path/to/file.hurl}}`
- Run specific HTTP requests from file, from entry 2 to 5:
`hurl --from-entry 2 --to-entry 5 {{path/to/file.hurl}}`
- Test HTTP requests from file and generate report in html:
`hurl --test --report-html {{path/to/output_directory}} {{path/to/file.hurl}}`

View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# impacket-ticketConverter
> This command is an alias of `ticketConverter.py`.
- View documentation for the original command:
`tldr ticketConverter.py`

View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# apptainer cache
> Manage the local Apptainer cache.
> More information: <https://apptainer.org/docs/user/main/cli/apptainer_cache.html>.
- List all cached container images:
`apptainer cache list`
- List cached container images with detailed information:
`apptainer cache list {{[-v|--verbose]}}`
- List only a specific cache type:
`apptainer cache list {{[-T|--type]}} {{library|oci|shub|blob|...}}`
- Clean the entire cache:
`apptainer cache clean`
- Clean only a specific cache type:
`apptainer cache clean {{[-T|--type]}} {{library|oci|shub|blob|...}}`
- Clean cache entries older than a specific number of days:
`apptainer cache clean {{[-D|--days]}} {{days}}`
- Preview what would be cleaned without removing anything:
`apptainer cache clean {{[-n|--dry-run]}}`
- Force clean without confirmation:
`apptainer cache clean {{[-f|--force]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ark
> KDE's archiving tool.
> More information: <https://docs.kde.org/stable5/en/ark/ark/>.
> More information: <https://docs.kde.org/stable_kf6/en/ark/ark/>.
- Extract a specific archive into the current directory:

View File

@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
# cpufreq-aperf
> Calculate the average CPU frequency over a time period.
> Requires root privileges.
> More information: <https://manned.org/cpufreq-aperf>.
- Start calculating, defaulting to all CPU cores and 1 second refresh interval:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dmidecode
> Display the DMI (alternatively known as SMBIOS) table contents in a human-readable format.
> Requires root privileges.
> See also: `inxi`, `lshw`, `hwinfo`.
> More information: <https://manned.org/dmidecode>.
- Show all DMI table contents:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# hwclock
> Read or change the hardware clock. Usually requires root.
> Read or change the hardware clock.
> More information: <https://manned.org/hwclock>.
- Display the current time as reported by the hardware clock:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hwinfo
> Probe for the hardware present in the system.
> See also: `inxi`, `lshw`.
> See also: `inxi`, `lshw`, `dmidecode`.
> More information: <https://manpages.opensuse.org/hwinfo/hwinfo.8.en.html>.
- Display all available hardware information:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# inxi
> Print a summary of system information and resources for debugging purposes.
> See also: `lshw`, `hwinfo`.
> See also: `lshw`, `hwinfo`, `dmidecode`.
> More information: <https://manned.org/inxi>.
- Print a summary of CPU, memory, hard drive and kernel information:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kdesrc-build
> Easily build KDE components from its source repositories.
> More information: <https://docs.kde.org/trunk5/en/kdesrc-build/kdesrc-build/index.html>.
> More information: <https://manned.org/man/kdesrc-build>.
- Initialize `kdesrc-build`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# konsole
> KDE's terminal emulator.
> More information: <https://docs.kde.org/stable5/en/konsole/konsole/command-line-options.html>.
> More information: <https://docs.kde.org/stable_kf6/en/konsole/konsole/command-line-options.html>.
- Open the terminal in a specific directory:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Text editor of the KDE Desktop project.
> See also: `kate`.
> More information: <https://docs.kde.org/stable5/en/kate/kwrite/command-line-options.html>.
> More information: <https://docs.kde.org/stable_kf6/en/kate/kwrite/command-line-options.html>.
- Open a text file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lshw
> List detailed information about hardware configurations as root user.
> See also: `inxi`, `hwinfo`.
> See also: `inxi`, `hwinfo`, `dmidecode`.
> More information: <https://ezix.org/project/wiki/HardwareLiSter>.
- Launch the X11 GUI (if available):

View File

@@ -5,25 +5,25 @@ source: https://github.com/tldr-pages/tldr.git
---
# runuser
> Run commands as a user and group without asking for password (needs root privileges).
> Run commands as a user and group without asking for password.
> More information: <https://manned.org/runuser>.
- Run command as a different user:
`runuser {{user}} {{[-c|--command]}} '{{command}}'`
`sudo runuser {{user}} {{[-c|--command]}} '{{command}}'`
- Run command as a different user and group:
`runuser {{user}} {{[-g|--group]}} {{group}} {{[-c|--command]}} '{{command}}'`
`sudo runuser {{user}} {{[-g|--group]}} {{group}} {{[-c|--command]}} '{{command}}'`
- Start a login shell as a specific user:
`runuser {{user}} {{[-l|--login]}}`
`sudo runuser {{user}} {{[-l|--login]}}`
- Specify a shell for running instead of the default shell (also works for login):
`runuser {{user}} {{[-s|--shell]}} {{/bin/sh}}`
`sudo runuser {{user}} {{[-s|--shell]}} {{/bin/sh}}`
- Preserve the entire environment of root (only if `--login` is not specified):
`runuser {{user}} {{[-p|--preserve-environment]}} {{[-c|--command]}} '{{command}}'`
`sudo runuser {{user}} {{[-p|--preserve-environment]}} {{[-c|--command]}} '{{command}}'`

18
tldr/ng-e2e Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ng e2e
> Build and serve an Angular application, then run end-to-end tests.
> Note: Available `e2e` packages include Playwright, Cypress, Nightwatch, WebdriverIO, and Puppeteer.
> More information: <https://angular.dev/cli/e2e>.
- Run end-to-end tests:
`ng {{[e|e2e]}}`
- Run end-to-end tests using a specific configuration:
`ng {{[e|e2e]}} {{[-c|--configuration]}} {{development|production|...}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# okular
> View documents.
> More information: <https://docs.kde.org/stable5/en/okular/okular/command-line-options.html>.
> More information: <https://docs.kde.org/stable_kf6/en/okular/okular/command-line-options.html>.
- Launch document viewer:

View File

@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
# route
> Manually manipulate the routing tables.
> Requires root privileges.
> More information: <https://keith.github.io/xcode-man-pages/route.8.html>.
- Add a route to a destination through a gateway:

View File

@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
# scutil
> Manage system configuration parameters.
> Require root privileges when setting configuration.
> More information: <https://keith.github.io/xcode-man-pages/scutil.8.html>.
- Display DNS Configuration:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# tmutil
> Utility for managing Time Machine backups. Most verbs require root privileges.
> Utility for managing Time Machine backups.
> More information: <https://keith.github.io/xcode-man-pages/tmutil.8.html>.
- Set an HFS+ drive as the backup destination:

12
tldr/pushln Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pushln
> This command is an alias of `print -nz`.
- View documentation for the original command:
`tldr print`

33
tldr/r
View File

@@ -3,35 +3,14 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# R
# r
> R language interpreter.
> More information: <https://manned.org/R>.
> `r` can refer to multiple commands with the same name.
- Start a REPL (interactive shell):
- View documentation for the R language interpreter:
`R`
`tldr r.1`
- Start R in vanilla mode (i.e. a blank session that doesn't save the workspace at the end):
- View documentation for the Zsh command:
`R --vanilla`
- Execute a file:
`R {{[-f|--file]}} {{path/to/file.R}}`
- Execute an R expression and then exit:
`R -e {{expr}}`
- Run R with a debugger:
`R {{[-d|--debugger]}} {{debugger}}`
- Check R packages from package sources:
`R CMD check {{path/to/package_source}}`
- Display version:
`R --version`
`tldr r.zsh`

37
tldr/r.1 Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# R
> R language interpreter.
> More information: <https://manned.org/R>.
- Start a REPL (interactive shell):
`R`
- Start R in vanilla mode (i.e. a blank session that doesn't save the workspace at the end):
`R --vanilla`
- Execute a file:
`R {{[-f|--file]}} {{path/to/file.R}}`
- Execute an R expression and then exit:
`R -e {{expr}}`
- Run R with a debugger:
`R {{[-d|--debugger]}} {{debugger}}`
- Check R packages from package sources:
`R CMD check {{path/to/package_source}}`
- Display version:
`R --version`

12
tldr/r.zsh Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# r
> This command is an alias of `fc -e -`.
- View documentation for the original command:
`tldr fc`

12
tldr/rehash Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# rehash
> This command is an alias of `hash -r`.
- View documentation for the original command:
`tldr hash`

18
tldr/ticketconverter.py Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ticketConverter.py
> Convert Kerberos tickets between kirbi and ccache formats.
> Part of the Impacket suite.
> More information: <https://github.com/fortra/impacket>.
- Convert kirbi to ccache:
`ticketConverter.py {{path/to/ticket.kirbi}} {{path/to/ticket.ccache}}`
- Convert ccache to kirbi:
`ticketConverter.py {{path/to/ticket.ccache}} {{path/to/ticket.kirbi}}`

12
tldr/unfunction Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# unfunction
> This command is an alias of `unhash -f`.
- View documentation for the original command:
`tldr unhash`

34
tldr/windows/copy Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# copy
> Copy files from one location to another.
> In PowerShell, this command is an alias of `Copy-Item`. This documentation is based on the Command Prompt (`cmd`) version of `copy`.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/copy>.
- Copy a file to another location:
`copy {{path o\source_file}} {{path o arget_file}}`
- Copy a file into another directory, keeping the filename:
`copy {{path o\source_file}} {{path o arget_directory}}`
- Copy multiple files to a directory:
`copy {{path o ile1 path o ile2 ...}} {{path o arget_directory}}`
- Copy all files from one directory to another directory:
`copy {{path o\source_directory\*}} {{path o arget_directory}}`
- Copy files with a specific extension:
`copy {{path o\source_directory\*.ext}} {{path o arget_directory}}`
- Copy a file and prompt before overwriting:
`copy /-y {{path o\source_file}} {{path o arget_file}}`

21
tldr/wn Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# wn
> Look up related words in a WordNet database.
> More information: <https://wordnet.princeton.edu/documentation/wn1wn>.
- Show information available for the word "emphatically":
`wn emphatically`
- List synonyms of the adverb "emphatically":
`wn emphatically -synsr`
- List antonyms of the adjective "slow":
`wn slow -antsa`