From ce31a6d914e2e727b24c0178e530387a88f78b4d Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 6 Nov 2025 00:20:12 +0000 Subject: [PATCH] Update cheatsheets --- tldr/cbonsai | 1 + tldr/cmatrix | 1 + tldr/doom | 18 ++++++++++++++++++ tldr/echo | 4 ++++ tldr/find | 1 + tldr/linux/caligula | 1 + tldr/linux/cat | 12 ++++++++---- tldr/linux/dd | 1 + tldr/linux/koji | 33 +++++++++++++++++++++++++++++++++ tldr/linux/waydroid | 4 ++-- tldr/nb | 42 ++++++++++++++++++++++++++++++++++++++++++ tldr/rm | 2 +- tldr/tldr-lint | 17 +++++++++++------ tldr/traceroute | 1 + tldr/wcurl | 2 +- tldr/windows/cleanmgr | 42 ++++++++++++++++++++++++++++++++++++++++++ 16 files changed, 168 insertions(+), 14 deletions(-) create mode 100644 tldr/doom create mode 100644 tldr/linux/koji create mode 100644 tldr/nb create mode 100644 tldr/windows/cleanmgr diff --git a/tldr/cbonsai b/tldr/cbonsai index 241d488b..cae820ac 100644 --- a/tldr/cbonsai +++ b/tldr/cbonsai @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # cbonsai > A beautifully random bonsai tree generator. +> See also: `cmatrix`. > More information: . - Generate a bonsai in live mode: diff --git a/tldr/cmatrix b/tldr/cmatrix index 6212a69c..e816c626 100644 --- a/tldr/cmatrix +++ b/tldr/cmatrix @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # cmatrix > Shows a scrolling Matrix like screen in the terminal. +> See also: `cbonsai`. > More information: . - Enable [a]synchronous scrolling: diff --git a/tldr/doom b/tldr/doom new file mode 100644 index 00000000..c98a0f79 --- /dev/null +++ b/tldr/doom @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# DOOM + +> Classic open-source boomer shooter featuring modding and multiplayer. +> `zandronum-server` can be replaced with almost any sourceport. +> More information: . + +- Host co-op multiplayer: + +`{{zandronum-server}} -iwad {{wad}} +map {{map}} -host {{players}}` + +- Host deathmatch multiplayer: + +`{{zandronum-server}} -iwad {{wad}} +map {{map}} -host {{players}} -deathmatch` diff --git a/tldr/echo b/tldr/echo index 98dfeccb..525a64f5 100644 --- a/tldr/echo +++ b/tldr/echo @@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git - Print the exit status of the last executed command (Note: In Windows Command Prompt and PowerShell the equivalent commands are `echo %errorlevel%` and `$lastexitcode` respectively): `echo $?` + +- Pass text to another program through `stdin`: + +`echo "{{Hello World}}" | {{program}}` diff --git a/tldr/find b/tldr/find index 5942bafe..0ed12ed8 100644 --- a/tldr/find +++ b/tldr/find @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # find > Find files or directories under a directory tree, recursively. +> See also: `fd`. > More information: . - Find files by extension: diff --git a/tldr/linux/caligula b/tldr/linux/caligula index 708314e8..ec787b4f 100644 --- a/tldr/linux/caligula +++ b/tldr/linux/caligula @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # caligula > A user-friendly, lightweight TUI for disk imaging. +> See also: `dd`. > More information: . - Flash an ISO to a drive: diff --git a/tldr/linux/cat b/tldr/linux/cat index db8b961a..1f1c32da 100644 --- a/tldr/linux/cat +++ b/tldr/linux/cat @@ -20,14 +20,18 @@ source: https://github.com/tldr-pages/tldr.git `cat {{path/to/file1 path/to/file2 ...}} >> {{path/to/output_file}}` -- Write `stdin` to a file: +- Write to a file interactively: -`cat - > {{path/to/file}}` +`cat > {{path/to/file}}` - Number all output lines: `cat {{[-n|--number]}} {{path/to/file}}` -- Display non-printable and whitespace characters (with `M-` prefix if non-ASCII): +- Display all characters, including tabs, line endings, and non-printing characters: -`cat {{[-vte|--show-nonprinting -t -e]}} {{path/to/file}}` +`cat {{[-A|--show-all]}} {{path/to/file}}` + +- Pass file contents to another program through `stdin`: + +`cat {{path/to/file}} | {{program}}` diff --git a/tldr/linux/dd b/tldr/linux/dd index a690d133..e2cfb21d 100644 --- a/tldr/linux/dd +++ b/tldr/linux/dd @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # dd > Convert and copy a file. +> See also: `caligula`. > More information: . - Make a bootable USB drive from an isohybrid file (such as `archlinux-xxx.iso`) and show the progress: diff --git a/tldr/linux/koji b/tldr/linux/koji new file mode 100644 index 00000000..7e3bcc56 --- /dev/null +++ b/tldr/linux/koji @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# koji + +> Interact with kojihub. +> More information: . + +- Execute a koji subcommand: + +`koji {{subcommand}}` + +- Introduce yourself to test connectivity with koijhub: + +`koji moshimoshi` + +- Display help about global options: + +`koji --help` + +- Display help to get all available commands: + +`koji help` + +- Display help for a specific subcommand (like `build`, `tag-build`, `download-build`, `buildinfo`,`call`, etc.): + +`koji {{subcommand}} --help` + +- Display version: + +`koji version` diff --git a/tldr/linux/waydroid b/tldr/linux/waydroid index 5d0e7186..67e3c034 100644 --- a/tldr/linux/waydroid +++ b/tldr/linux/waydroid @@ -6,11 +6,11 @@ source: https://github.com/tldr-pages/tldr.git # waydroid > A container-based approach to boot a full Android system on a regular Linux system like Ubuntu. -> More information: . +> More information: . - Start Waydroid: -`waydroid` +`waydroid show-full-ui` - Initialize Waydroid (required on first run or after reinstalling Android): diff --git a/tldr/nb b/tldr/nb new file mode 100644 index 00000000..bde7dd49 --- /dev/null +++ b/tldr/nb @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# nb + +> Note-taking, bookmarking, and archiving tool. +> Supports encryption, tagging, wiki-style links, Git syncing, Pandoc conversion, and more. +> More information: . + +- Create a new note in your `$EDITOR`: + +`nb {{[a|add]}} "{{note_title}}"` + +- Edit a note in your `$EDITOR`: + +`nb {{[e|edit]}} {{note_id}}` + +- List all notes in the current notebook: + +`nb list` + +- Add a todo: + +`nb {{[to|todos]}} {{[a|add]}} {{title}}` + +- Import a file: + +`nb import ({{path/to/file|url}})` + +- Search for notes containing a keyword: + +`nb {{[q|search]}} "{{keyword}}"` + +- Sync notes via Git: + +`nb sync` + +- Display help: + +`nb help` diff --git a/tldr/rm b/tldr/rm index 6da8b73f..47ab21fa 100644 --- a/tldr/rm +++ b/tldr/rm @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # rm > Remove files or directories. -> See also: `rmdir`. +> See also: `rmdir`, `trash`. > More information: . - Remove specific files: diff --git a/tldr/tldr-lint b/tldr/tldr-lint index fcc0578f..3b196eb9 100644 --- a/tldr/tldr-lint +++ b/tldr/tldr-lint @@ -6,16 +6,21 @@ source: https://github.com/tldr-pages/tldr.git # tldr-lint > Lint and format `tldr` pages. -> More information: . +> Note: `tldrl` can be used as an alias for `tldr-lint`. +> More information: . -- Lint all pages: +- Lint a single page or all pages in a directory: -`tldr-lint {{pages_directory}}` +`tldr-lint {{path/to/page_or_directory}}` + +- Ignore specific `tldr-lint` error codes while linting: + +`tldr-lint {{[-I|--ignore]}} {{TLDR001,TLDR002,...}}` - Format a specific page to `stdout`: -`tldr-lint --format {{page.md}}` +`tldr-lint {{[-f|--format]}} {{path/to/page.md}}` -- Format all pages in place: +- Format a page in place: -`tldr-lint --format --in-place {{pages_directory}}` +`tldr-lint {{[-f|--format]}} {{[-i|--in-place]}} {{path/to/page.md}}` diff --git a/tldr/traceroute b/tldr/traceroute index 4a5c4a0d..a0205edf 100644 --- a/tldr/traceroute +++ b/tldr/traceroute @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # traceroute > Print the route packets trace to network host. +> See also: `mtr`. > More information: . - Traceroute to a host: diff --git a/tldr/wcurl b/tldr/wcurl index b36f62f3..828e71ae 100644 --- a/tldr/wcurl +++ b/tldr/wcurl @@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git - Resume from an interrupted download: -`wcurl --curl-options "--continue-at -" {{https://example.com/foo}}` +`wcurl --curl-options "--clobber --continue-at -" {{https://example.com/foo}}` diff --git a/tldr/windows/cleanmgr b/tldr/windows/cleanmgr new file mode 100644 index 00000000..ba6d0bff --- /dev/null +++ b/tldr/windows/cleanmgr @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# cleanmgr + +> Clear unnecessary files from the computer's hard disk. +> Deprecated in newer Windows versions and replaced by "Storage Sense". +> More information: . + +- Open Disk Cleanup for a specific drive: + +`cleanmgr /d {{C}}` + +- Open Disk Cleanup with all options selected by default: + +`cleanmgr /d {{C}} /lowdisk` + +- Clean up all files automatically without user prompts: + +`cleanmgr /d {{C}} /verylowdisk` + +- Configure which files to clean and save the settings to a specific profile: + +`cleanmgr /sageset:{{profile_number}}` + +- Run Disk Cleanup using a previously configured profile: + +`cleanmgr /sagerun:{{profile_number}}` + +- Clean up files left after a Windows upgrade: + +`cleanmgr /autoclean` + +- Clean up files from a previous Windows installation: + +`cleanmgr /setup` + +- Display help: + +`cleanmgr /?`