From f6d34d521bad22096fd9ca32ca3939d1037b604b Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 27 Nov 2025 00:20:32 +0000 Subject: [PATCH] Update cheatsheets --- tldr/couchdb | 2 +- tldr/decaffeinate | 2 +- tldr/dep | 2 +- tldr/drupal | 3 ++- tldr/elm | 2 +- tldr/erl | 2 +- tldr/etcd | 2 +- tldr/ghost | 2 +- tldr/gitstats | 6 +++++- tldr/ipscan | 2 +- tldr/jmeter | 10 +++++----- tldr/k3d | 4 ++-- tldr/kitex | 2 +- tldr/kosmorro | 10 +++++----- tldr/kotlin | 2 +- tldr/kotlinc | 2 +- tldr/latex | 2 +- tldr/lein | 2 +- tldr/linux/nft-monitor | 25 +++++++++++++++++++++++++ tldr/linux/systemctl-kexec | 17 +++++++++++++++++ tldr/lualatex | 2 +- tldr/mh_copyright | 2 +- tldr/mh_metric | 2 +- tldr/nu | 4 ++-- tldr/nyxt | 2 +- tldr/openssl | 2 +- tldr/php-yii | 2 +- tldr/phpize | 2 +- tldr/postcss | 12 ++++++------ tldr/prqlc | 2 +- tldr/redis-server | 2 +- tldr/scala | 8 ++++---- tldr/standard | 2 +- tldr/swift | 4 ++-- tldr/tabula | 14 +++++++------- tldr/timidity | 4 ++-- tldr/todo | 4 ++-- tldr/virtualenvwrapper | 2 +- tldr/webpack | 6 +++--- 39 files changed, 113 insertions(+), 66 deletions(-) create mode 100644 tldr/linux/nft-monitor create mode 100644 tldr/linux/systemctl-kexec diff --git a/tldr/couchdb b/tldr/couchdb index 2c410d5d..578b7949 100644 --- a/tldr/couchdb +++ b/tldr/couchdb @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # couchdb > Command-line interface for Apache CouchDB database server. -> More information: . +> More information: . - Start CouchDB: diff --git a/tldr/decaffeinate b/tldr/decaffeinate index 717608cb..c2e32d07 100644 --- a/tldr/decaffeinate +++ b/tldr/decaffeinate @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # decaffeinate > Move your CoffeeScript source to modern JavaScript. -> More information: . +> More information: . - Convert a CoffeeScript file to JavaScript: diff --git a/tldr/dep b/tldr/dep index 660761bc..ea5d7736 100644 --- a/tldr/dep +++ b/tldr/dep @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Deploy PHP applications. > Note: The Go command `dep` with the same name is deprecated and archived. -> More information: . +> More information: . - Interactively initialize deployer in the local path (use a framework template with `--template=template`): diff --git a/tldr/drupal b/tldr/drupal index e7d7f42d..6c961ce0 100644 --- a/tldr/drupal +++ b/tldr/drupal @@ -7,7 +7,8 @@ source: https://github.com/tldr-pages/tldr.git > Generate boilerplate code, interact with and debug Drupal projects. > Some subcommands such as `check` have their own usage documentation. -> More information: . +> `drupal` has been deprecated. Use `drush` instead. +> More information: . - Install a module: diff --git a/tldr/elm b/tldr/elm index 025017b4..5d69bca9 100644 --- a/tldr/elm +++ b/tldr/elm @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # elm > Compile and run Elm source files. -> More information: . +> More information: . - Initialize an Elm project, generates an elm.json file: diff --git a/tldr/erl b/tldr/erl index 49ed8da7..5a0b2be7 100644 --- a/tldr/erl +++ b/tldr/erl @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # erl > Run and manage programs in the Erlang programming language. -> More information: . +> More information: . - Compile and run sequential Erlang program as a common script and then exit: diff --git a/tldr/etcd b/tldr/etcd index dfb977cb..f2b4365c 100644 --- a/tldr/etcd +++ b/tldr/etcd @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # etcd > A distributed, reliable key-value store for the most critical data of a distributed system. -> More information: . +> More information: . - Start a single-node etcd cluster: diff --git a/tldr/ghost b/tldr/ghost index bedc77d8..e5cc344f 100644 --- a/tldr/ghost +++ b/tldr/ghost @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ghost > A blogging platform and headless CMS. -> More information: . +> More information: . - Install Ghost in the current directory: diff --git a/tldr/gitstats b/tldr/gitstats index 4c1642fa..c0e327d8 100644 --- a/tldr/gitstats +++ b/tldr/gitstats @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # gitstats > Git repository statistics generator. -> More information: . +> More information: . - Generate statistics for a local repository: @@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - View generated statistics in a web browser on Windows (PowerShell)/macOS/Linux: `{{Invoke-Item|open|xdg-open}} {{path/to/output_folder/index.html}}` + +- Display help: + +`gitstats {{[-h|--help]}}` diff --git a/tldr/ipscan b/tldr/ipscan index 9f82fb45..430941db 100644 --- a/tldr/ipscan +++ b/tldr/ipscan @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A fast network scanner designed to be simple to use. > Also known as Angry IP Scanner. -> More information: . +> More information: . - Scan a specific IP address: diff --git a/tldr/jmeter b/tldr/jmeter index 56e5c74d..88e4390f 100644 --- a/tldr/jmeter +++ b/tldr/jmeter @@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git # jmeter > Open source Java application designed for load testing functional behavior and measure performance. -> More information: . +> More information: . - Run a specific test plan in nongui mode: -`jmeter --nongui --testfile {{path/to/file.jmx}}` +`jmeter {{[-n|--nongui]}} {{[-t|--testfile]}} {{path/to/file.jmx}}` - Run a test plan in nongui mode using a specific log file: -`jmeter --nogui --testfile {{path/to/file.jmx}} --logfile {{path/to/logfile.jtl}}` +`jmeter {{[-n|--nongui]}} {{[-t|--testfile]}} {{path/to/file.jmx}} {{[-l|--logfile]}} {{path/to/logfile.jtl}}` - Run a test plan in nongui mode using a specific proxy: -`jmeter --nongui --testfile {{path/to/file.jmx}} --proxyHost {{127.0.0.1}} --proxyPort {{8888}}` +`jmeter {{[-n|--nongui]}} {{[-t|--testfile]}} {{path/to/file.jmx}} {{[-H-|--proxyHost]}} {{127.0.0.1}} {{[-P|--proxyPort]}} {{8888}}` - Run a test plan in nongui mode using a specific JMeter property: -`jmeter --jmeterproperty {{key}}='{{value}}' --nongui --testfile {{path/to/file.jmx}}` +`jmeter {{[-n|--nongui]}} {{[-t|--testfile]}} {{path/to/file.jmx}} {{[-J|--jmeterproperty]}} {{key}}='{{value}}'` diff --git a/tldr/k3d b/tldr/k3d index 4c383848..b4feb016 100644 --- a/tldr/k3d +++ b/tldr/k3d @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # k3d > A wrapper to easily create k3s clusters inside Docker. -> More information: . +> More information: . - Create a cluster: @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Import an image from Docker into a k3d cluster: -`k3d image import {{image_name}} --cluster {{cluster_name}}` +`k3d image import {{image_name}} {{[-c|--cluster]}} {{cluster_name}}` - Create a new registry: diff --git a/tldr/kitex b/tldr/kitex index f7a30616..e429e839 100644 --- a/tldr/kitex +++ b/tldr/kitex @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Code generation tool provided by the Go RPC framework Kitex. > Kitex accepts both thrift and protobuf IDLs, and supports generating a skeleton of a server side project. -> More information: . +> More information: . - Generate client codes when a project is in `$GOPATH`: diff --git a/tldr/kosmorro b/tldr/kosmorro index 2d0f4325..438f13b4 100644 --- a/tldr/kosmorro +++ b/tldr/kosmorro @@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git # kosmorro > Compute the ephemerides and the events for a date at a position on Earth. -> More information: . +> More information: . - Get ephemerides for Paris, France: -`kosmorro --latitude={{48.7996}} --longitude={{2.3511}}` +`kosmorro {{[-la|--latitude]}} 48.7996 {{[-lo|--longitude]}} 2.3511` - Get ephemerides for Paris, France, in the UTC+2 timezone: -`kosmorro --latitude={{48.7996}} --longitude={{2.3511}} --timezone={{2}}` +`kosmorro {{[-la|--latitude]}} 48.7996 {{[-lo|--longitude]}} 2.3511 {{[-t|--timezone]}} 2` - Get ephemerides for Paris, France, on June 9th, 2020: -`kosmorro --latitude={{48.7996}} --longitude={{2.3511}} --date={{2020-06-09}}` +`kosmorro {{[-la|--latitude]}} 48.7996 {{[-lo|--longitude]}} 2.3511 {{[-d|--date]}} 2020-06-09` - Generate a PDF (Note: TeXLive must be installed): -`kosmorro --format={{pdf}} --output={{path/to/file.pdf}}` +`kosmorro {{[-f|--format]}} pdf {{[-o|--output]}} {{path/to/file.pdf}}` diff --git a/tldr/kotlin b/tldr/kotlin index 42365379..6ab61b3b 100644 --- a/tldr/kotlin +++ b/tldr/kotlin @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kotlin > Kotlin application launcher. -> More information: . +> More information: . - Run a jar file: diff --git a/tldr/kotlinc b/tldr/kotlinc index 2b286190..41f271ac 100644 --- a/tldr/kotlinc +++ b/tldr/kotlinc @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kotlinc > Kotlin compiler. -> More information: . +> More information: . - Start a REPL (interactive shell): diff --git a/tldr/latex b/tldr/latex index 83b95aaa..0e0e72ec 100644 --- a/tldr/latex +++ b/tldr/latex @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # latex > Compile a DVI document from LaTeX source files. -> More information: . +> More information: . - Compile a DVI document: diff --git a/tldr/lein b/tldr/lein index d36c7d0d..71fb7494 100644 --- a/tldr/lein +++ b/tldr/lein @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # lein > Manage Clojure projects with declarative configuration. -> More information: . +> More information: . - Generate scaffolding for a new project based on a template: diff --git a/tldr/linux/nft-monitor b/tldr/linux/nft-monitor new file mode 100644 index 00000000..a2d455b7 --- /dev/null +++ b/tldr/linux/nft-monitor @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# nft monitor + +> Show real-time changes happening inside the Linux firewall `nftables`. +> More information: . + +- Monitor all nftables events: + +`sudo nft monitor` + +- Monitor only rule updates (add, delete, replace): + +`sudo nft monitor rules` + +- Monitor set and element updates: + +`sudo nft monitor sets` + +- Monitor events and print JSON output: + +`sudo nft {{[-j|--json]}} monitor` diff --git a/tldr/linux/systemctl-kexec b/tldr/linux/systemctl-kexec new file mode 100644 index 00000000..74573c6c --- /dev/null +++ b/tldr/linux/systemctl-kexec @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl kexec + +> Reboot the system via kexec. +> More information: . + +- Fast reboot using kexec (if kernel is pre-loaded): + +`systemctl kexec` + +- Force normal reboot even if kexec is available: + +`systemctl kexec {{[-f|--force]}}` diff --git a/tldr/lualatex b/tldr/lualatex index 140ec789..36f0351e 100644 --- a/tldr/lualatex +++ b/tldr/lualatex @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # lualatex > An extended version of TeX using Lua to compile. -> More information: . +> More information: . - Start `texlua` to act as a Lua interpreter: diff --git a/tldr/mh_copyright b/tldr/mh_copyright index 85cbeac2..a29b9e8c 100644 --- a/tldr/mh_copyright +++ b/tldr/mh_copyright @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mh_copyright > Adjust copyright headers for MATLAB or Octave code. -> More information: . +> More information: . - Update the year (range) to include the current year for the specified files: diff --git a/tldr/mh_metric b/tldr/mh_metric index 88091800..88a8b974 100644 --- a/tldr/mh_metric +++ b/tldr/mh_metric @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mh_metric > Calculate and enforce code metrics for MATLAB or Octave code. -> More information: . +> More information: . - Print the code metrics for the specified files: diff --git a/tldr/nu b/tldr/nu index ad902fd6..d8b097a6 100644 --- a/tldr/nu +++ b/tldr/nu @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Nushell ("a new type of shell") takes a modern, structured approach to your command-line. > See also: `elvish`. -> More information: . +> More information: . - Start an interactive shell session: @@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Execute specific commands: -`nu --commands "{{echo 'nu is executed'}}"` +`nu {{[-c|--commands]}} "{{echo 'nu is executed'}}"` - Execute a specific script: diff --git a/tldr/nyxt b/tldr/nyxt index 8f837ad8..d73aa2ba 100644 --- a/tldr/nyxt +++ b/tldr/nyxt @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nyxt > A keyboard-driven web browser for power users. -> More information: . +> More information: . - List all profiles: diff --git a/tldr/openssl b/tldr/openssl index 9042b755..0f718baf 100644 --- a/tldr/openssl +++ b/tldr/openssl @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > OpenSSL cryptographic toolkit. > Some subcommands such as `req` have their own usage documentation. -> More information: . +> More information: . - Display help: diff --git a/tldr/php-yii b/tldr/php-yii index cc281999..c7c47716 100644 --- a/tldr/php-yii +++ b/tldr/php-yii @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # php yii > Yii Framework's command-line interface. -> More information: . +> More information: . - Start PHP's built-in web server for the current Yii application: diff --git a/tldr/phpize b/tldr/phpize index 49e04f45..e3fbe54d 100644 --- a/tldr/phpize +++ b/tldr/phpize @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # phpize > Prepare a PHP extension for compiling. -> More information: . +> More information: . - Prepare the PHP extension in the current directory for compiling: diff --git a/tldr/postcss b/tldr/postcss index 67ab0e51..e1cdd6c6 100644 --- a/tldr/postcss +++ b/tldr/postcss @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # postcss > Transform styles with JS plugins. -> More information: . +> More information: . - Parse and transform a CSS file: @@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git - Parse and transform a CSS file and output to a specific file: -`postcss {{path/to/file}} --output {{path/to/file}}` +`postcss {{path/to/file}} {{[-o|--output]}} {{path/to/file}}` - Parse and transform a CSS file and output to a specific directory: -`postcss {{path/to/file}} --dir {{path/to/directory}}` +`postcss {{path/to/file}} {{[-d|--dir]}} {{path/to/directory}}` - Parse and transform a CSS file in-place: -`postcss {{path/to/file}} --replace` +`postcss {{path/to/file}} {{[-r|--replace]}}` - Specify a custom PostCSS parser: @@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git - Watch for changes to a CSS file: -`postcss {{path/to/file}} --watch` +`postcss {{path/to/file}} {{[-w|--watch]}}` - Display help: -`postcss --help` +`postcss {{[-h|--help]}}` diff --git a/tldr/prqlc b/tldr/prqlc index 97083aad..e0541ce7 100644 --- a/tldr/prqlc +++ b/tldr/prqlc @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > PRQL compiler. > PRQL is a modern language for transforming data - a simple, powerful, pipelined SQL replacement. -> More information: . +> More information: . - Run the compiler interactively: diff --git a/tldr/redis-server b/tldr/redis-server index ab8b0173..01b62fa5 100644 --- a/tldr/redis-server +++ b/tldr/redis-server @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # redis-server > Persistent key-value database. -> More information: . +> More information: . - Start Redis server, using the default port (6379), and write logs to `stdout`: diff --git a/tldr/scala b/tldr/scala index 79e0d7ab..7aa93ebc 100644 --- a/tldr/scala +++ b/tldr/scala @@ -6,15 +6,15 @@ source: https://github.com/tldr-pages/tldr.git # scala > Scala application launcher and interactive interpreter. -> More information: . +> More information: . - Start a REPL (interactive shell): `scala` -- Start the interpreter with a dependency in the classpath: +- Start the interpreter with a dependency in the [c]lass[p]ath: -`scala -classpath {{filename.jar}} {{command}}` +`scala {{[-cp|--extra-jars]}} {{filename.jar}} {{command}}` - Execute a Scala script: @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Execute a single Scala command in the command-line: -`scala -e {{command}}` +`scala {{[-e|--execute-script]}} {{command}}` diff --git a/tldr/standard b/tldr/standard index 240fc158..f38340af 100644 --- a/tldr/standard +++ b/tldr/standard @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # standard > The JavaScript Standard Style tool for linting and fixing JavaScript code. -> More information: . +> More information: . - Lint all JavaScript source files in the current directory: diff --git a/tldr/swift b/tldr/swift index 7ce8c3c1..80b3881a 100644 --- a/tldr/swift +++ b/tldr/swift @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # swift > Create, run and build Swift projects. -> More information: . +> More information: . - Start a REPL (interactive shell): @@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git - Compile project for release: -`swift build -c release` +`swift build {{[-c|--configuration]}} {{debug|release}}` diff --git a/tldr/tabula b/tldr/tabula index f76cbe04..838a188b 100644 --- a/tldr/tabula +++ b/tldr/tabula @@ -6,28 +6,28 @@ source: https://github.com/tldr-pages/tldr.git # tabula > Extract tables from PDF files. -> More information: . +> More information: . - Extract all tables from a PDF to a CSV file: -`tabula -o {{file.csv}} {{file.pdf}}` +`tabula {{[-o|--outfile]}} {{file.csv}} {{file.pdf}}` - Extract all tables from a PDF to a JSON file: -`tabula --format JSON -o {{file.json}} {{file.pdf}}` +`tabula {{[-f|--format]}} JSON {{[-o|--outfile]}} {{file.json}} {{file.pdf}}` - Extract tables from pages 1, 2, 3, and 6 of a PDF: -`tabula --pages {{1-3,6}} {{file.pdf}}` +`tabula {{[-p|--pages]}} 1-3,6 {{file.pdf}}` - Extract tables from page 1 of a PDF, guessing which portion of the page to examine: -`tabula --guess --pages {{1}} {{file.pdf}}` +`tabula {{[-g|--guess]}} {{[-p|--pages]}} 1 {{file.pdf}}` - Extract all tables from a PDF, using ruling lines to determine cell boundaries: -`tabula --spreadsheet {{file.pdf}}` +`tabula {{[-r|--spreadsheet]}} {{file.pdf}}` - Extract all tables from a PDF, using blank space to determine cell boundaries: -`tabula --no-spreadsheet {{file.pdf}}` +`tabula {{[-n|--no-spreadsheet]}} {{file.pdf}}` diff --git a/tldr/timidity b/tldr/timidity index e75b9726..8d1a9041 100644 --- a/tldr/timidity +++ b/tldr/timidity @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # timidity > Play and convert MIDI files. -> More information: . +> More information: . - Play a MIDI file: @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Play a MIDI file in a loop: -`timidity --loop {{path/to/file.mid}}` +`timidity {{[--l|--loop]}} {{path/to/file.mid}}` - Play a MIDI file in a specific key (0 = C major/A minor, -1 = F major/D minor, +1 = G major/E minor, etc.): diff --git a/tldr/todo b/tldr/todo index f5767a05..4199d8cf 100644 --- a/tldr/todo +++ b/tldr/todo @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # todo > A simple, standards-based, cli todo manager. -> More information: . +> More information: . - List startable tasks: @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Add a new task to the work list: -`todo new {{thing_to_do}} --list {{work}}` +`todo new {{thing_to_do}} {{[-l|--list]}} {{work}}` - Add a location to a task with a given ID: diff --git a/tldr/virtualenvwrapper b/tldr/virtualenvwrapper index 66726e19..f550aa99 100644 --- a/tldr/virtualenvwrapper +++ b/tldr/virtualenvwrapper @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # virtualenvwrapper > Group of simple wrapper commands for Python's `virtualenv` tool. -> More information: . +> More information: . - Create a new Python `virtualenv` in `$WORKON_HOME`: diff --git a/tldr/webpack b/tldr/webpack index c9ac20c1..adbc54e3 100644 --- a/tldr/webpack +++ b/tldr/webpack @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # webpack > Bundle a web project's js files and other assets into a single output file. -> More information: . +> More information: . - Create a single output file from an entry point file: @@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git - Pass a configuration file (with e.g. the entry script and the output filename) and show compilation progress: -`webpack --config {{webpack.config.js}} --progress` +`webpack {{[-c|--config]}} {{webpack.config.js}} --progress` - Automatically recompile on changes to project files: -`webpack --watch {{app.js}} {{bundle.js}}` +`webpack {{[-w|--watch]}} {{app.js}} {{bundle.js}}`