Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-06 00:20:12 +00:00
parent 22576ac740
commit ce31a6d914
16 changed files with 168 additions and 14 deletions

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cbonsai
> A beautifully random bonsai tree generator.
> See also: `cmatrix`.
> More information: <https://gitlab.com/jallbrit/cbonsai>.
- Generate a bonsai in live mode:

View File

@@ -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: <https://manned.org/cmatrix>.
- Enable [a]synchronous scrolling:

18
tldr/doom Normal file
View File

@@ -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: <https://doomwiki.org/wiki/Source_port_parameters>.
- Host co-op multiplayer:
`{{zandronum-server}} -iwad {{wad}} +map {{map}} -host {{players}}`
- Host deathmatch multiplayer:
`{{zandronum-server}} -iwad {{wad}} +map {{map}} -host {{players}} -deathmatch`

View File

@@ -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}}`

View File

@@ -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: <https://manned.org/find>.
- Find files by extension:

View File

@@ -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: <https://github.com/ifd3f/caligula>.
- Flash an ISO to a drive:

View File

@@ -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}}`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dd
> Convert and copy a file.
> See also: `caligula`.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html>.
- Make a bootable USB drive from an isohybrid file (such as `archlinux-xxx.iso`) and show the progress:

33
tldr/linux/koji Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# koji
> Interact with kojihub.
> More information: <https://docs.pagure.org/koji>.
- 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`

View File

@@ -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: <https://docs.waydro.id>.
> More information: <https://docs.waydro.id/usage/waydroid-command-line-options>.
- Start Waydroid:
`waydroid`
`waydroid show-full-ui`
- Initialize Waydroid (required on first run or after reinstalling Android):

42
tldr/nb Normal file
View File

@@ -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: <https://github.com/xwmx/nb#-help>.
- 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`

View File

@@ -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: <https://www.gnu.org/software/coreutils/manual/html_node/rm-invocation.html>.
- Remove specific files:

View File

@@ -6,16 +6,21 @@ source: https://github.com/tldr-pages/tldr.git
# tldr-lint
> Lint and format `tldr` pages.
> More information: <https://github.com/tldr-pages/tldr-lint>.
> Note: `tldrl` can be used as an alias for `tldr-lint`.
> More information: <https://github.com/tldr-pages/tldr-lint#usage>.
- 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}}`

View File

@@ -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: <https://manned.org/traceroute>.
- Traceroute to a host:

View File

@@ -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}}`

42
tldr/windows/cleanmgr Normal file
View File

@@ -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: <https://learn.microsoft.com/windows-server/administration/windows-commands/cleanmgr>.
- 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 /?`