Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-04 00:24:03 +00:00
parent 2062b222e5
commit 0c1613a18e
7 changed files with 55 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# chainctl
> The official CLI for Chainguard.
> More information: <https://edu.chainguard.dev/chainguard/chainctl>.
> More information: <https://edu.chainguard.dev/chainguard/chainctl/chainctl-docs/chainctl/>.
- Authenticate to the Chainguard Platform:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Easily create, edit and run self-contained source-only Java programs.
> See also: `java`.
> More information: <https://www.jbang.dev/documentation/guide/latest/cli/jbang.html>.
> More information: <https://www.jbang.dev/documentation/jbang/latest/cli/jbang.html>.
- Initialize a simple Java class:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# f5fpc
> A proprietary commercial SSL VPN client by BIG-IP Edge.
> More information: <https://techdocs.f5.com/kb/en-us/products/big-ip_apm/manuals/product/apm-client-configuration-11-4-0/4.html>.
> More information: <https://my.f5.com/manage/s/article/K47922841>.
- Open a new VPN connection:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# numlockx
> Control the number lock key status in X11 sessions.
> More information: <https://www.mike-devlin.com/linux/README-numlockx.htm>.
> More information: <https://manned.org/numlockx>.
- Show the current number lock status:

21
tldr/linux/partclone Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# partclone
> Copy and restore partitions to and from an image while disregarding empty blocks.
> More information: <https://manned.org/a2disconf.8>.
- Copy a partition into an image:
`sudo partclone.{{ext4|btrfs|fat32|xfs|...}} {{[-c|--clone]}} {{[-s|--source]}} {{/dev/sdXY}} {{[-o|--output]}} {{path/to/backup.img}}`
- Restore a partition from an image:
`sudo partclone.{{ext4|btrfs|fat32|xfs|...}} {{[-c|--clone]}} {{[-s|--source]}} {{path/to/backup.img}} {{[-o|--output]}} {{/dev/sdXY}}`
- Display help:
`partclone.{{ext4|btrfs|fat32|xfs|...}} {{[-h|--help]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# p4
> Perforce Version Control System.
> More information: <https://www.perforce.com/manuals/cmdref>.
> More information: <https://ftp.perforce.com/perforce/r16.2/doc/manuals/cmdref/>.
- Log in to the Perforce service:

29
tldr/whence Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# whence
> A Zsh builtin to indicate how a command would be interpreted.
> More information: <https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html#index-whence>.
- Interpret `command`, with expansion if defined as an `alias` (similar to the `command -v` builtin):
`whence "{{command}}"`
- Display type of `command`, with location if defined as a function, or binary (equivalent to the `type` and `command -V` builtins):
`whence -v "{{command}}"`
- Same as above, except display content of shell functions instead of location (equivalent to `which` builtin):
`whence -c "{{command}}"`
- Same as above, but show all occurrences on command path (equivalent to the `where` builtin):
`whence -ca "{{command}}"`
- Search only the `PATH` for `command`, ignoring builtins, aliases or shell functions (equivalent to the `where` command):
`whence -p "{{command}}"`