From 366b13ffac81ce238ebbd6c50ff704a67d6f3082 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 13 Nov 2025 00:20:17 +0000 Subject: [PATCH] Update cheatsheets --- tldr/bun-add | 38 ++++++++++++++++++++++++++++++ tldr/chronyc | 2 +- tldr/dzdo | 42 ++++++++++++++++++++++++++++++++++ tldr/git-bisect | 12 ++++++++++ tldr/jarsigner | 2 +- tldr/java | 2 +- tldr/javac | 2 +- tldr/javadoc | 2 +- tldr/javap | 2 +- tldr/jdeps | 2 +- tldr/jmap | 2 +- tldr/jps | 2 +- tldr/keytool | 2 +- tldr/linux/authconfig | 2 +- tldr/linux/cec-client | 2 +- tldr/linux/fbset | 2 +- tldr/linux/gksu | 2 +- tldr/linux/gksudo | 2 +- tldr/linux/koji-call | 26 +++++++++++++++++++++ tldr/linux/routel | 2 +- tldr/linux/sulogin | 2 +- tldr/linux/vgcfgrestore | 2 +- tldr/musescore | 18 ++++++--------- tldr/nasm | 2 +- tldr/npm-install-test | 2 +- tldr/ollama | 4 ++-- tldr/p4 | 2 +- tldr/pytest | 4 ++++ tldr/serialver | 2 +- tldr/windows/bleachbit_console | 8 +++++-- tldr/zegrep | 2 +- 31 files changed, 160 insertions(+), 38 deletions(-) create mode 100644 tldr/bun-add create mode 100644 tldr/dzdo create mode 100644 tldr/linux/koji-call diff --git a/tldr/bun-add b/tldr/bun-add new file mode 100644 index 00000000..c8bd6615 --- /dev/null +++ b/tldr/bun-add @@ -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: . + +- 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}}` diff --git a/tldr/chronyc b/tldr/chronyc index 4aefe489..3ff82018 100644 --- a/tldr/chronyc +++ b/tldr/chronyc @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # chronyc > Query the Chrony NTP daemon. -> More information: . +> More information: . - Start `chronyc` in interactive mode: diff --git a/tldr/dzdo b/tldr/dzdo new file mode 100644 index 00000000..1beb262e --- /dev/null +++ b/tldr/dzdo @@ -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: . + +- 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` diff --git a/tldr/git-bisect b/tldr/git-bisect index 53591bef..7103149c 100644 --- a/tldr/git-bisect +++ b/tldr/git-bisect @@ -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` diff --git a/tldr/jarsigner b/tldr/jarsigner index ef1c6686..ede7fa13 100644 --- a/tldr/jarsigner +++ b/tldr/jarsigner @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # jarsigner > Sign and verify Java archive (JAR) files. -> More information: . +> More information: . - Sign a JAR file: diff --git a/tldr/java b/tldr/java index 563df2be..05a8ec7a 100644 --- a/tldr/java +++ b/tldr/java @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # java > Java application launcher. -> More information: . +> More information: . - Execute a Java `.class` file that contains a main method by using just the class name: diff --git a/tldr/javac b/tldr/javac index 1fdebcaa..090dafbb 100644 --- a/tldr/javac +++ b/tldr/javac @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # javac > Java application compiler. -> More information: . +> More information: . - Compile a `.java` file: diff --git a/tldr/javadoc b/tldr/javadoc index 044b54cd..89118dd2 100644 --- a/tldr/javadoc +++ b/tldr/javadoc @@ -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: . +> More information: . - Generate documentation for Java source code and save the result in a directory: diff --git a/tldr/javap b/tldr/javap index ddf90ae9..fbd76a77 100644 --- a/tldr/javap +++ b/tldr/javap @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # javap > Disassemble class files and list them. -> More information: . +> More information: . - Disassemble and list one or more `.class` files: diff --git a/tldr/jdeps b/tldr/jdeps index dcf7a474..fef5abb0 100644 --- a/tldr/jdeps +++ b/tldr/jdeps @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # jdeps > Java class dependency analyzer. -> More information: . +> More information: . - Analyze the dependencies of a `.jar` or `.class` file: diff --git a/tldr/jmap b/tldr/jmap index 35407b2c..66843b70 100644 --- a/tldr/jmap +++ b/tldr/jmap @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # jmap > Java memory map tool. -> More information: . +> More information: . - Print shared object mappings for a Java process (output like pmap): diff --git a/tldr/jps b/tldr/jps index 620c4529..184b6200 100644 --- a/tldr/jps +++ b/tldr/jps @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # jps > Show JVM process status of current user. -> More information: . +> More information: . - List all JVM processes: diff --git a/tldr/keytool b/tldr/keytool index 226adb49..6d3a18fb 100644 --- a/tldr/keytool +++ b/tldr/keytool @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # keytool > A certificate management utility included with Java. -> More information: . +> More information: . - Create a keystore: diff --git a/tldr/linux/authconfig b/tldr/linux/authconfig index b43861b6..dda8cbb0 100644 --- a/tldr/linux/authconfig +++ b/tldr/linux/authconfig @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # authconfig > Configure system authentication resources. -> More information: . +> More information: . - Display the current configuration (or dry run): diff --git a/tldr/linux/cec-client b/tldr/linux/cec-client index bcb91224..8267e87d 100644 --- a/tldr/linux/cec-client +++ b/tldr/linux/cec-client @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage serial bus CEC connections. > See also: `cec-ctl`. -> More information: . +> More information: . - List all CEC adapters: diff --git a/tldr/linux/fbset b/tldr/linux/fbset index 8c93230d..825288da 100644 --- a/tldr/linux/fbset +++ b/tldr/linux/fbset @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # fbset > Show and modify frame buffer device settings. -> More information: . +> More information: . - Show current framebuffer settings: diff --git a/tldr/linux/gksu b/tldr/linux/gksu index 370043f5..e08e1a4f 100644 --- a/tldr/linux/gksu +++ b/tldr/linux/gksu @@ -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: . +> More information: . - Run a command as a specific user: diff --git a/tldr/linux/gksudo b/tldr/linux/gksudo index 02c8d610..538324f1 100644 --- a/tldr/linux/gksudo +++ b/tldr/linux/gksudo @@ -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: . +> More information: . - Run a command as a specific user: diff --git a/tldr/linux/koji-call b/tldr/linux/koji-call new file mode 100644 index 00000000..d83fde91 --- /dev/null +++ b/tldr/linux/koji-call @@ -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: . + +- 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` diff --git a/tldr/linux/routel b/tldr/linux/routel index 8a6a8c63..0cc95bc6 100644 --- a/tldr/linux/routel +++ b/tldr/linux/routel @@ -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: . +> More information: . - Display the default routing table: diff --git a/tldr/linux/sulogin b/tldr/linux/sulogin index 00fbe9d2..b3bfb05d 100644 --- a/tldr/linux/sulogin +++ b/tldr/linux/sulogin @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sulogin > Log in as root during single-user mode. -> More information: . +> More information: . - Start `sulogin` on the default console: diff --git a/tldr/linux/vgcfgrestore b/tldr/linux/vgcfgrestore index 1e0864af..f82b6f37 100644 --- a/tldr/linux/vgcfgrestore +++ b/tldr/linux/vgcfgrestore @@ -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: . - Restore VG metadata from last backup.: diff --git a/tldr/musescore b/tldr/musescore index 604cd179..5c223629 100644 --- a/tldr/musescore +++ b/tldr/musescore @@ -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: . - -- Use a specific audio driver: - -`musescore --audio-driver {{jack|alsa|portaudio|pulse}}` +> More information: . - 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}}` diff --git a/tldr/nasm b/tldr/nasm index 6e78f1bd..1023ba27 100644 --- a/tldr/nasm +++ b/tldr/nasm @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nasm > The Netwide Assembler, a portable 80x86 assembler. -> More information: . +> More information: . - Assemble `source.asm` into a binary file `source`, in the (default) raw binary format: diff --git a/tldr/npm-install-test b/tldr/npm-install-test index a8e8344d..6b6ed422 100644 --- a/tldr/npm-install-test +++ b/tldr/npm-install-test @@ -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: . +> More information: . - Install all dependencies and then run tests: diff --git a/tldr/ollama b/tldr/ollama index 49cef9da..b1c93cd8 100644 --- a/tldr/ollama +++ b/tldr/ollama @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A large language model runner. > For a list of available models, see . -> More information: . +> More information: . - 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: diff --git a/tldr/p4 b/tldr/p4 index d464c41a..80cd71f5 100644 --- a/tldr/p4 +++ b/tldr/p4 @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # p4 > Perforce Version Control System. -> More information: . +> More information: . - Log in to the Perforce service: diff --git a/tldr/pytest b/tldr/pytest index d8a9f1b7..ccfc0ebb 100644 --- a/tldr/pytest +++ b/tldr/pytest @@ -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` diff --git a/tldr/serialver b/tldr/serialver index cf545e78..5a22678c 100644 --- a/tldr/serialver +++ b/tldr/serialver @@ -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: . +> More information: . - Display the serialVersionUID of a class: diff --git a/tldr/windows/bleachbit_console b/tldr/windows/bleachbit_console index 92368055..270306e1 100644 --- a/tldr/windows/bleachbit_console +++ b/tldr/windows/bleachbit_console @@ -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.* ...}}` diff --git a/tldr/zegrep b/tldr/zegrep index 27aea01a..207b2338 100644 --- a/tldr/zegrep +++ b/tldr/zegrep @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # zegrep > Find extended `regex` patterns in compressed files using `egrep`. -> More information: . +> More information: . - Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive):