Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-13 00:20:17 +00:00
parent 8b085234e1
commit 366b13ffac
31 changed files with 160 additions and 38 deletions

38
tldr/bun-add Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun add
> Modern JavaScript runtime, package manager, bundler, and test runner.
> Note: `a` can be used as an alias for `add`.
> More information: <https://bun.com/docs>.
- Install a single package:
`bun add {{package}}`
- Install multiple packages:
`bun add {{package1 package2 ...}}`
- Install from a Git repository:
`bun add {{git_url}}`
- Install a specific version:
`bun add {{package}}@{{version}}`
- Install from local file or directory:
`bun add file:{{path/to/file_or_directory}}`
- Add a dev dependency:
`bun add {{[-d|--dev]}} {{package}}`
- Add a package globally:
`bun add {{[-g|--global]}} {{package}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# chronyc
> Query the Chrony NTP daemon.
> More information: <https://chrony-project.org/doc/4.6.1/chronyc.html>.
> More information: <https://chrony-project.org/doc/latest/chronyc.html>.
- Start `chronyc` in interactive mode:

42
tldr/dzdo Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# dzdo
> Execute privileged commands as root or another user via Active Directory roles.
> Similar to `sudo` but integrated with Delinea; supports Ansible become plugin.
> More information: <https://docs.delinea.com/online-help/server-suite/commandref/centrify-command-reference-2025.pdf#page=102>.
- Run a command with elevated privileges:
`dzdo {{command}}`
- Run a command as another user:
`dzdo -u {{user}} {{command}}`
- Edit a file with elevated privileges using the default editor:
`dzdo -e {{path/to/file}}`
- Launch an interactive login shell with elevated privileges:
`dzdo -i`
- Launch the default shell with elevated privileges:
`dzdo -s`
- List allowed commands for the current user:
`dzdo -l`
- Validate and update authentication timestamp:
`dzdo -v`
- Display version:
`dzdo -V`

View File

@@ -25,6 +25,18 @@ source: https://github.com/tldr-pages/tldr.git
`git bisect skip`
- Start a bisect session considering only commits that modify a specific file or directory:
`git bisect start {{bad_commit}} {{good_commit}} -- {{path/to/file_or_directory}}`
- Automate the bisect process using a test script that `exit`s with 0 for "good" and non-zero for "bad" (script arguments are optional):
`git bisect run {{path/to/test_script}} {{script_arguments}}`
- Display a log of what has been done so far:
`git bisect log`
- Show remaining candidate commits to be checked:
`git bisect visualize`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# jarsigner
> Sign and verify Java archive (JAR) files.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/jarsigner.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/jarsigner.html>.
- Sign a JAR file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# java
> Java application launcher.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/java.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/java.html>.
- Execute a Java `.class` file that contains a main method by using just the class name:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# javac
> Java application compiler.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/javac.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/javac.html>.
- Compile a `.java` file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# javadoc
> Generate Java API documentation in HTML format from source code.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/javadoc.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/javadoc.html>.
- Generate documentation for Java source code and save the result in a directory:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# javap
> Disassemble class files and list them.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/javap.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/javap.html>.
- Disassemble and list one or more `.class` files:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# jdeps
> Java class dependency analyzer.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/jdeps.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/jdeps.html>.
- Analyze the dependencies of a `.jar` or `.class` file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# jmap
> Java memory map tool.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/jmap.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/jmap.html>.
- Print shared object mappings for a Java process (output like pmap):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# jps
> Show JVM process status of current user.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/jps.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/jps.html>.
- List all JVM processes:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# keytool
> A certificate management utility included with Java.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/keytool.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/keytool.html>.
- Create a keystore:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# authconfig
> Configure system authentication resources.
> More information: <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system-level_authentication_guide/authconfig-install>.
> More information: <https://manned.org/authconfig>.
- Display the current configuration (or dry run):

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage serial bus CEC connections.
> See also: `cec-ctl`.
> More information: <https://manned.org/man/cec-client>.
> More information: <https://manned.org/cec-client>.
- List all CEC adapters:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# fbset
> Show and modify frame buffer device settings.
> More information: <https://manned.org/man/fbset.1>.
> More information: <https://manned.org/fbset.1>.
- Show current framebuffer settings:

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> Allows you to run graphical commands which need root access without having to run an X terminal emulator.
> Note: This command is deprecated in favor of commands like `pkexec`, and is no longer maintained.
> See also: `gksudo`.
> More information: <https://manned.org/man/gksudo>.
> More information: <https://manned.org/gksu>.
- Run a command as a specific user:

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> Allows you to run graphical commands which need root access without having to run an X terminal emulator.
> Note: This command is deprecated in favor of commands like `pkexec`, and is no longer maintained.
> See also: `gksu`.
> More information: <https://manned.org/man/gksudo>.
> More information: <https://manned.org/gksudo>.
- Run a command as a specific user:

26
tldr/linux/koji-call Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# koji call
> Execute an arbitrary XML-RPC call.
> Eg: build function declaration is build(src, target, opts=None, priority=None, channel=None).
> More information: <https://koji.fedoraproject.org/koji/api>.
- Call build function with scratch option:
`koji call build '"{{git+https://src.fedoraproject.org/rpms/vim.git#e847a50297a216229050bf4db3d06a139104e7cf}}"' \"{{target}}\" --kwargs '{"opts":{"scratch": True}}'`
- Call build function with arch_override option:
`koji call build '"{{git+https://src.fedoraproject.org/rpms/vim.git#e847a50297a216229050bf4db3d06a139104e7cf}}"' \"{{target}}\" --kwargs '{"opts":{"arch_override":"sw_64"}}'`
- Call build function on `default` channel:
`koji call build '"{{git+https://src.fedoraproject.org/rpms/vim.git#e847a50297a216229050bf4db3d06a139104e7cf}}"' \"{{target}}\" --kwargs '{"channel":"default"}'`
- Display help:
`koji call --help`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> List IP routing in a human readable format.
> See also: `ip route`, `route`.
> More information: <https://manned.org/man/routel>.
> More information: <https://manned.org/routel>.
- Display the default routing table:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sulogin
> Log in as root during single-user mode.
> More information: <https://manned.org/man/sulogin>.
> More information: <https://manned.org/sulogin>.
- Start `sulogin` on the default console:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# vgcfgrestore
> Restore volume group configuration (not user data) from a text back up file produced by `vgcfgbackup`.
> Restore volume group configuration (not user data) from a text back up file produced by `vgcfgbackup`.
> More information: <https://manned.org/vgcfgrestore>.
- Restore VG metadata from last backup.:

View File

@@ -5,29 +5,25 @@ source: https://github.com/tldr-pages/tldr.git
---
# musescore
> MuseScore 3 sheet music editor.
> MuseScore sheet music editor.
> See also: `lilypond`.
> More information: <https://musescore.org/en/handbook/4/command-line-options>.
- Use a specific audio driver:
`musescore --audio-driver {{jack|alsa|portaudio|pulse}}`
> More information: <https://handbook.musescore.org/appendix/command-line-usage>.
- Set the MP3 output bitrate in kbit/s:
`musescore --bitrate {{bitrate}}`
`musescore {{[-b|--bitrate]}} {{bitrate}}`
- Start MuseScore in debug mode:
`musescore --debug`
`musescore {{[-d|--debug]}}`
- Enable experimental features, such as layers:
`musescore --experimental`
`musescore {{[-e|--experimental]}}`
- Export the given file to the specified output file. The file type depends on the given extension:
`musescore --export-to {{output_file}} {{input_file}}`
`musescore {{[-o|--export-to]}} {{output_file}} {{input_file}}`
- Print a diff between the given scores:
@@ -35,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git
- Specify a MIDI import operations file:
`musescore --midi-operations {{path/to/file}}`
`musescore {{[-M|--midi-operations]}} {{path/to/file}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nasm
> The Netwide Assembler, a portable 80x86 assembler.
> More information: <https://www.nasm.us/xdoc/2.16.03/html/nasmdoc2.html>.
> More information: <https://www.nasm.us/xdoc/3.01/html/nasmdoc2.html>.
- Assemble `source.asm` into a binary file `source`, in the (default) raw binary format:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Equivalent to running `npm install` followed by `npm test`.
> Note: `it` can be used as shorthand for `install-test`.
> More information: <https://docs.npmjs.com/cli/v8/commands/npm-install-test>.
> More information: <https://docs.npmjs.com/cli/npm-install-test>.
- Install all dependencies and then run tests:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A large language model runner.
> For a list of available models, see <https://ollama.com/library>.
> More information: <https://github.com/ollama/ollama>.
> More information: <https://github.com/ollama/ollama#cli-reference>.
- Start the daemon required to run other commands:
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- List downloaded models:
`ollama list`
`ollama {{[ls|list]}}`
- Pull a specific model:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# p4
> Perforce Version Control System.
> More information: <https://ftp.perforce.com/perforce/r16.2/doc/manuals/cmdref/>.
> More information: <https://help.perforce.com/helix-core/server-apps/cmdref/current/Content/CmdRef/commands.html>.
- Log in to the Perforce service:

View File

@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run tests without capturing output:
`pytest --capture=no`
- Run tests with increased [v]erbosity, displaying individual test names:
`pytest -v`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Returns the serialVersionUID of classes.
> It does not set a security manager by default.
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/serialver.html>.
> More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/serialver.html>.
- Display the serialVersionUID of a class:

View File

@@ -22,8 +22,12 @@ source: https://github.com/tldr-pages/tldr.git
- Preview the files that will be deleted and other changes that will be made before actually performing the clean-up operation:
`bleachbit_console.exe --preview {{--preset|cleaner1.option1 cleaner2.* ...}}`
`bleachbit_console.exe --preview {{cleaner1.option1 cleaner2.* ...}}`
- Perform the clean-up operation and delete files:
`bleachbit_console.exe --clean {{--preset|cleaner1.option1 cleaner2.* ...}}`
`bleachbit_console.exe --clean {{cleaner1.option1 cleaner2.* ...}}`
- Select the same options as in the GUI and add more to it:
`bleachbit_console.exe --preview --preset {{cleaner1.option1 cleaner2.* ...}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# zegrep
> Find extended `regex` patterns in compressed files using `egrep`.
> More information: <https://www.unix.com/man-page/freebsd/1/zegrep/>.
> More information: <https://manned.org/zegrep>.
- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive):