From a9c8ccc0e28b52875f9d8e9d112854f19a09c307 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 8 Feb 2026 00:34:23 +0000 Subject: [PATCH] Update cheatsheets --- tldr/autoload | 34 +++++++++++++++++++++++++++++ tldr/bye | 12 ++++++++++ tldr/chdir | 12 ++++++++++ tldr/cmatrix | 2 +- tldr/dhcpig | 1 - tldr/getln | 12 ++++++++++ tldr/hurl | 34 +++++++++++++++++++++++++++++ tldr/impacket-ticketconverter | 12 ++++++++++ tldr/linux/apptainer-cache | 41 +++++++++++++++++++++++++++++++++++ tldr/linux/ark | 2 +- tldr/linux/cpufreq-aperf | 1 - tldr/linux/dmidecode | 2 +- tldr/linux/hwclock | 2 +- tldr/linux/hwinfo | 2 +- tldr/linux/inxi | 2 +- tldr/linux/kdesrc-build | 2 +- tldr/linux/konsole | 2 +- tldr/linux/kwrite | 2 +- tldr/linux/lshw | 2 +- tldr/linux/runuser | 12 +++++----- tldr/ng-e2e | 18 +++++++++++++++ tldr/okular | 2 +- tldr/osx/route | 1 - tldr/osx/scutil | 1 - tldr/osx/tmutil | 2 +- tldr/pushln | 12 ++++++++++ tldr/r | 33 +++++----------------------- tldr/r.1 | 37 +++++++++++++++++++++++++++++++ tldr/r.zsh | 12 ++++++++++ tldr/rehash | 12 ++++++++++ tldr/ticketconverter.py | 18 +++++++++++++++ tldr/unfunction | 12 ++++++++++ tldr/windows/copy | 34 +++++++++++++++++++++++++++++ tldr/wn | 21 ++++++++++++++++++ 34 files changed, 357 insertions(+), 49 deletions(-) create mode 100644 tldr/autoload create mode 100644 tldr/bye create mode 100644 tldr/chdir create mode 100644 tldr/getln create mode 100644 tldr/hurl create mode 100644 tldr/impacket-ticketconverter create mode 100644 tldr/linux/apptainer-cache create mode 100644 tldr/ng-e2e create mode 100644 tldr/pushln create mode 100644 tldr/r.1 create mode 100644 tldr/r.zsh create mode 100644 tldr/rehash create mode 100644 tldr/ticketconverter.py create mode 100644 tldr/unfunction create mode 100644 tldr/windows/copy create mode 100644 tldr/wn diff --git a/tldr/autoload b/tldr/autoload new file mode 100644 index 00000000..ab9bc25c --- /dev/null +++ b/tldr/autoload @@ -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: . + +- 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` diff --git a/tldr/bye b/tldr/bye new file mode 100644 index 00000000..3e3cd5a1 --- /dev/null +++ b/tldr/bye @@ -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` diff --git a/tldr/chdir b/tldr/chdir new file mode 100644 index 00000000..557953f6 --- /dev/null +++ b/tldr/chdir @@ -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` diff --git a/tldr/cmatrix b/tldr/cmatrix index 3c2c0cd7..25c94b1e 100644 --- a/tldr/cmatrix +++ b/tldr/cmatrix @@ -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: . - Enable [a]synchronous scrolling: diff --git a/tldr/dhcpig b/tldr/dhcpig index 2a1731d6..7df44995 100644 --- a/tldr/dhcpig +++ b/tldr/dhcpig @@ -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: . - Exhaust all of the available DHCP addresses using the specified interface: diff --git a/tldr/getln b/tldr/getln new file mode 100644 index 00000000..55b56310 --- /dev/null +++ b/tldr/getln @@ -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` diff --git a/tldr/hurl b/tldr/hurl new file mode 100644 index 00000000..64f0fcab --- /dev/null +++ b/tldr/hurl @@ -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: . + +- 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}}` diff --git a/tldr/impacket-ticketconverter b/tldr/impacket-ticketconverter new file mode 100644 index 00000000..f560bace --- /dev/null +++ b/tldr/impacket-ticketconverter @@ -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` diff --git a/tldr/linux/apptainer-cache b/tldr/linux/apptainer-cache new file mode 100644 index 00000000..b5a96081 --- /dev/null +++ b/tldr/linux/apptainer-cache @@ -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: . + +- 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]}}` diff --git a/tldr/linux/ark b/tldr/linux/ark index 2e181495..bf10ae6b 100644 --- a/tldr/linux/ark +++ b/tldr/linux/ark @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ark > KDE's archiving tool. -> More information: . +> More information: . - Extract a specific archive into the current directory: diff --git a/tldr/linux/cpufreq-aperf b/tldr/linux/cpufreq-aperf index e0b83925..f11de929 100644 --- a/tldr/linux/cpufreq-aperf +++ b/tldr/linux/cpufreq-aperf @@ -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: . - Start calculating, defaulting to all CPU cores and 1 second refresh interval: diff --git a/tldr/linux/dmidecode b/tldr/linux/dmidecode index b7eeafb7..8ab039cd 100644 --- a/tldr/linux/dmidecode +++ b/tldr/linux/dmidecode @@ -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: . - Show all DMI table contents: diff --git a/tldr/linux/hwclock b/tldr/linux/hwclock index 2077cd0f..cfe71795 100644 --- a/tldr/linux/hwclock +++ b/tldr/linux/hwclock @@ -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: . - Display the current time as reported by the hardware clock: diff --git a/tldr/linux/hwinfo b/tldr/linux/hwinfo index 57ab492c..7fa4816b 100644 --- a/tldr/linux/hwinfo +++ b/tldr/linux/hwinfo @@ -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: . - Display all available hardware information: diff --git a/tldr/linux/inxi b/tldr/linux/inxi index bbfb0151..ed8da6d1 100644 --- a/tldr/linux/inxi +++ b/tldr/linux/inxi @@ -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: . - Print a summary of CPU, memory, hard drive and kernel information: diff --git a/tldr/linux/kdesrc-build b/tldr/linux/kdesrc-build index dbfb069d..b602f0c7 100644 --- a/tldr/linux/kdesrc-build +++ b/tldr/linux/kdesrc-build @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kdesrc-build > Easily build KDE components from its source repositories. -> More information: . +> More information: . - Initialize `kdesrc-build`: diff --git a/tldr/linux/konsole b/tldr/linux/konsole index a2ed8cf2..4e6043e7 100644 --- a/tldr/linux/konsole +++ b/tldr/linux/konsole @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # konsole > KDE's terminal emulator. -> More information: . +> More information: . - Open the terminal in a specific directory: diff --git a/tldr/linux/kwrite b/tldr/linux/kwrite index da1a2c64..6c58371e 100644 --- a/tldr/linux/kwrite +++ b/tldr/linux/kwrite @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Text editor of the KDE Desktop project. > See also: `kate`. -> More information: . +> More information: . - Open a text file: diff --git a/tldr/linux/lshw b/tldr/linux/lshw index ec7ec50d..1cf519c6 100644 --- a/tldr/linux/lshw +++ b/tldr/linux/lshw @@ -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: . - Launch the X11 GUI (if available): diff --git a/tldr/linux/runuser b/tldr/linux/runuser index 6b3e61c9..a3eb2ccf 100644 --- a/tldr/linux/runuser +++ b/tldr/linux/runuser @@ -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: . - 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}}'` diff --git a/tldr/ng-e2e b/tldr/ng-e2e new file mode 100644 index 00000000..a555c7b0 --- /dev/null +++ b/tldr/ng-e2e @@ -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: . + +- Run end-to-end tests: + +`ng {{[e|e2e]}}` + +- Run end-to-end tests using a specific configuration: + +`ng {{[e|e2e]}} {{[-c|--configuration]}} {{development|production|...}}` diff --git a/tldr/okular b/tldr/okular index 6dd61b25..15035d40 100644 --- a/tldr/okular +++ b/tldr/okular @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # okular > View documents. -> More information: . +> More information: . - Launch document viewer: diff --git a/tldr/osx/route b/tldr/osx/route index b901c1a7..66291489 100644 --- a/tldr/osx/route +++ b/tldr/osx/route @@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git # route > Manually manipulate the routing tables. -> Requires root privileges. > More information: . - Add a route to a destination through a gateway: diff --git a/tldr/osx/scutil b/tldr/osx/scutil index a6613fca..945e93fe 100644 --- a/tldr/osx/scutil +++ b/tldr/osx/scutil @@ -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: . - Display DNS Configuration: diff --git a/tldr/osx/tmutil b/tldr/osx/tmutil index da7adfeb..d6063a96 100644 --- a/tldr/osx/tmutil +++ b/tldr/osx/tmutil @@ -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: . - Set an HFS+ drive as the backup destination: diff --git a/tldr/pushln b/tldr/pushln new file mode 100644 index 00000000..590a2950 --- /dev/null +++ b/tldr/pushln @@ -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` diff --git a/tldr/r b/tldr/r index f25a4392..6bb3cbae 100644 --- a/tldr/r +++ b/tldr/r @@ -3,35 +3,14 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# R +# r -> R language interpreter. -> More information: . +> `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` diff --git a/tldr/r.1 b/tldr/r.1 new file mode 100644 index 00000000..f25a4392 --- /dev/null +++ b/tldr/r.1 @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# R + +> R language interpreter. +> More information: . + +- 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` diff --git a/tldr/r.zsh b/tldr/r.zsh new file mode 100644 index 00000000..8fd0dc99 --- /dev/null +++ b/tldr/r.zsh @@ -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` diff --git a/tldr/rehash b/tldr/rehash new file mode 100644 index 00000000..01f9b97c --- /dev/null +++ b/tldr/rehash @@ -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` diff --git a/tldr/ticketconverter.py b/tldr/ticketconverter.py new file mode 100644 index 00000000..60043317 --- /dev/null +++ b/tldr/ticketconverter.py @@ -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: . + +- 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}}` diff --git a/tldr/unfunction b/tldr/unfunction new file mode 100644 index 00000000..48a035b5 --- /dev/null +++ b/tldr/unfunction @@ -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` diff --git a/tldr/windows/copy b/tldr/windows/copy new file mode 100644 index 00000000..6badbfd2 --- /dev/null +++ b/tldr/windows/copy @@ -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: . + +- 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}}` diff --git a/tldr/wn b/tldr/wn new file mode 100644 index 00000000..bdd1fb36 --- /dev/null +++ b/tldr/wn @@ -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: . + +- 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`