Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-10 00:18:18 +00:00
parent fbe9a1abf2
commit d2ae2c7f65
19 changed files with 103 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cmatrix # cmatrix
> Shows a scrolling Matrix like screen in the terminal. > Shows a scrolling Matrix like screen in the terminal.
> More information: <https://github.com/abishekvashok/cmatrix>. > More information: <https://manned.org/cmatrix>.
- Enable [a]synchronous scrolling: - Enable [a]synchronous scrolling:
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Use a screen [u]pdate delay of 100 centiseconds (1 second): - Use a screen [u]pdate delay of 100 centiseconds (1 second):
`cmatrix -u 100` `cmatrix -u 100`
- Use [s]creensaver mode where the first keystroke exits:
`cmatrix -s`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Apply a Dev Container Template to a workspace: - Apply a Dev Container Template to a workspace:
`devcontainer templates apply --template-id {{template_id}} --template-args {{template_args}} --workspace-folder {{path/to/workspace}}` `devcontainer templates apply {{[-t|--template-id]}} {{template_id}} {{[-a|--template-args]}} {{template_args}} {{[-w|--workspace-folder]}} {{path/to/workspace}}`
- Execute a command on a running Dev Container in the current workspace: - Execute a command on a running Dev Container in the current workspace:

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- Destroy a database: - Destroy a database:
`dropdb {{dbname}}` `dropdb {{database_name}}`
- Request a verification prompt before any destructive actions: - Request a verification prompt before any destructive actions:
@@ -19,11 +19,11 @@ source: https://github.com/tldr-pages/tldr.git
- Connect with a specific username and destroy a database: - Connect with a specific username and destroy a database:
`dropdb {{[-U|--username]}} {{username}} {{dbname}}` `dropdb {{[-U|--username]}} {{username}} {{database_name}}`
- Force a password prompt before connecting to the database: - Force a password prompt before connecting to the database:
`dropdb {{[-W|--password]}} {{dbname}}` `dropdb {{[-W|--password]}} {{database_name}}`
- Suppress a password prompt before connecting to the database: - Suppress a password prompt before connecting to the database:

View File

@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Build a site on your local IP: - Build a site on your local IP:
`hugo server --bind {{local_ip}} --baseURL {{http://local_ip}}` `hugo server --bind {{local_ip}} {{[-b|--baseURL]}} {{http://local_ip}}`
- Build a site to a given directory: - Build a site to a given directory:

View File

@@ -5,9 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# initdb # initdb
> Create a PostgreSQL database on disk. > Create a PostgreSQL database cluster on disk.
> More information: <https://www.postgresql.org/docs/current/app-initdb.html>. > More information: <https://www.postgresql.org/docs/current/app-initdb.html>.
- Create a database at `/usr/local/var/postgres`: - Create a database cluster at `/usr/local/var/postgres`:
`initdb {{[-D|--pgdata]}} /usr/local/var/postgres` `initdb {{[-D|--pgdata]}} /usr/local/var/postgres`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# eject # eject
> Eject cds, floppy disks and tape drives. > Eject CDs, floppy disks, tape drives, and USB sticks.
> More information: <https://manned.org/eject>. > More information: <https://manned.org/eject>.
- Display the default device: - Display the default device:

View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl freeze
> Freeze one or more units.
> Frozen units can be resumed with `systemctl thaw`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#freeze%20PATTERN%E2%80%A6>.
- Freeze a specific unit:
`systemctl freeze {{unit}}`
- Freeze multiple units:
`systemctl freeze {{unit1 unit2 ...}}`
- Freeze all running units:
`systemctl freeze '*'`

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl suspend
> Suspend the system.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#suspend>.
- Suspend the system immediately:
`systemctl suspend`
- Schedule a suspend after a 5 minute delay:
`sleep 300 && systemctl suspend`
- Suspend the system and then hibernate after a delay:
`systemctl hybrid-sleep`

22
tldr/linux/systemctl-thaw Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl thaw
> Thaw (resume) one or more frozen units.
> Units can be frozen with `systemctl freeze`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#thaw%20PATTERN%E2%80%A6>.
- Thaw a specific unit:
`systemctl thaw {{unit}}`
- Thaw multiple units:
`systemctl thaw {{unit1 unit2 ...}}`
- Thaw all currently frozen units:
`systemctl thaw '*'`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> The Chocolatey package manager. > The Chocolatey package manager.
> Some subcommands such as `install` have their own usage documentation. > Some subcommands such as `install` have their own usage documentation.
> More information: <https://chocolatey.org>. > More information: <https://docs.chocolatey.org/en-us/choco/commands/>.
- Execute a Chocolatey command: - Execute a Chocolatey command:
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
- Display help: - Display help:
`choco -?` `choco {{[-h|--help]}}`
- Display help for a specific command: - Display help for a specific command:
`choco {{command}} -?` `choco {{command}} {{[-h|--help]}}`
- Display version: - Display version:

View File

@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
- Display a specific source and its API key: - Display a specific source and its API key:
`choco apikey --source "{{source_url}}"` `choco apikey {{[-s|--source]}} "{{source_url}}"`
- Set an API key for a source: - Set an API key for a source:
`choco apikey --source "{{source_url}}" --key "{{api_key}}"` `choco apikey {{[-s|--source]}} "{{source_url}}" {{[-k|--api-key]}} "{{api_key}}"`
- Remove an API key for a source: - Remove an API key for a source:
`choco apikey --source "{{source_url}}" --remove` `choco apikey {{[-s|--source]}} "{{source_url}}" --remove`

View File

@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
- Display information for a local package only: - Display information for a local package only:
`choco info {{package}} --local-only` `choco info {{package}} {{[-l|--local-only]}}`
- Specify a custom source to receive packages information from: - Specify a custom source to receive packages information from:
`choco info {{package}} --source {{source_url|alias}}` `choco info {{package}} {{[-s|--source]}} {{source_url|alias}}`
- Provide a username and password for authentication: - Provide a username and password for authentication:
`choco info {{package}} --user {{username}} --password {{password}}` `choco info {{package}} {{[-u|--user]}} {{username}} {{[-p|--password]}} {{password}}`

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Display a list including local programs: - Display a list including local programs:
`choco list --include-programs` `choco list {{[-i|--include-programs]}}`
- Display only approved packages: - Display only approved packages:
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Specify a custom source to display packages from: - Specify a custom source to display packages from:
`choco list --source {{source_url|alias}}` `choco list {{[-s|--source]}} {{source_url|alias}}`
- Provide a username and password for authentication: - Provide a username and password for authentication:

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new package in a custom output directory: - Create a new package in a custom output directory:
`choco new {{package}} --output-directory {{path/to/directory}}` `choco new {{package}} {{[--out|--output-directory]}} {{path/to/directory}}`
- Create a new package with specific 32-bit and 64-bit installer URLs: - Create a new package with specific 32-bit and 64-bit installer URLs:

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Package a NuGet specification to a specific directory: - Package a NuGet specification to a specific directory:
`choco pack {{path o\specification_file}} --output-directory {{path o\output_directory}}` `choco pack {{path o\specification_file}} {{[--out|--output-directory]}} {{path o\output_directory}}`

View File

@@ -15,12 +15,12 @@ source: https://github.com/tldr-pages/tldr.git
- Pin a package at its current version: - Pin a package at its current version:
`choco pin add --name {{package}}` `choco pin add {{[-n|--name]}} {{package}}`
- Pin a package at a specific version: - Pin a package at a specific version:
`choco pin add --name {{package}} --version {{version}}` `choco pin add {{[-n|--name]}} {{package}} --version {{version}}`
- Remove a pin for a specific package: - Remove a pin for a specific package:
`choco pin remove --name {{package}}` `choco pin remove {{[-n|--name]}} {{package}}`

View File

@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
- Push a compiled `nupkg` to the specified feed: - Push a compiled `nupkg` to the specified feed:
`choco push --source {{https://push.chocolatey.org/}}` `choco push {{[-s|--source]}} {{https://push.chocolatey.org/}}`
- Push a compiled `nupkg` to the specified feed with a timeout in seconds (default is 2700): - Push a compiled `nupkg` to the specified feed with a timeout in seconds (default is 2700):
`choco push --source {{https://push.chocolatey.org/}} --execution-timeout {{500}}` `choco push {{[-s|--source]}} {{https://push.chocolatey.org/}} {{[--timeout|--execution-timeout]}} {{500}}`

View File

@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
- Only include exact matches in the results: - Only include exact matches in the results:
`choco search {{query}} --exact` `choco search {{query}} {{[-e|--exact]}}`
- Confirm all prompts automatically: - Confirm all prompts automatically:
`choco search {{query}} --yes` `choco search {{query}} {{[-y|--yes]}}`
- Specify a custom source to search for packages in: - Specify a custom source to search for packages in:
`choco search {{query}} --source {{source_url|alias}}` `choco search {{query}} {{[-s|--source]}} {{source_url|alias}}`
- Provide a username and password for authentication: - Provide a username and password for authentication:
`choco search {{query}} --user {{username}} --password {{password}}` `choco search {{query}} {{[-u|--user]}} {{username}} {{[-p|--password]}} {{password}}`

View File

@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
- Add a new package source: - Add a new package source:
`choco source add --name {{name}} --source {{url}}` `choco source add {{[-n|--name]}} {{name}} {{[-s|--source]}} {{url}}`
- Add a new package source with credentials: - Add a new package source with credentials:
`choco source add --name {{name}} --source {{url}} --user {{username}} --password {{password}}` `choco source add {{[-n|--name]}} {{name}} {{[-s|--source]}} {{url}} {{[-u|--user]}} {{username}} {{[-p|--password]}} {{password}}`
- Add a new package source with a client certificate: - Add a new package source with a client certificate:
`choco source add --name {{name}} --source {{url}} --cert {{path o `choco source add {{[-n|--name]}} {{name}} {{[-s|--source]}} {{url}} --cert {{path o