From 5dd0e057296594e23fe01521b85b41ea19566ac9 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 26 Jul 2025 00:21:07 +0000 Subject: [PATCH] Update cheatsheets --- tldr/[[ | 2 +- tldr/ack | 2 +- tldr/adb-logcat | 4 ++-- tldr/ag | 2 +- tldr/android/logcat | 4 ++-- tldr/apropos | 10 ++++---- tldr/brew-search | 4 ++-- tldr/bzegrep | 6 ++--- tldr/bzgrep | 2 +- tldr/cariddi | 2 +- tldr/cbt | 2 +- tldr/csvgrep | 4 ++-- tldr/ctest | 2 +- tldr/dlv | 2 +- tldr/ed | 2 +- tldr/egrep | 2 +- tldr/ex | 4 ++-- tldr/exrex | 26 ++++++++++----------- tldr/fastfetch | 2 +- tldr/fastmod | 12 +++++----- tldr/freebsd/sed | 6 ++--- tldr/gdu | 2 +- tldr/gem | 2 +- tldr/git-annotate | 2 +- tldr/git-fame | 4 ++-- tldr/git-sed | 2 +- tldr/grep | 6 ++--- tldr/grex | 6 ++--- tldr/httpflow | 4 ++-- tldr/ippfind | 2 +- tldr/jest | 8 +++---- tldr/linkchecker | 4 ++-- tldr/linux/aide | 4 ++-- tldr/linux/apt-file | 4 ++-- tldr/linux/aura | 2 +- tldr/linux/auracle | 4 ++-- tldr/linux/btrfs-restore | 2 +- tldr/linux/csplit | 4 ++-- tldr/linux/esearch | 2 +- tldr/linux/file-rename | 2 +- tldr/linux/guix-package | 2 +- tldr/linux/hddtemp | 41 +++++++++++++++++++++++++++++++++ tldr/linux/inotifywait | 4 ++-- tldr/linux/logread | 2 +- tldr/linux/mate-search-tool | 2 +- tldr/linux/mksquashfs | 4 ++-- tldr/linux/nala | 2 +- tldr/linux/nl | 2 +- tldr/linux/nmcli | 1 + tldr/linux/nmcli-device | 4 ++++ tldr/linux/nmtui | 1 + tldr/linux/pacman | 2 +- tldr/linux/pacman-files | 4 ++-- tldr/linux/pacman-sync | 2 +- tldr/linux/pct | 12 +++++----- tldr/linux/perl-rename | 2 +- tldr/linux/prename | 2 +- tldr/linux/qm | 8 +++---- tldr/linux/qm-cleanup | 2 +- tldr/linux/qm-cloudinit | 29 +++++++++++++++++++++++ tldr/linux/qm-cloudinit-dump | 2 +- tldr/linux/qm-config | 6 ++--- tldr/linux/qm-create | 10 ++++---- tldr/linux/qm-delsnapshot | 4 ++-- tldr/linux/qm-destroy | 8 +++---- tldr/linux/qm-disk-import | 2 +- tldr/linux/qm-disk-move | 4 ++-- tldr/linux/qm-disk-resize | 2 +- tldr/linux/qm-guest-cmd | 2 +- tldr/linux/qm-guest-exec | 8 +++---- tldr/linux/qm-guest-exec-status | 2 +- tldr/linux/qm-guest-passwd | 4 ++-- tldr/linux/qm-help | 4 ++-- tldr/linux/qm-listsnapshot | 2 +- tldr/linux/qm-migrate | 10 ++++---- tldr/linux/qm-monitor | 2 +- tldr/linux/qm-mtunnel | 2 +- tldr/linux/qm-nbdstop | 2 +- tldr/linux/qm-pending | 2 +- tldr/linux/qm-reboot | 4 ++-- tldr/linux/qm-resume | 4 ++-- tldr/linux/qm-rollback | 2 +- tldr/linux/qm-sendkey | 4 ++-- tldr/linux/qm-showcmd | 6 ++--- tldr/linux/qm-shutdown | 10 ++++---- tldr/linux/qm-snapshot | 6 ++--- tldr/linux/qm-status | 4 ++-- tldr/linux/qm-suspend | 6 ++--- tldr/linux/qm-template | 2 +- tldr/linux/qm-unlock | 2 +- tldr/linux/qm-vncproxy | 2 +- tldr/linux/qm-wait | 6 ++--- tldr/linux/rnm | 2 +- tldr/linux/sed | 6 ++--- tldr/linux/semanage-fcontext | 4 ++-- tldr/linux/sqfstar | 4 ++-- tldr/linux/whatis | 2 +- tldr/linux/xbps-query | 4 ++-- tldr/mlr | 2 +- tldr/mocha | 2 +- tldr/ncu | 2 +- tldr/netbsd/sed | 6 ++--- tldr/ngrep | 2 +- tldr/nix-classic | 2 +- tldr/nl | 2 +- tldr/nvim | 4 ++-- tldr/onefetch | 2 +- tldr/openbsd/sed | 6 ++--- tldr/osx/rename | 2 +- tldr/osx/sed | 6 ++--- tldr/osx/split | 2 +- tldr/perl | 6 ++--- tldr/pt | 4 ++-- tldr/ptargrep | 2 +- tldr/recsel | 6 ++--- tldr/repren | 4 ++-- tldr/rg | 2 +- tldr/rga | 6 ++--- tldr/rgrep | 6 ++--- tldr/ropgadget | 2 +- tldr/ropper | 2 +- tldr/sd | 2 +- tldr/sed | 2 +- tldr/smbmap | 4 ++-- tldr/stern | 2 +- tldr/stow | 4 ++-- tldr/tac | 2 +- tldr/tlmgr-search | 18 +++++++-------- tldr/trawl | 2 +- tldr/tre | 4 ++-- tldr/tuc | 2 +- tldr/ugrep | 2 +- tldr/varnishlog | 2 +- tldr/vim | 4 ++-- tldr/vitest | 8 +++---- tldr/windows/es | 4 ++-- tldr/windows/findstr | 4 ++-- tldr/windows/select-string | 2 +- tldr/xzgrep | 6 ++--- tldr/z | 2 +- tldr/zegrep | 6 ++--- tldr/zgrep | 4 ++-- tldr/zipgrep | 2 +- tldr/zmore | 2 +- tldr/zmv | 2 +- 145 files changed, 351 insertions(+), 275 deletions(-) create mode 100644 tldr/linux/hddtemp create mode 100644 tldr/linux/qm-cloudinit diff --git a/tldr/[[ b/tldr/[[ index d930a685..f6b4b22f 100644 --- a/tldr/[[ +++ b/tldr/[[ @@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git `[[ ${{variable}} {{==|!=}} "{{string}}" ]]` -- Test if a given string conforms the specified glob/regex: +- Test if a given string conforms the specified glob/`regex`: `[[ ${{variable}} {{==|=~}} {{pattern}} ]]` diff --git a/tldr/ack b/tldr/ack index 52ef1369..cd57b30b 100644 --- a/tldr/ack +++ b/tldr/ack @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > See also: `rg`, which is much faster. > More information: . -- Search for files containing a string or regular expression in the current directory recursively: +- Search for files containing a string or `regex` in the current directory recursively: `ack "{{search_pattern}}"` diff --git a/tldr/adb-logcat b/tldr/adb-logcat index 8aa99f81..2ab1726f 100644 --- a/tldr/adb-logcat +++ b/tldr/adb-logcat @@ -12,9 +12,9 @@ source: https://github.com/tldr-pages/tldr.git `adb logcat` -- Display lines that match a regular [e]xpression: +- Display lines that match a `reg[e]x`: -`adb logcat -e {{regular_expression}}` +`adb logcat -e {{regex}}` - Display logs for a tag in a specific mode ([V]erbose, [D]ebug, [I]nfo, [W]arning, [E]rror, [F]atal, [S]ilent), filtering other tags: diff --git a/tldr/ag b/tldr/ag index 9f7f00a5..8b7f6215 100644 --- a/tldr/ag +++ b/tldr/ag @@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git `ag foo {{[-G|--file-search-regex]}} bar` -- Find files whose contents match a regular expression: +- Find files whose contents match a `regex`: `ag '{{^ba(r|z)$}}'` diff --git a/tldr/android/logcat b/tldr/android/logcat index 3ebcd61f..05ae2aee 100644 --- a/tldr/android/logcat +++ b/tldr/android/logcat @@ -16,9 +16,9 @@ source: https://github.com/tldr-pages/tldr.git `logcat -f {{path/to/file}}` -- Display lines that match a regular expression: +- Display lines that match a `regex`: -`logcat --regex {{regular_expression}}` +`logcat --regex {{regex}}` - Display logs for a specific PID: diff --git a/tldr/apropos b/tldr/apropos index 5725d003..9ef05535 100644 --- a/tldr/apropos +++ b/tldr/apropos @@ -8,14 +8,14 @@ source: https://github.com/tldr-pages/tldr.git > Search the manual pages for names and descriptions. > More information: . -- Search for a keyword using a regular expression: +- Search for a keyword using a `regex`: -`apropos {{regular_expression}}` +`apropos {{regex}}` - Search without restricting the output to the terminal width ([l]ong output): -`apropos {{[-l|--long]}} {{regular_expression}}` +`apropos {{[-l|--long]}} {{regex}}` -- Search for pages that match all the expressions given: +- Search for pages that match all the `regex` given: -`apropos {{regular_expression_1}} {{[-a|--and]}} {{regular_expression_2}} {{[-a|--and]}} {{regular_expression_3}}` +`apropos {{regex_1}} {{[-a|--and]}} {{regex_2}} {{[-a|--and]}} {{regex_3}}` diff --git a/tldr/brew-search b/tldr/brew-search index 0c8682f9..ca15e6d2 100644 --- a/tldr/brew-search +++ b/tldr/brew-search @@ -12,9 +12,9 @@ source: https://github.com/tldr-pages/tldr.git `brew search {{keyword}}` -- Search for casks and formulae using a regular expression: +- Search for casks and formulae using a `regex`: -`brew search /{{regular_expression}}/` +`brew search /{{regex}}/` - Enable searching through descriptions: diff --git a/tldr/bzegrep b/tldr/bzegrep index 77e93a5c..765ea492 100644 --- a/tldr/bzegrep +++ b/tldr/bzegrep @@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git --- # bzegrep -> Find extended regular expression patterns in `bzip2` compressed files using `egrep`. +> Find extended `regex` patterns in `bzip2` compressed files using `egrep`. > More information: . -- Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive): +- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive): `bzegrep "{{search_pattern}}" {{path/to/file}}` -- Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive): +- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive): `bzegrep {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}` diff --git a/tldr/bzgrep b/tldr/bzgrep index 8126334e..fac9ffd8 100644 --- a/tldr/bzgrep +++ b/tldr/bzgrep @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `bzgrep "{{search_pattern}}" {{path/to/file}}` -- Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode: +- Use extended `regex` (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode: `bzgrep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}` diff --git a/tldr/cariddi b/tldr/cariddi index bc4903b2..b1cf8309 100644 --- a/tldr/cariddi +++ b/tldr/cariddi @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Crawl URLs and scan for endpoints, secrets, api keys, file extensions, tokens, and more from a list of domains. > More information: . -- Hunt for secrets using custom regexes and output results in JSON: +- Hunt for secrets using custom `regex`es and output results in JSON: `cat {{path/to/urls.txt}} | cariddi -s -sf {{path/to/custom_secrets.txt}} -json` diff --git a/tldr/cbt b/tldr/cbt index e3c2f4c1..d6a4b4ce 100644 --- a/tldr/cbt +++ b/tldr/cbt @@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git `cbt lookup "{{table_name}}" "{{row_key}}" columns="{{family1:qualifier1,family2:qualifier2,...}}"` -- Search up to 5 rows in the current project by a specific regex pattern and print them: +- Search up to 5 rows in the current project by a specific `regex` pattern and print them: `cbt read "{{table_name}}" regex="{{row_key_pattern}}" count={{5}}` diff --git a/tldr/csvgrep b/tldr/csvgrep index 4099f3b5..23028200 100644 --- a/tldr/csvgrep +++ b/tldr/csvgrep @@ -13,9 +13,9 @@ source: https://github.com/tldr-pages/tldr.git `csvgrep {{[-c|--columns]}} {{1}} {{[-m|--match]}} {{string_to_match}} {{data.csv}}` -- Find rows in which columns 3 or 4 match a certain regular expression: +- Find rows in which columns 3 or 4 match a certain `regex`: -`csvgrep {{[-c|--columns]}} {{3,4}} {{[-r|--regex]}} {{regular_expression}} {{data.csv}}` +`csvgrep {{[-c|--columns]}} {{3,4}} {{[-r|--regex]}} {{regex}} {{data.csv}}` - Find rows in which the "name" column does NOT include the string "John Doe": diff --git a/tldr/ctest b/tldr/ctest index 68f9cea3..da940547 100644 --- a/tldr/ctest +++ b/tldr/ctest @@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git `ctest {{[-N|--show-only]}}` -- Run a single test based on its name, or filter on a regular expression: +- Run a single test based on its name, or filter on a `regex`: `ctest --output-on-failure {{[-R|--tests-regex]}} '^{{test_name}}$'` diff --git a/tldr/dlv b/tldr/dlv index 2735321b..7dd5769a 100644 --- a/tldr/dlv +++ b/tldr/dlv @@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git - Compile and begin tracing a program: -`dlv trace {{package}} --regexp '{{regular_expression}}'` +`dlv trace {{package}} --regexp '{{regex}}'` diff --git a/tldr/ed b/tldr/ed index 96862232..537e74ee 100644 --- a/tldr/ed +++ b/tldr/ed @@ -35,7 +35,7 @@ source: https://github.com/tldr-pages/tldr.git - Replace a string with a specific replacement for all lines: -`,s/{{regular_expression}}/{{replacement}}/g` +`,s/{{regex}}/{{replacement}}/g` - Exit `ed`: diff --git a/tldr/egrep b/tldr/egrep index 238c14d4..b3d75440 100644 --- a/tldr/egrep +++ b/tldr/egrep @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # egrep -> Find patterns in files using extended regular expression (supports `?`, `+`, `{}`, `()`, and `|`). +> Find patterns in files using extended `regex` (supports `?`, `+`, `{}`, `()`, and `|`). > More information: . - Search for a pattern within a file: diff --git a/tldr/ex b/tldr/ex index dbdf0a67..d48901e3 100644 --- a/tldr/ex +++ b/tldr/ex @@ -25,9 +25,9 @@ source: https://github.com/tldr-pages/tldr.git `/{{search_pattern}}` -- Perform a regular expression substitution in the whole file: +- Perform a `regex` substitution in the whole file: -`%s/{{regular_expression}}/{{replacement}}/g` +`%s/{{regex}}/{{replacement}}/g` - Insert text: diff --git a/tldr/exrex b/tldr/exrex index 5bed492f..871c35d8 100644 --- a/tldr/exrex +++ b/tldr/exrex @@ -5,31 +5,31 @@ source: https://github.com/tldr-pages/tldr.git --- # exrex -> Generate all/random matching strings for a regular expression. -> It can also simplify regular expressions. +> Generate all/random matching strings for a `regex`. +> It can also simplify `regex`es. > More information: . -- Generate all possible strings that match a regular expression: +- Generate all possible strings that match a `regex`: -`exrex '{{regular_expression}}'` +`exrex '{{regex}}'` -- Generate a random string that matches a regular expression: +- Generate a random string that matches a `regex`: -`exrex --random '{{regular_expression}}'` +`exrex --random '{{regex}}'` -- Generate at most 100 strings that match a regular expression: +- Generate at most 100 strings that match a `regex`: -`exrex --max-number {{100}} '{{regular_expression}}'` +`exrex --max-number {{100}} '{{regex}}'` -- Generate all possible strings that match a regular expression, joined by a custom delimiter string: +- Generate all possible strings that match a `regex`, joined by a custom delimiter string: -`exrex --delimiter "{{, }}" '{{regular_expression}}'` +`exrex --delimiter "{{, }}" '{{regex}}'` -- Print count of all possible strings that match a regular expression: +- Print count of all possible strings that match a `regex`: -`exrex --count '{{regular_expression}}'` +`exrex --count '{{regex}}'` -- Simplify a regular expression: +- Simplify a `regex`: `exrex --simplify '{{ab|ac}}'` diff --git a/tldr/fastfetch b/tldr/fastfetch index 8ad9fcf8..d40db4c9 100644 --- a/tldr/fastfetch +++ b/tldr/fastfetch @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Fetch a specific structure: -`fastfetch {{[-s|--structure]}} {{structure}}` +`fastfetch {{[-s|--structure]}} {{os:kernel:de:cpu:gpu}}` - Use a specific logo: diff --git a/tldr/fastmod b/tldr/fastmod index e84a5cb5..fb4349cf 100644 --- a/tldr/fastmod +++ b/tldr/fastmod @@ -9,15 +9,15 @@ source: https://github.com/tldr-pages/tldr.git > Regexes are matched by Rust regex crate. > More information: . -- Replace a regex pattern in all files of the current directory, ignoring files on .ignore and .gitignore: +- Replace a `regex` in all files of the current directory, ignoring files on .ignore and .gitignore: -`fastmod {{regex_pattern}} {{replacement}}` +`fastmod {{regex}} {{replacement}}` -- Replace a regex pattern in case-insensitive mode in specific files or directories: +- Replace a `regex` in case-insensitive mode in specific files or directories: -`fastmod --ignore-case {{regex_pattern}} {{replacement}} -- {{path/to/file path/to/directory ...}}` +`fastmod --ignore-case {{regex}} {{replacement}} -- {{path/to/file path/to/directory ...}}` -- Replace a regex pattern in a specific directory in files filtered with a case-insensitive glob pattern: +- Replace a `regex` in a specific directory in files filtered with a case-insensitive glob pattern: `fastmod {{regex}} {{replacement}} --dir {{path/to/directory}} --iglob {{'**/*.{js,json}'}}` @@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git `fastmod --fixed-strings {{exact_string}} {{replacement}} --extensions {{json,js}}` -- Replace for an exact string without prompt for a confirmation (disables regular expressions): +- Replace for an exact string without prompt for a confirmation (disables `regex`): `fastmod --accept-all --fixed-strings {{exact_string}} {{replacement}}` diff --git a/tldr/freebsd/sed b/tldr/freebsd/sed index da3aa477..d0b5ba3c 100644 --- a/tldr/freebsd/sed +++ b/tldr/freebsd/sed @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > See also: `awk`, `ed`. > More information: . -- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`: +- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`: `{{command}} | sed 's/apple/mango/g'` @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `{{command}} | sed -fa {{path/to/script.sed}}` -- Replace all `apple` (extended regex) occurrences with `APPLE` (extended regex) in all input lines and print the result to `stdout`: +- Replace all `apple` (extended `regex`) occurrences with `APPLE` (extended `regex`) in all input lines and print the result to `stdout`: `{{command}} | sed -E 's/(apple)/\U\1/g'` @@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git `{{command}} | sed -n '1p'` -- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a specific file and overwrite the original file in place: +- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in a specific file and overwrite the original file in place: `sed -i 's/apple/mango/g' {{path/to/file}}` diff --git a/tldr/gdu b/tldr/gdu index 841717de..3ae45a7b 100644 --- a/tldr/gdu +++ b/tldr/gdu @@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git `gdu --ignore-dirs {{path/to/directory1,path/to/directory2,...}}` -- Ignore paths by regular expression: +- Ignore paths by `regex`: `gdu --ignore-dirs-pattern '{{.*[abc]+}}'` diff --git a/tldr/gem b/tldr/gem index cc72bf5b..2903c0b7 100644 --- a/tldr/gem +++ b/tldr/gem @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Search for remote gem(s) and show all available versions: -`gem search {{regular_expression}} --all` +`gem search {{regex}} --all` - Install the latest version of a gem: diff --git a/tldr/git-annotate b/tldr/git-annotate index edd37c04..8aa56d78 100644 --- a/tldr/git-annotate +++ b/tldr/git-annotate @@ -18,6 +18,6 @@ source: https://github.com/tldr-pages/tldr.git `git annotate {{[-e|--show-email]}} {{path/to/file}}` -- Print only rows that match a regular expression: +- Print only rows that match a `regex`: `git annotate -L :{{regexp}} {{path/to/file}}` diff --git a/tldr/git-fame b/tldr/git-fame index 213a417a..1a5bae1f 100644 --- a/tldr/git-fame +++ b/tldr/git-fame @@ -12,9 +12,9 @@ source: https://github.com/tldr-pages/tldr.git `git fame` -- Exclude files/directories that match the specified regular expression: +- Exclude files/directories that match the specified `regex`: -`git fame --excl "{{regular_expression}}"` +`git fame --excl "{{regex}}"` - Calculate contributions made after the specified date: diff --git a/tldr/git-sed b/tldr/git-sed index 8be47484..9669cb1f 100644 --- a/tldr/git-sed +++ b/tldr/git-sed @@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git `git sed -c '{{find_text}}' '{{replace_text}}'` -- Replace the specified text, using regular expressions: +- Replace the specified text, using `regex`: `git sed -f g '{{find_text}}' '{{replace_text}}'` diff --git a/tldr/grep b/tldr/grep index 34309933..0ec1b7cc 100644 --- a/tldr/grep +++ b/tldr/grep @@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git --- # grep -> Find patterns in files using regular expressions. +> Find patterns in files using `regex`es. > More information: . - Search for a pattern within a file: `grep "{{search_pattern}}" {{path/to/file}}` -- Search for an exact string (disables regular expressions): +- Search for an exact string (disables `regex`es): `grep {{[-F|--fixed-strings]}} "{{exact_string}}" {{path/to/file}}` @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{search_pattern}}" {{path/to/directory}}` -- Use extended regular expressions (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode: +- Use extended `regex`es (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode: `grep {{[-Ei|--extended-regexp --ignore-case]}} "{{search_pattern}}" {{path/to/file}}` diff --git a/tldr/grex b/tldr/grex index 82b03caf..5d1f2818 100644 --- a/tldr/grex +++ b/tldr/grex @@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git --- # grex -> Generate regular expressions. +> Generate `regex`s. > More information: . -- Generate a simple regular expression: +- Generate a simple `regex`: `grex {{space_separated_strings}}` -- Generate a case-insensitive regular expression: +- Generate a case-insensitive `regex`: `grex {{[-i|--ignore-case]}} {{space_separated_strings}}` diff --git a/tldr/httpflow b/tldr/httpflow index bbac02cc..b751e928 100644 --- a/tldr/httpflow +++ b/tldr/httpflow @@ -16,9 +16,9 @@ source: https://github.com/tldr-pages/tldr.git `httpflow {{host httpbin.org or host baidu.com}}` -- Use a regular expression to filter requests by URLs: +- Use a `regex` to filter requests by URLs: -`httpflow -u '{{regular_expression}}'` +`httpflow -u '{{regex}}'` - Read packets from PCAP format binary file: diff --git a/tldr/ippfind b/tldr/ippfind index dfefc1d3..30d7bf76 100644 --- a/tldr/ippfind +++ b/tldr/ippfind @@ -21,6 +21,6 @@ source: https://github.com/tldr-pages/tldr.git `ippfind --txt-pdl application/postscript {{[-x|--exec]}} ipptool -f onepage-letter.ps '{}' print-job.test \;` -- Send a PostScript test document to every PostScript printer on the network, whose name matches a regular expression: +- Send a PostScript test document to every PostScript printer on the network, whose name matches a `regex`: `ippfind --txt-pdl application/postscript {{[-h|--host]}} {{regex}} {{[-x|--exec]}} ipptool -f onepage-letter.ps '{}' print-job.test \;` diff --git a/tldr/jest b/tldr/jest index 6927adeb..e6971706 100644 --- a/tldr/jest +++ b/tldr/jest @@ -16,13 +16,13 @@ source: https://github.com/tldr-pages/tldr.git `jest {{path/to/file1 path/to/file2 ...}}` -- Run the test suites from files within the current and subdirectories, whose paths match the given regular expression: +- Run the test suites from files within the current and subdirectories, whose paths match the given `regex`: -`jest {{regular_expression1}} {{regular_expression2}}` +`jest {{regex1}} {{regex2}}` -- Run the tests whose names match the given regular expression: +- Run the tests whose names match the given `regex`: -`jest --testNamePattern {{regular_expression}}` +`jest --testNamePattern {{regex}}` - Run test suites related to a given source file: diff --git a/tldr/linkchecker b/tldr/linkchecker index 088c5028..c0060e98 100644 --- a/tldr/linkchecker +++ b/tldr/linkchecker @@ -16,9 +16,9 @@ source: https://github.com/tldr-pages/tldr.git `linkchecker --check-extern {{https://example.com/}}` -- Ignore URLs that match a specific regular expression: +- Ignore URLs that match a specific `regex`: -`linkchecker --ignore-url {{regular_expression}} {{https://example.com/}}` +`linkchecker --ignore-url {{regex}} {{https://example.com/}}` - Output results to a CSV file: diff --git a/tldr/linux/aide b/tldr/linux/aide index 69758093..85b67639 100644 --- a/tldr/linux/aide +++ b/tldr/linux/aide @@ -28,9 +28,9 @@ source: https://github.com/tldr-pages/tldr.git `sudo aide {{[-c|--config]}} {{path/to/config_file}}` -- Use REGEX to limit AIDE to a specific string: +- Use `regex` to limit AIDE to a specific string: -`sudo aide {{[-l|--limit]}} {{REGEX}}` +`sudo aide {{[-l|--limit]}} {{regex}}` - Send reporter results to a URL: diff --git a/tldr/linux/apt-file b/tldr/linux/apt-file index 515366a8..dd8d0caa 100644 --- a/tldr/linux/apt-file +++ b/tldr/linux/apt-file @@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git `apt-file {{show|list}} {{package}}` -- Search for packages that match the `regular_expression`: +- Search for packages that match the `regex`: -`apt-file {{search|find}} {{[-x|--regexp]}} {{regular_expression}}` +`apt-file {{search|find}} {{[-x|--regexp]}} {{regex}}` diff --git a/tldr/linux/aura b/tldr/linux/aura index 8632fe82..823a8ba2 100644 --- a/tldr/linux/aura +++ b/tldr/linux/aura @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Search for packages from the official repositories and AUR: -`aura --aursync --both --search {{keyword|regular_expression}}` +`aura --aursync --both --search {{keyword|regex}}` - Install a package from the AUR: diff --git a/tldr/linux/auracle b/tldr/linux/auracle index 68ba7109..fea8dc1b 100644 --- a/tldr/linux/auracle +++ b/tldr/linux/auracle @@ -8,9 +8,9 @@ source: https://github.com/tldr-pages/tldr.git > Interact with Arch Linux's User Repository, commonly referred to as the AUR. > More information: . -- Display AUR packages that match a regular expression: +- Display AUR packages that match a `regex`: -`auracle search '{{regular_expression}}'` +`auracle search '{{regex}}'` - Display information about one or more AUR packages: diff --git a/tldr/linux/btrfs-restore b/tldr/linux/btrfs-restore index 2cd95aa0..62fa88f1 100644 --- a/tldr/linux/btrfs-restore +++ b/tldr/linux/btrfs-restore @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `sudo btrfs {{[rest|restore]}} {{[-D|--dry-run]}} {{path/to/btrfs_device}} {{path/to/target_directory}}` -- Restore files matching a given regex ([c]ase-insensitive) files to be restored from a btrfs filesystem (all parent directories of target file(s) must match as well): +- Restore files matching a given `regex` ([c]ase-insensitive) files to be restored from a btrfs filesystem (all parent directories of target file(s) must match as well): `sudo btrfs {{[rest|restore]}} --path-regex {{regex}} -c {{path/to/btrfs_device}} {{path/to/target_directory}}` diff --git a/tldr/linux/csplit b/tldr/linux/csplit index 82bcddda..48392328 100644 --- a/tldr/linux/csplit +++ b/tldr/linux/csplit @@ -25,6 +25,6 @@ source: https://github.com/tldr-pages/tldr.git `csplit {{path/to/file}} 5 {{[-f|--prefix]}} {{prefix}}` -- Split a file at a line matching a regular expression: +- Split a file at a line matching a `regex`: -`csplit {{path/to/file}} /{{regular_expression}}/` +`csplit {{path/to/file}} /{{regex}}/` diff --git a/tldr/linux/esearch b/tldr/linux/esearch index 4d9feb99..5c3d3ce0 100644 --- a/tldr/linux/esearch +++ b/tldr/linux/esearch @@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git `esearch -db pubmed -query "{{selective serotonin reuptake inhibitor}}"` -- Search the protein database using a query and regexp: +- Search the protein database using a query and `regex`: `esearch -db {{protein}} -query {{'Escherichia*'}}` diff --git a/tldr/linux/file-rename b/tldr/linux/file-rename index 070bfe29..e18aab23 100644 --- a/tldr/linux/file-rename +++ b/tldr/linux/file-rename @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > Note: This page refers to the command from the `rename` Debian package. > More information: . -- Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found): +- Rename files using a Perl Common `regex` (substitute 'foo' with 'bar' wherever found): `rename {{'s/foo/bar/'}} {{*}}` diff --git a/tldr/linux/guix-package b/tldr/linux/guix-package index 5757e706..476a3e71 100644 --- a/tldr/linux/guix-package +++ b/tldr/linux/guix-package @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `guix package {{[-r|--remove]}} {{package}}` -- Search the package database for a regular expression: +- Search the package database for a `regex`: `guix package {{[-s|--search]}} "{{search_pattern}}"` diff --git a/tldr/linux/hddtemp b/tldr/linux/hddtemp new file mode 100644 index 00000000..d3f0b7ca --- /dev/null +++ b/tldr/linux/hddtemp @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# hddtemp + +> Display temperature of HDD via S.M.A.R.T. +> More information: . + +- Display temperature of a specific drive: + +`hddtemp {{type}}:{{/dev/sdX}}` + +- Display temperature of a SATA drive assigned to `sda`: + +`hddtemp SATA:/dev/sda` + +- Log temperatures to syslog every `n` seconds: + +`hddtemp {{[-S|--syslog]}} {{nseconds}} {{type}}:{{/dev/sdX}}` + +- Print only numeric value of temperature without unit: + +`hddtemp {{[-n|--numeric]}} {{type}}:{{/dev/sdX}}` + +- Define the unit used to denote temperature: + +`hddtemp {{[-u|--unit]}} {{C|F}} {{type}}:{{/dev/sdX}}` + +- Wake ATA drive before attempting to read temperature: + +`hddtemp {{[-w|--wake-up]}} {{type}}:{{/dev/sdX}}` + +- Enter debug mode to show S.M.A.R.T. fields and their values: + +`hddtemp {{[-D|--debug]}} {{type}}:{{/dev/sdX}}` + +- Suppress compatibility check for drive types: + +`hddtemp {{[-q|--quiet]}} {{type}}:{{/dev/sdX}}` diff --git a/tldr/linux/inotifywait b/tldr/linux/inotifywait index 5fb9c753..abbcfd6c 100644 --- a/tldr/linux/inotifywait +++ b/tldr/linux/inotifywait @@ -20,9 +20,9 @@ source: https://github.com/tldr-pages/tldr.git `inotifywait {{[-m|--monitor]}} {{[-r|--recursive]}} {{path/to/directory}}` -- Watch a directory for changes, excluding files, whose names match a regular expression: +- Watch a directory for changes, excluding files, whose names match a `regex`: -`inotifywait {{[-m|--monitor]}} {{[-r|--recursive]}} --exclude "{{regular_expression}}" {{path/to/directory}}` +`inotifywait {{[-m|--monitor]}} {{[-r|--recursive]}} --exclude "{{regex}}" {{path/to/directory}}` - Watch a file for changes, exiting when no event occurs for 30 seconds: diff --git a/tldr/linux/logread b/tldr/linux/logread index d4bd7e62..ddc4be72 100644 --- a/tldr/linux/logread +++ b/tldr/linux/logread @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `logread -l {{n}}` -- Filter messages by (Keyword/Regular Expression): +- Filter messages by (Keyword/`regex`): `logread -e {{pattern}}` diff --git a/tldr/linux/mate-search-tool b/tldr/linux/mate-search-tool index 1080bca6..ac710624 100644 --- a/tldr/linux/mate-search-tool +++ b/tldr/linux/mate-search-tool @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `mate-search-tool --start --named={{string}} --path={{path/to/directory}}` -- Search files with name matching a specific regular expression: +- Search files with name matching a specific `regex`: `mate-search-tool --start --regex={{string}} --path={{path/to/directory}}` diff --git a/tldr/linux/mksquashfs b/tldr/linux/mksquashfs index 23a039e3..f4a6be81 100644 --- a/tldr/linux/mksquashfs +++ b/tldr/linux/mksquashfs @@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git `mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -wildcards -e "{{*.gz}}"` -- Create or append files and directories to a squashfs filesystem, [e]xcluding those matching a regular expression: +- Create or append files and directories to a squashfs filesystem, [e]xcluding those matching a `regex`: -`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -regex -e "{{regular_expression}}"` +`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -regex -e "{{regex}}"` diff --git a/tldr/linux/nala b/tldr/linux/nala index 30c612fd..a3984e37 100644 --- a/tldr/linux/nala +++ b/tldr/linux/nala @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `nala purge {{package}}` -- Search package names and descriptions using a word, regex (default) or glob: +- Search package names and descriptions using a word, `regex` (default) or glob: `nala search "{{pattern}}"` diff --git a/tldr/linux/nl b/tldr/linux/nl index 663657cd..ff758071 100644 --- a/tldr/linux/nl +++ b/tldr/linux/nl @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `nl {{[-b|--body-numbering]}} {{a|n}} {{path/to/file}}` -- Number only the body lines that match a basic regular expression (BRE) [p]attern: +- Number only the body lines that match a basic `regex` (BRE) [p]attern: `nl {{[-b|--body-numbering]}} p'FooBar[0-9]' {{path/to/file}}` diff --git a/tldr/linux/nmcli b/tldr/linux/nmcli index 4214716b..dace3fb8 100644 --- a/tldr/linux/nmcli +++ b/tldr/linux/nmcli @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nmcli > Manage the network configuration using NetworkManager. +> See also: `nmtui`. > More information: . - View documentation for managing network interfaces and establishing new Wi-Fi connections: diff --git a/tldr/linux/nmcli-device b/tldr/linux/nmcli-device index 5a6c1974..b5f8dea7 100644 --- a/tldr/linux/nmcli-device +++ b/tldr/linux/nmcli-device @@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Print the password and QR code for the current Wi-Fi network: `nmcli {{[d|device]}} {{[w|wifi]}} {{[s|show-password]}}` + +- Print detailed information about a device: + +`nmcli {{[d|device]}} {{[sh|show]}} {{wlan0}}` diff --git a/tldr/linux/nmtui b/tldr/linux/nmtui index 270ebb2f..4611c1cf 100644 --- a/tldr/linux/nmtui +++ b/tldr/linux/nmtui @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Text user interface for controlling NetworkManager. > Use `` to navigate, `` to select an option. +> See also: `nmcli`. > More information: . - Open the user interface: diff --git a/tldr/linux/pacman b/tldr/linux/pacman index b29473e9..ae51c116 100644 --- a/tldr/linux/pacman +++ b/tldr/linux/pacman @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git `sudo pacman -Rs {{package}}` -- Search ([s]) the package database for a regular expression or keyword: +- Search ([s]) the package database for a `regex` or keyword: `pacman -Ss "{{search_pattern}}"` diff --git a/tldr/linux/pacman-files b/tldr/linux/pacman-files index cc383802..227e1f73 100644 --- a/tldr/linux/pacman-files +++ b/tldr/linux/pacman-files @@ -17,9 +17,9 @@ source: https://github.com/tldr-pages/tldr.git `pacman -F {{filename}}` -- Find the package that owns a specific [F]ile, using a regular e[x]pression: +- Find the package that owns a specific [F]ile, using a `rege[x]`: -`pacman -Fx '{{regular_expression}}'` +`pacman -Fx '{{regex}}'` - List only the package names: diff --git a/tldr/linux/pacman-sync b/tldr/linux/pacman-sync index 8670df26..2bfa3a6c 100644 --- a/tldr/linux/pacman-sync +++ b/tldr/linux/pacman-sync @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `sudo pacman -Syu --noconfirm {{package}}` -- [s]earch the package database for a regular expression or keyword: +- [s]earch the package database for a `regex` or keyword: `pacman -Ss "{{search_pattern}}"` diff --git a/tldr/linux/pct b/tldr/linux/pct index 88d1bec2..8ae1e8ce 100644 --- a/tldr/linux/pct +++ b/tldr/linux/pct @@ -18,24 +18,24 @@ source: https://github.com/tldr-pages/tldr.git - Access a specific container's shell: -`pct enter {{100}}` +`pct {{[en|enter]}} {{100}}` - Create a container from template: -`pct create {{100}} {{/var/lib/vz/template/cache/distro-name.tar.zst}} -hostname {{hostname}} -password {{password}} --rootfs {{local-lvm}} --on-boot` +`pct {{[cr|create]}} {{100}} {{/var/lib/vz/template/cache/distro-name.tar.zst}} -hostname {{hostname}} -password {{password}} --rootfs {{local-lvm}} --on-boot` - Resize the container's disk to 20G: -`pct resize {{100}} {{rootfs|mpX}} {{20G}}` +`pct {{[resi|resize]]} {{100}} {{rootfs|mpX}} {{20G}}` - Show the configuration of a container, specifying its ID: -`pct config {{100}}` +`pct {{[conf|config]}} {{100}}` - Snapshot a specific container with description: -`pct snapshot {{100}} {{my-snapshot}} --description {{My snapshot description}}` +`pct {{[sn|snapshot]}} {{100}} {{my-snapshot}} --description {{My snapshot description}}` - Destroy a container and remove all related resources: -`pct destroy {{100}} --purge` +`pct {{[des|destroy]}} {{100}} --purge` diff --git a/tldr/linux/perl-rename b/tldr/linux/perl-rename index 871a120c..a796e33f 100644 --- a/tldr/linux/perl-rename +++ b/tldr/linux/perl-rename @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > Note: This page refers to the command from the `perl-rename` Arch Linux package. > More information: . -- Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found): +- Rename files using a Perl Common `regex` (substitute 'foo' with 'bar' wherever found): `rename {{'s/foo/bar/'}} {{*}}` diff --git a/tldr/linux/prename b/tldr/linux/prename index 3b3598d8..8594bc1d 100644 --- a/tldr/linux/prename +++ b/tldr/linux/prename @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > Note: This page refers to the command from the `prename` Fedora package. > More information: . -- Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found): +- Rename files using a Perl Common `regex` (substitute 'foo' with 'bar' wherever found): `rename {{'s/foo/bar/'}} {{*}}` diff --git a/tldr/linux/qm b/tldr/linux/qm index 24843bac..d0abac75 100644 --- a/tldr/linux/qm +++ b/tldr/linux/qm @@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git - Using an ISO file uploaded on the local storage, create a virtual machine with a 4 GB IDE disk on the `local-lvm` storage and an ID of 100: -`qm create {{100}} -ide0 {{local-lvm:4}} -net0 {{e1000}} -cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}` +`qm {{[cr|create]}} {{100}} -ide0 {{local-lvm:4}} -net0 {{e1000}} -cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}` - Show the configuration of a virtual machine, specifying its ID: -`qm config {{100}}` +`qm {{[co|config]}} {{100}}` - Start a specific virtual machine: @@ -27,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git - Send a shutdown request, then wait until the virtual machine is stopped: -`qm shutdown {{100}} && qm wait {{100}}` +`qm {{[shu|shutdown]}} {{100}} && qm {{[w|wait]}} {{100}}` - Destroy a virtual machine and remove all related resources: -`qm destroy {{100}} --purge` +`qm {{[des|destroy]}} {{100}} --purge` diff --git a/tldr/linux/qm-cleanup b/tldr/linux/qm-cleanup index 0058a3fd..3d3201a6 100644 --- a/tldr/linux/qm-cleanup +++ b/tldr/linux/qm-cleanup @@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git - Clean up resources: -`qm cleanup {{vm_id}} {{clean-shutdown}} {{guest-requested}}` +`qm {{[cl|cleanup]}} {{vm_id}} {{clean-shutdown}} {{guest-requested}}` diff --git a/tldr/linux/qm-cloudinit b/tldr/linux/qm-cloudinit new file mode 100644 index 00000000..cb3657f3 --- /dev/null +++ b/tldr/linux/qm-cloudinit @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# qm cloudinit + +> Configure cloudinit settings for virtual machines managed by Proxmox Virtual Environment (PVE). +> More information: . + +- Configure cloudinit settings for a specific user and set password for the user: + +`qm {{[clou|cloudinit]}} {{vm_id}} -user={{user}} -password={{password}}` + +- Configure cloudinit settings for a specific user and set password for the user with a specific SSH key: + +`qm {{[clou|cloudinit]}} {{vm_id}} -user={{user}} -password={{password}} -sshkey={{ssh_key}}` + +- Set the hostname for a specific virtual machine: + +`qm {{[clou|cloudinit]}} {{vm_id}} -hostname={{hostname}}` + +- Configure the network interface settings for a specific virtual machine: + +`qm {{[clou|cloudinit]}} {{vm_id}} -ipconfig {{ipconfig}}` + +- Configure a shell script to execute before `cloud-ini` is run on a virtual machine: + +`qm {{[clou|cloudinit]}} {{vm_id}} -pre {{script}}` diff --git a/tldr/linux/qm-cloudinit-dump b/tldr/linux/qm-cloudinit-dump index 6b4a8638..36fab548 100644 --- a/tldr/linux/qm-cloudinit-dump +++ b/tldr/linux/qm-cloudinit-dump @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Generate a cloudinit file for a specific configuration type: -`qm cloudinit dump {{virtual_machine_id}} {{meta|network|user}}` +`qm {{[clou|cloudinit]}} dump {{virtual_machine_id}} {{meta|network|user}}` diff --git a/tldr/linux/qm-config b/tldr/linux/qm-config index eb01e91f..c796cd13 100644 --- a/tldr/linux/qm-config +++ b/tldr/linux/qm-config @@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git - Display the virtual machine configuration: -`qm config {{vm_id}}` +`qm {{[co|config]}} {{vm_id}}` - Display the current configuration values instead of pending values for the virtual machine: -`qm config --current {{true}} {{vm_id}}` +`qm {{[co|config]}} --current {{true}} {{vm_id}}` - Fetch the configuration values from the given snapshot: -`qm config --snapshot {{snapshot_name}} {{vm_id}}` +`qm {{[co|config]}} --snapshot {{snapshot_name}} {{vm_id}}` diff --git a/tldr/linux/qm-create b/tldr/linux/qm-create index 1dea1c40..a9e4733d 100644 --- a/tldr/linux/qm-create +++ b/tldr/linux/qm-create @@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git - Create a virtual machine: -`qm create {{100}}` +`qm {{[cr|create]}} {{100}}` - Automatically start the machine after creation: -`qm create {{100}} --start 1` +`qm {{[cr|create]}} {{100}} --start 1` - Specify the type of operating system on the machine: -`qm create {{100}} --ostype {{win10}}` +`qm {{[cr|create]}} {{100}} --ostype {{win10}}` - Replace an existing machine (requires archiving it): -`qm create {{100}} --archive {{path/to/backup_file.tar}} --force 1` +`qm {{[cr|create]}} {{100}} --archive {{path/to/backup_file.tar}} --force 1` - Specify a script that is executed automatically depending on the state of the virtual machine: -`qm create {{100}} --hookscript {{path/to/script.pl}}` +`qm {{[cr|create]}} {{100}} --hookscript {{path/to/script.pl}}` diff --git a/tldr/linux/qm-delsnapshot b/tldr/linux/qm-delsnapshot index f52a18c9..2a1e0cc2 100644 --- a/tldr/linux/qm-delsnapshot +++ b/tldr/linux/qm-delsnapshot @@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git - Delete a snapshot: -`qm delsnapshot {{vm_id}} {{snapshot_name}}` +`qm {{[del|delsnapshot]}} {{vm_id}} {{snapshot_name}}` - Delete a snapshot from a configuration file (even if removing the disk snapshot fails): -`qm delsnapshot {{vm_id}} {{snapshot_name}} --force 1` +`qm {{[del|delsnapshot]}} {{vm_id}} {{snapshot_name}} --force 1` diff --git a/tldr/linux/qm-destroy b/tldr/linux/qm-destroy index 6e755a7d..e80f6d32 100644 --- a/tldr/linux/qm-destroy +++ b/tldr/linux/qm-destroy @@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git - Destroy a specific virtual machine: -`qm destroy {{vm_id}}` +`qm {{[des|destroy]}} {{vm_id}}` - Destroy all disks that are not explicitly referenced in a specific virtual machine's configuration: -`qm destroy {{vm_id}} --destroy-unreferenced-disks` +`qm {{[des|destroy]}} {{vm_id}} --destroy-unreferenced-disks` - Destroy a virtual machine and remove from all locations (inventory, backup jobs, high availability managers, etc.): -`qm destroy {{vm_id}} --purge` +`qm {{[des|destroy]}} {{vm_id}} --purge` - Destroy a specific virtual machine ignoring locks and forcing destroy: -`sudo qm destroy {{vm_id}} --skiplock` +`sudo qm {{[des|destroy]}} {{vm_id}} --skiplock` diff --git a/tldr/linux/qm-disk-import b/tldr/linux/qm-disk-import index ee157dc5..670a0197 100644 --- a/tldr/linux/qm-disk-import +++ b/tldr/linux/qm-disk-import @@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git - Import a VMDK/qcow2/raw disk image using a specific storage name: -`qm disk import {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}` +`qm {{[di|disk]}} import {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}` diff --git a/tldr/linux/qm-disk-move b/tldr/linux/qm-disk-move index cebe5526..23ec2b26 100644 --- a/tldr/linux/qm-disk-move +++ b/tldr/linux/qm-disk-move @@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git - Move a virtual disk: -`qm disk move {{vm_id}} {{destination}} {{index}}` +`qm {{[di|disk]}} move {{vm_id}} {{destination}} {{index}}` - Delete the previous copy of the virtual disk: -`qm disk move -delete {{vm_id}} {{destination}} {{index}}` +`qm {{[di|disk]}} move -delete {{vm_id}} {{destination}} {{index}}` diff --git a/tldr/linux/qm-disk-resize b/tldr/linux/qm-disk-resize index 53825321..6ca0c779 100644 --- a/tldr/linux/qm-disk-resize +++ b/tldr/linux/qm-disk-resize @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Add `n` gigabytes to a virtual disk: -`qm disk resize {{vm_id}} {{disk_name}} +{{n}}G` +`qm {{[di|disk]}} resize {{vm_id}} {{disk_name}} +{{n}}G` diff --git a/tldr/linux/qm-guest-cmd b/tldr/linux/qm-guest-cmd index dd078158..dc30cf99 100644 --- a/tldr/linux/qm-guest-cmd +++ b/tldr/linux/qm-guest-cmd @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Execute a specific QEMU Guest Agent command: -`qm guest cmd {{virtual_machine_id}} {{fsfreeze-freeze|fsfreeze-status|fsfreeze-thaw|fstrim|get-fsinfo|...}}` +`qm {{[g|guest]}} cmd {{virtual_machine_id}} {{fsfreeze-freeze|fsfreeze-status|fsfreeze-thaw|fstrim|get-fsinfo|...}}` diff --git a/tldr/linux/qm-guest-exec b/tldr/linux/qm-guest-exec index 4155fea7..41e098cb 100644 --- a/tldr/linux/qm-guest-exec +++ b/tldr/linux/qm-guest-exec @@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git - Execute a specific command via a guest agent: -`qm guest exec {{vm_id}} {{command}} {{argument1 argument2 ...}}` +`qm {{[g|guest]}} exec {{vm_id}} {{command}} {{argument1 argument2 ...}}` - Execute a specific command via a guest agent asynchronously: -`qm guest exec {{vm_id}} {{argument1 argument2 ...}} --synchronous 0` +`qm {{[g|guest]}} exec {{vm_id}} {{argument1 argument2 ...}} --synchronous 0` - Execute a specific command via a guest agent with a specified timeout of 10 seconds: -`qm guest exec {{vm_id}} {{argument1 argument2...}} --timeout {{10}}` +`qm {{[g|guest]}} exec {{vm_id}} {{argument1 argument2...}} --timeout {{10}}` - Execute a specific command via a guest agent and forward input from `stdin` until EOF to the guest agent: -`qm guest exec {{vm_id}} {{argument1 argument2 ...}} --pass-stdin 1` +`qm {{[g|guest]}} exec {{vm_id}} {{argument1 argument2 ...}} --pass-stdin 1` diff --git a/tldr/linux/qm-guest-exec-status b/tldr/linux/qm-guest-exec-status index 34da91a9..d0d68a27 100644 --- a/tldr/linux/qm-guest-exec-status +++ b/tldr/linux/qm-guest-exec-status @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Print the status of a specific PID: -`qm guest exec-status {{vm_id}} {{pid}}` +`qm {{[g|guest]}} exec-status {{vm_id}} {{pid}}` diff --git a/tldr/linux/qm-guest-passwd b/tldr/linux/qm-guest-passwd index be55e2f6..3330c4bf 100644 --- a/tldr/linux/qm-guest-passwd +++ b/tldr/linux/qm-guest-passwd @@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git - Set a password for a specific user in a virtual machine interactively: -`qm guest passwd {{vm_id}} {{username}}` +`qm {{[g|guest]}} passwd {{vm_id}} {{username}}` - Set an already hashed password for a specific user in a virtual machine interactively: -`qm guest passwd {{vm_id}} {{username}} --crypted 1` +`qm {{[g|guest]}} passwd {{vm_id}} {{username}} --crypted 1` diff --git a/tldr/linux/qm-help b/tldr/linux/qm-help index 03d76f7c..537341ab 100644 --- a/tldr/linux/qm-help +++ b/tldr/linux/qm-help @@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git - Display help for a specific command: -`qm help {{command}}` +`qm {{[h|help]}} {{command}}` - Display help for a specific command with detailed information: -`qm help {{command}} --verbose {{true|false}}` +`qm {{[h|help]}} {{command}} --verbose {{true|false}}` diff --git a/tldr/linux/qm-listsnapshot b/tldr/linux/qm-listsnapshot index 410dd84a..4f0d06a8 100644 --- a/tldr/linux/qm-listsnapshot +++ b/tldr/linux/qm-listsnapshot @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - List all snapshots of a specific virtual machine: -`qm listsnapshot {{vm_id}}` +`qm {{[lists|listsnapshot]}} {{vm_id}}` diff --git a/tldr/linux/qm-migrate b/tldr/linux/qm-migrate index 9f9e084a..8bfa2df4 100644 --- a/tldr/linux/qm-migrate +++ b/tldr/linux/qm-migrate @@ -11,20 +11,20 @@ source: https://github.com/tldr-pages/tldr.git - Migrate a specific virtual machine: -`qm migrate {{vm_id}} {{target}}` +`qm {{[mi|migrate]}} {{vm_id}} {{target}}` - Override the current I/O bandwidth limit with 10 KiB/s: -`qm migrate {{vm_id}} {{target}} --bwlimit 10` +`qm {{[mi|migrate]}} {{vm_id}} {{target}} --bwlimit 10` - Allow migration of virtual machines using local devices (root only): -`qm migrate {{vm_id}} {{target}} --force true` +`qm {{[mi|migrate]}} {{vm_id}} {{target}} --force true` - Use online/live migration if a virtual machine is running: -`qm migrate {{vm_id}} {{target}} --online true` +`qm {{[mi|migrate]}} {{vm_id}} {{target}} --online true` - Enable live storage migration for local disks: -`qm migrate {{vm_id}} {{target}} --with-local-disks true` +`qm {{[mi|migrate]}} {{vm_id}} {{target}} --with-local-disks true` diff --git a/tldr/linux/qm-monitor b/tldr/linux/qm-monitor index b39a745c..bcf0c388 100644 --- a/tldr/linux/qm-monitor +++ b/tldr/linux/qm-monitor @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Enter the QEMU Monitor interface of a specific virtual machine: -`qm monitor {{vm_id}}` +`qm {{[mo|monitor]}} {{vm_id}}` diff --git a/tldr/linux/qm-mtunnel b/tldr/linux/qm-mtunnel index e2acb85e..1081a1a9 100644 --- a/tldr/linux/qm-mtunnel +++ b/tldr/linux/qm-mtunnel @@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git - Command used by `qmigrate` during data migration from a VM to another host: -`qm mtunnel` +`qm {{[mt|mtunnel]}}` diff --git a/tldr/linux/qm-nbdstop b/tldr/linux/qm-nbdstop index dce1e81b..a0be9612 100644 --- a/tldr/linux/qm-nbdstop +++ b/tldr/linux/qm-nbdstop @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Stop embedded nbd server: -`qm nbdstop {{VM_ID}}` +`qm {{[n|nbdstop]}} {{VM_ID}}` diff --git a/tldr/linux/qm-pending b/tldr/linux/qm-pending index 8c3a3479..d9e512ed 100644 --- a/tldr/linux/qm-pending +++ b/tldr/linux/qm-pending @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Get the virtual machine configuration of a specific virtual machine: -`qm pending {{vm_id}}` +`qm {{[p|pending]}} {{vm_id}}` diff --git a/tldr/linux/qm-reboot b/tldr/linux/qm-reboot index f0e350ba..af11e57c 100644 --- a/tldr/linux/qm-reboot +++ b/tldr/linux/qm-reboot @@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git - Reboot a virtual machine: -`qm reboot {{vm_id}}` +`qm {{[reb|reboot]}} {{vm_id}}` - Reboot a virtual machine after wait for at most 10 seconds: -`qm reboot --timeout {{10}} {{vm_id}}` +`qm {{[reb|reboot]}} --timeout {{10}} {{vm_id}}` diff --git a/tldr/linux/qm-resume b/tldr/linux/qm-resume index 2e76642b..914b682b 100644 --- a/tldr/linux/qm-resume +++ b/tldr/linux/qm-resume @@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git - Resume a specific virtual machine: -`qm resume {{vm_id}}` +`qm {{[resu|resume]}} {{vm_id}}` - Resume a specific virtual machine ignoring locks (requires root): -`sudo qm resume {{vm_id}} --skiplock true` +`sudo qm {{[resu|resume]}} {{vm_id}} --skiplock true` diff --git a/tldr/linux/qm-rollback b/tldr/linux/qm-rollback index e2a91558..0dda1f83 100644 --- a/tldr/linux/qm-rollback +++ b/tldr/linux/qm-rollback @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Rollback the state of a specific VM to a specified snapshot: -`qm rollback {{vm_id}} {{snap_name}}` +`qm {{[ro|rollback]}} {{vm_id}} {{snap_name}}` diff --git a/tldr/linux/qm-sendkey b/tldr/linux/qm-sendkey index e10b44a9..ea1c4522 100644 --- a/tldr/linux/qm-sendkey +++ b/tldr/linux/qm-sendkey @@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git - Send the specified key event to a specific virtual machine: -`qm sendkey {{vm_id}} {{key}}` +`qm {{[sen|sendkey]}} {{vm_id}} {{key}}` - Allow root user to send key event and ignore locks: -`qm sendkey --skiplock {{true}} {{vm_id}} {{key}}` +`qm {{[sen|sendkey]}} --skiplock {{true}} {{vm_id}} {{key}}` diff --git a/tldr/linux/qm-showcmd b/tldr/linux/qm-showcmd index c4fd373b..bf0d800d 100644 --- a/tldr/linux/qm-showcmd +++ b/tldr/linux/qm-showcmd @@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git - Show command-line for a specific virtual machine: -`qm showcmd {{vm_id}}` +`qm {{[sho|showcmd]}} {{vm_id}}` - Put each option on a new line to enhance human readability: -`qm showcmd --pretty {{true}} {{vm_id}}` +`qm {{[sho|showcmd]}} --pretty {{true}} {{vm_id}}` - Fetch configuration values from a specific snapshot: -`qm showcmd --snapshot {{string}} {{vm_id}}` +`qm {{[sho|showcmd]}} --snapshot {{string}} {{vm_id}}` diff --git a/tldr/linux/qm-shutdown b/tldr/linux/qm-shutdown index 83285f41..25bdb011 100644 --- a/tldr/linux/qm-shutdown +++ b/tldr/linux/qm-shutdown @@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git - Shutdown a virtual machine: -`qm shutdown {{VM_ID}}` +`qm {{[shu|shutdown]}} {{VM_ID}}` - Shutdown a virtual machine after wait for at most 10 seconds: -`qm shutdown --timeout {{10}} {{VM_ID}}` +`qm {{[shu|shutdown]}} --timeout {{10}} {{VM_ID}}` - Shutdown a virtual machine and do not deactivate storage volumes: -`qm shutdown --keepActive {{true}} {{VM_ID}}` +`qm {{[shu|shutdown]}} --keepActive {{true}} {{VM_ID}}` - Shutdown a virtual machine and skip lock (only root can use this option): -`qm shutdown --skiplock {{true}} {{VM_ID}}` +`qm {{[shu|shutdown]}} --skiplock {{true}} {{VM_ID}}` - Stop and shutdown a virtual machine: -`qm shutdown --forceStop {{true}} {{VM_ID}}` +`qm {{[shu|shutdown]}} --forceStop {{true}} {{VM_ID}}` diff --git a/tldr/linux/qm-snapshot b/tldr/linux/qm-snapshot index 935e3b30..c198c3f1 100644 --- a/tldr/linux/qm-snapshot +++ b/tldr/linux/qm-snapshot @@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git - Create a snapshot of a specific virtual machine: -`qm snapshot {{vm_id}} {{snapshot_name}}` +`qm {{[sn|snapshot]}} {{vm_id}} {{snapshot_name}}` - Create a snapshot with a specific description: -`qm snapshot {{vm_id}} {{snapshot_name}} --description {{description}}` +`qm {{[sn|snapshot]}} {{vm_id}} {{snapshot_name}} --description {{description}}` - Create a snapshot including the vmstate: -`qm snapshot {{vm_id}} {{snapshot_name}} --description {{description}} --vmstate 1` +`qm {{[sn|snapshot]}} {{vm_id}} {{snapshot_name}} --description {{description}} --vmstate 1` diff --git a/tldr/linux/qm-status b/tldr/linux/qm-status index 168b025c..172d338c 100644 --- a/tldr/linux/qm-status +++ b/tldr/linux/qm-status @@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git - Display the status of a specific virtual machine: -`qm status {{vm_id}}` +`qm {{[stat|status]}} {{vm_id}}` - Display detailed status of a specific virtual machine: -`qm status --verbose {{true}} {{vm_id}}` +`qm {{[stat|status]}} --verbose {{true}} {{vm_id}}` diff --git a/tldr/linux/qm-suspend b/tldr/linux/qm-suspend index ac7f0a62..44c50b7c 100644 --- a/tldr/linux/qm-suspend +++ b/tldr/linux/qm-suspend @@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git - Suspend a virtual machine by ID: -`qm suspend {{vm_id}} {{integer}}` +`qm {{[su|suspend]}} {{vm_id}} {{integer}}` - Skip the lock check when suspending the VM: -`qm suspend {{vm_id}} {{integer}} --skiplock` +`qm {{[su|suspend]}} {{vm_id}} {{integer}} --skiplock` - Skip the lock check for storage when suspending the VM: -`qm suspend {{vm_id}} {{integer}} --skiplockstorage` +`qm {{[su|suspend]}} {{vm_id}} {{integer}} --skiplockstorage` diff --git a/tldr/linux/qm-template b/tldr/linux/qm-template index 4f6a6a6f..7f697d4a 100644 --- a/tldr/linux/qm-template +++ b/tldr/linux/qm-template @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Create a template out of a specific virtual machine: -`qm template {{vm_id}}` +`qm {{[tem|template]}} {{vm_id}}` diff --git a/tldr/linux/qm-unlock b/tldr/linux/qm-unlock index 59df2d3b..e6ab23d0 100644 --- a/tldr/linux/qm-unlock +++ b/tldr/linux/qm-unlock @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Unlock a specific virtual machine: -`qm unlock {{vm_id}}` +`qm {{[u|unlock]}} {{vm_id}}` diff --git a/tldr/linux/qm-vncproxy b/tldr/linux/qm-vncproxy index d4752b78..aa2465ba 100644 --- a/tldr/linux/qm-vncproxy +++ b/tldr/linux/qm-vncproxy @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Proxy a specific virtual machine: -`qm vncproxy {{vm_id}}` +`qm {{[v|vncproxy]}} {{vm_id}}` diff --git a/tldr/linux/qm-wait b/tldr/linux/qm-wait index 10c18ccf..4e3669be 100644 --- a/tldr/linux/qm-wait +++ b/tldr/linux/qm-wait @@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git - Wait until the virtual machine is stopped: -`qm wait {{vm_id}}` +`qm {{[w|wait]}} {{vm_id}}` - Wait until the virtual machine is stopped with a 10 second timeout: -`qm wait --timeout {{10}} {{vm_id}}` +`qm {{[w|wait]}} --timeout {{10}} {{vm_id}}` - Send a shutdown request, then wait until the virtual machine is stopped with a 10 second timeout: -`qm shutdown {{vm_id}} && qm wait --timeout {{10}} {{vm_id}}` +`qm {{[shu|shutdown]}} {{vm_id}} && qm {{[w|wait]}} --timeout {{10}} {{vm_id}}` diff --git a/tldr/linux/rnm b/tldr/linux/rnm index 4fd6df9f..70e0a79a 100644 --- a/tldr/linux/rnm +++ b/tldr/linux/rnm @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `rnm -ss {{old}} -rs {{new}} {{path/to/directory}}` -- Use a fixed (literal) search and replace string instead of regex: +- Use a fixed (literal) search and replace string instead of `regex`: `rnm -ssf {{old}} -rs {{new}} {{path/to/files}}` diff --git a/tldr/linux/sed b/tldr/linux/sed index 06ec6964..7fa9278d 100644 --- a/tldr/linux/sed +++ b/tldr/linux/sed @@ -9,15 +9,15 @@ source: https://github.com/tldr-pages/tldr.git > See also: `awk`, `ed`. > More information: . -- Replace `apple` with `mango` on all lines using basic regex, print to `stdout`: +- Replace `apple` with `mango` on all lines using basic `regex`, print to `stdout`: `{{command}} | sed 's/apple/mango/g'` -- Replace `apple` with `APPLE` on all lines using extended regex, print to `stdout`: +- Replace `apple` with `APPLE` on all lines using extended `regex`, print to `stdout`: `{{command}} | sed {{[-E|--regexp-extended]}} 's/(apple)/\U\1/g'` -- Use basic regex to replace `apple` with `mango` and `orange` with `lime` in-place in a file (overwriting original file): +- Use basic `regex` to replace `apple` with `mango` and `orange` with `lime` in-place in a file (overwriting original file): `sed {{[-i|--in-place]}} -e 's/apple/mango/g' -e 's/orange/lime/g' {{path/to/file}}` diff --git a/tldr/linux/semanage-fcontext b/tldr/linux/semanage-fcontext index 5b9db5ed..b8102fe4 100644 --- a/tldr/linux/semanage-fcontext +++ b/tldr/linux/semanage-fcontext @@ -17,11 +17,11 @@ source: https://github.com/tldr-pages/tldr.git `sudo semanage fcontext {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}` -- Add a user-defined rule that labels any path which matches a PCRE regex: +- Add a user-defined rule that labels any path which matches a PCRE `regex`: `sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} {{'/mnt/share(/.*)?'}}` -- Delete a user-defined rule using its PCRE regex: +- Delete a user-defined rule using its PCRE `regex`: `sudo semanage fcontext {{[-d|--delete]}} {{'/mnt/share(/.*)?'}}` diff --git a/tldr/linux/sqfstar b/tldr/linux/sqfstar index 923716d8..aec628e1 100644 --- a/tldr/linux/sqfstar +++ b/tldr/linux/sqfstar @@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git `zstdcat {{archive.tar.zst}} | sqfstar {{filesystem.squashfs}} "{{*.gz}}"` -- Create a squashfs filesystem from a tar archive compressed with `lz4`, excluding files matching a regular expression: +- Create a squashfs filesystem from a tar archive compressed with `lz4`, excluding files matching a `regex`: -`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regular_expression}}"` +`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regex}}"` diff --git a/tldr/linux/whatis b/tldr/linux/whatis index b5b868ec..1cfec302 100644 --- a/tldr/linux/whatis +++ b/tldr/linux/whatis @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `whatis --wildcard {{net*}}` -- Search man page descriptions with a regular expression: +- Search man page descriptions with a `regex`: `whatis --regex '{{wish[0-9]\.[0-9]}}'` diff --git a/tldr/linux/xbps-query b/tldr/linux/xbps-query index 14d05e9d..84014211 100644 --- a/tldr/linux/xbps-query +++ b/tldr/linux/xbps-query @@ -9,9 +9,9 @@ source: https://github.com/tldr-pages/tldr.git > See also: `xbps`. > More information: . -- Search for a package in remote repositories using a regular expression or a keyword (if `--regex` is omitted): +- Search for a package in remote repositories using a `regex` or a keyword (if `--regex` is omitted): -`xbps-query {{[-s|--search]}} {{regular_expression|keyword}} --repository --regex` +`xbps-query {{[-s|--search]}} {{regex|keyword}} --repository --regex` - Show information about an installed package: diff --git a/tldr/mlr b/tldr/mlr index 11105d62..fd68b605 100644 --- a/tldr/mlr +++ b/tldr/mlr @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Filter lines of a compressed CSV file treating numbers as [S]trings: -`mlr --prepipe 'gunzip' {{[-c|--csv]}} filter {{[-S|--infer-none]}} '${{fieldName}} =~ "{{regular_expression}}"' {{example.csv.gz}}` +`mlr --prepipe 'gunzip' {{[-c|--csv]}} filter {{[-S|--infer-none]}} '${{fieldName}} =~ "{{regex}}"' {{example.csv.gz}}` diff --git a/tldr/mocha b/tldr/mocha index 871decae..541f0ba7 100644 --- a/tldr/mocha +++ b/tldr/mocha @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Run tests that match a specific `grep` pattern: -`mocha --grep {{regular_expression}}` +`mocha --grep {{regex}}` - Run tests on changes to JavaScript files in the current directory and once initially: diff --git a/tldr/ncu b/tldr/ncu index 78e998d1..05dc1167 100644 --- a/tldr/ncu +++ b/tldr/ncu @@ -29,7 +29,7 @@ source: https://github.com/tldr-pages/tldr.git `ncu --target {{minor}}` -- List outdated dependencies that match a keyword or regular expression: +- List outdated dependencies that match a keyword or `regex`: `ncu --filter {{keyword|/regex/}}` diff --git a/tldr/netbsd/sed b/tldr/netbsd/sed index a67a8d3f..17a332d7 100644 --- a/tldr/netbsd/sed +++ b/tldr/netbsd/sed @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > See also: `awk`, `ed`. > More information: . -- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`: +- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`: `{{command}} | sed 's/apple/mango/g'` @@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git `{{command}} | sed -fg {{path/to/script.sed}}` -- Replace all `apple` (extended regex) occurrences with `APPLE` (extended regex) in all input lines and print the result to `stdout`: +- Replace all `apple` (extended `regex`) occurrences with `APPLE` (extended `regex`) in all input lines and print the result to `stdout`: `{{command}} | sed -E 's/(apple)/\U\1/g'` @@ -33,6 +33,6 @@ source: https://github.com/tldr-pages/tldr.git `{{command}} | sed -n '1p'` -- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a specific file and overwrite the original file in place: +- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in a specific file and overwrite the original file in place: `sed -i 's/apple/mango/g' {{path/to/file}}` diff --git a/tldr/ngrep b/tldr/ngrep index 1dd91354..ce694c35 100644 --- a/tldr/ngrep +++ b/tldr/ngrep @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # ngrep -> Filter network traffic packets using regular expressions. +> Filter network traffic packets using `regex`. > More information: . - Capture traffic of all interfaces: diff --git a/tldr/nix-classic b/tldr/nix-classic index a01168e6..0d02cf37 100644 --- a/tldr/nix-classic +++ b/tldr/nix-classic @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git - Search for a package in nixpkgs via its name: -`nix-env {{[-qaP|--query --available --attr-path]}} {{search_term_regexp}}` +`nix-env {{[-qaP|--query --available --attr-path]}} {{search_term_regex}}` - Start a shell with the specified packages available: diff --git a/tldr/nl b/tldr/nl index cb1ba4e1..c7330dee 100644 --- a/tldr/nl +++ b/tldr/nl @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `nl -b {{a|n}} {{path/to/file}}` -- Number only the [b]ody lines that match a basic regular expression (BRE) [p]attern: +- Number only the [b]ody lines that match a basic `regex` (BRE) [p]attern: `nl -b p'FooBar[0-9]' {{path/to/file}}` diff --git a/tldr/nvim b/tldr/nvim index 09bf470a..75d2d539 100644 --- a/tldr/nvim +++ b/tldr/nvim @@ -30,9 +30,9 @@ source: https://github.com/tldr-pages/tldr.git `{{search_pattern}}` -- Perform a regular expression substitution in the whole file: +- Perform a `regex` substitution in the whole file: -`<:>%s/{{regular_expression}}/{{replacement}}/g` +`<:>%s/{{regex}}/{{replacement}}/g` - Enter normal mode and save (write) the file, and quit: diff --git a/tldr/onefetch b/tldr/onefetch index 2cf9afb6..c266e6d7 100644 --- a/tldr/onefetch +++ b/tldr/onefetch @@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git - Ignore the specified files and directories: -`onefetch {{[-e|--exclude]}} {{path/to/file_or_directory|regular_expression}}` +`onefetch {{[-e|--exclude]}} {{path/to/file_or_directory|regex}}` - Only detect languages from the specified categories (default: programming and markup): diff --git a/tldr/openbsd/sed b/tldr/openbsd/sed index 196e2aa9..edae2272 100644 --- a/tldr/openbsd/sed +++ b/tldr/openbsd/sed @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > See also: `awk`, `ed`. > More information: . -- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`: +- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`: `{{command}} | sed 's/apple/mango/g'` @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `{{command}} | sed -fa {{path/to/script.sed}}` -- Replace all `apple` (extended regex) occurrences with `APPLE` (extended regex) in all input lines and print the result to `stdout`: +- Replace all `apple` (extended `regex`) occurrences with `APPLE` (extended `regex`) in all input lines and print the result to `stdout`: `{{command}} | sed -E 's/(apple)/\U\1/g'` @@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git `{{command}} | sed -n '1p'` -- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a specific file and overwrite the original file in place: +- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in a specific file and overwrite the original file in place: `sed -i 's/apple/mango/g' {{path/to/file}}` diff --git a/tldr/osx/rename b/tldr/osx/rename index bdce45f4..34a8f7ce 100644 --- a/tldr/osx/rename +++ b/tldr/osx/rename @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # rename -> Rename a file or group of files with a regular expression. +> Rename a file or group of files with a `regex`. > More information: . - Replace `from` with `to` in the filenames of the specified files: diff --git a/tldr/osx/sed b/tldr/osx/sed index f829ad98..31540977 100644 --- a/tldr/osx/sed +++ b/tldr/osx/sed @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > See also: `awk`, `ed`. > More information: . -- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`: +- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`: `{{command}} | sed 's/apple/mango/g'` @@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git `{{command}} | sed -f {{path/to/script_file.sed}}` -- Replace all `apple` (extended regex) occurrences with `APPLE` (extended regex) in all input lines and print the result to `stdout`: +- Replace all `apple` (extended `regex`) occurrences with `APPLE` (extended `regex`) in all input lines and print the result to `stdout`: `{{command}} | sed -E 's/(apple)/\U\1/g'` @@ -25,6 +25,6 @@ source: https://github.com/tldr-pages/tldr.git `{{command}} | sed -n '1p'` -- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a `file` and save a backup of the original to `file.bak`: +- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in a `file` and save a backup of the original to `file.bak`: `sed -i bak 's/apple/mango/g' {{path/to/file}}` diff --git a/tldr/osx/split b/tldr/osx/split index 4cc838c6..9192efdc 100644 --- a/tldr/osx/split +++ b/tldr/osx/split @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `split -l 10 {{path/to/file}}` -- Split a file by a regular expression. The matching line will be the first line of the next output file: +- Split a file by a `regex`. The matching line will be the first line of the next output file: `split -p {{cat|^[dh]og}} {{path/to/file}}` diff --git a/tldr/perl b/tldr/perl index 1d96b7c7..52b1aba9 100644 --- a/tldr/perl +++ b/tldr/perl @@ -8,15 +8,15 @@ source: https://github.com/tldr-pages/tldr.git > The Perl 5 language interpreter. > More information: . -- Print lines from `stdin` [m/] matching regex1 and case insensitive [/i] regex2: +- Print lines from `stdin` [m/] matching `regex1` and case insensitive [/i] `regex2`: `perl -n -e 'print if m/{{regex1}}/ and m/{{regex2}}/i'` -- Say [-E] first match group, using a regexp, ignoring space in regex [/x]: +- Say [-E] first match group, using a `regex`, ignoring space in `regex` [/x]: `perl -n -E 'say $1 if m/{{before}} ( {{group_regex}} ) {{after}}/x'` -- [-i]n-place, with backup, [s/] substitute all occurrence [/g] of regex with replacement: +- [-i]n-place, with backup, [s/] substitute all occurrence [/g] of `regex` with replacement: `perl -i'.bak' -p -e 's/{{regex}}/{{replacement}}/g' {{path/to/files}}` diff --git a/tldr/pt b/tldr/pt index 7f48cbc7..4f7ed53a 100644 --- a/tldr/pt +++ b/tldr/pt @@ -21,10 +21,10 @@ source: https://github.com/tldr-pages/tldr.git `pt {{[-wi|--word-regexp --ignore-case]}} {{foo}}` -- Find "foo" in files with a given extension using a regular expression: +- Find "foo" in files with a given extension using a `regex`: `pt {{[-G|--file-search-regexp]}}='{{\.bar$}}' {{foo}}` -- Find files whose contents match the regular expression, up to 2 directories deep: +- Find files whose contents match the `regex`, up to 2 directories deep: `pt --depth={{2}} -e '{{^ba[rz]*$}}'` diff --git a/tldr/ptargrep b/tldr/ptargrep index d452174c..bb9bc4bd 100644 --- a/tldr/ptargrep +++ b/tldr/ptargrep @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # ptargrep -> Find regular expression patterns in tar archive files. +> Find `regex` patterns in tar archive files. > More information: . - Search for a pattern within one or more tar archives: diff --git a/tldr/recsel b/tldr/recsel index 90dbbd06..efe2a966 100644 --- a/tldr/recsel +++ b/tldr/recsel @@ -12,10 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `recsel {{[-p|--print]}} name,version {{data.rec}}` -- Use "~" to match a string with a given regular expression: +- Use "~" to match a string with a given `regex`: -`recsel {{[-e|--expression]}} "{{field_name}} ~ '{{regular_expression}}' {{data.rec}}"` +`recsel {{[-e|--expression]}} "{{field_name}} ~ '{{regex}}' {{data.rec}}"` - Use a predicate to match a name and a version: -`recsel {{[-e|--expression]}} "name ~ '{{regular_expression}}' && version ~ '{{regular_expression}}'" {{data.rec}}` +`recsel {{[-e|--expression]}} "name ~ '{{regex}}' && version ~ '{{regex}}'" {{data.rec}}` diff --git a/tldr/repren b/tldr/repren index 8fb47aac..729db1db 100644 --- a/tldr/repren +++ b/tldr/repren @@ -12,9 +12,9 @@ source: https://github.com/tldr-pages/tldr.git `repren {{[-n|--dry-run]}} --rename --literal --from '{{find_string}}' --to '{{replacement_string}}' {{*.png}}` -- Do a dry-run renaming a directory of JPEGs with a regular expression: +- Do a dry-run renaming a directory of JPEGs with a `regex`: -`repren --rename {{[-n|--dry-run]}} --from '{{regular_expression}}' --to '{{replacement_string}}' {{*.jpg}} {{*.jpeg}}` +`repren --rename {{[-n|--dry-run]}} --from '{{regex}}' --to '{{replacement_string}}' {{*.jpg}} {{*.jpeg}}` - Do a find-and-replace on the contents of a directory of CSV files: diff --git a/tldr/rg b/tldr/rg index af73412a..71f7d6c8 100644 --- a/tldr/rg +++ b/tldr/rg @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > Aims to be a faster alternative to `grep`. > More information: . -- Recursively search current directory for a pattern (regular expression): +- Recursively search current directory for a pattern (`regex`): `rg {{pattern}}` diff --git a/tldr/rga b/tldr/rga index 4f8d2e38..d7e4b2f7 100644 --- a/tldr/rga +++ b/tldr/rga @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Search recursively for a pattern in all files in the current directory: -`rga {{regular_expression}}` +`rga {{regex}}` - List available adapters: @@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git - Change which adapters to use (e.g. ffmpeg, pandoc, poppler etc.): -`rga --rga-adapters={{adapter1,adapter2}} {{regular_expression}}` +`rga --rga-adapters={{adapter1,adapter2}} {{regex}}` - Search for a pattern using the mime type instead of the file extension (slower): -`rga --rga-accurate {{regular_expression}}` +`rga --rga-accurate {{regex}}` - Display help: diff --git a/tldr/rgrep b/tldr/rgrep index 32197e6b..9a2a16f5 100644 --- a/tldr/rgrep +++ b/tldr/rgrep @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # rgrep -> Recursively find patterns in files using regular expressions. +> Recursively find patterns in files using `regex`. > Equivalent to `grep -r`. > More information: . @@ -17,11 +17,11 @@ source: https://github.com/tldr-pages/tldr.git `rgrep {{[-i|--ignore-case]}} "{{search_pattern}}"` -- Recursively search for an extended regular expression pattern (supports `?`, `+`, `{}`, `()` and `|`) in the current working directory: +- Recursively search for an extended `regex` pattern (supports `?`, `+`, `{}`, `()` and `|`) in the current working directory: `rgrep {{[-E|--extended-regexp]}} "{{search_pattern}}"` -- Recursively search for an exact string (disables regular expressions) in the current working directory: +- Recursively search for an exact string (disables `regex`) in the current working directory: `rgrep {{[-F|--fixed-strings]}} "{{exact_string}}"` diff --git a/tldr/ropgadget b/tldr/ropgadget index 9ff5816d..19e54dd7 100644 --- a/tldr/ropgadget +++ b/tldr/ropgadget @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `ROPgadget --binary {{path/to/binary}}` -- Filter gadgets in the binary file by a regular expression: +- Filter gadgets in the binary file by a `regex`: `ROPgadget --binary {{path/to/binary}} --re {{regex}}` diff --git a/tldr/ropper b/tldr/ropper index 5937a8ba..62fcb063 100644 --- a/tldr/ropper +++ b/tldr/ropper @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `ropper --file {{path/to/binary}}` -- Filter gadgets in the binary file by a regular expression: +- Filter gadgets in the binary file by a `regex`: `ropper --file {{path/to/binary}} --search {{regex}}` diff --git a/tldr/sd b/tldr/sd index fcff4da7..48e75314 100644 --- a/tldr/sd +++ b/tldr/sd @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Intuitive find and replace. > More information: . -- Trim some whitespace using a regular expression (output stream: `stdout`): +- Trim some whitespace using a `regex` (output stream: `stdout`): `{{echo 'lorem ipsum 23 '}} | sd '\s+$' ''` diff --git a/tldr/sed b/tldr/sed index d497e6c5..9d09ae5c 100644 --- a/tldr/sed +++ b/tldr/sed @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > See also: `awk`, `ed`. > More information: . -- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`: +- Replace all `apple` (basic `regex`) occurrences with `mango` (basic `regex`) in all input lines and print the result to `stdout`: `{{command}} | sed 's/apple/mango/g'` diff --git a/tldr/smbmap b/tldr/smbmap index 97e42a2d..3d62d216 100644 --- a/tldr/smbmap +++ b/tldr/smbmap @@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git `smbmap {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -d {{domain}} -H {{ip_or_hostname}}` -- Locate and download files [R]ecursively up to N levels depth, searching for filename pattern (regex), and excluding certain shares: +- Locate and download files [R]ecursively up to N levels depth, searching for filename pattern (`regex`), and excluding certain shares: `smbmap --host-file {{path/to/file}} {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -q -R --depth {{number}} --exclude {{sharename}} -A {{filepattern}}` @@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git `smbmap {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -d {{domain}} -H {{ip_or_hostname}} --upload {{path/to/file}} '{{/share_name/remote_filename}}'` -- Display SMB shares and recursively list directories and files, searching for file content matching a regular expression: +- Display SMB shares and recursively list directories and files, searching for file content matching a `regex`: `smbmap {{[-u|--username]}} {{username}} --prompt -H {{ip}} -R -F {{pattern}}` diff --git a/tldr/stern b/tldr/stern index 5d6d4984..17236461 100644 --- a/tldr/stern +++ b/tldr/stern @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `stern . --container-state {{running|waiting|terminated}}` -- Tail all pods that matches a given regular expression: +- Tail all pods that matches a given `regex`: `stern {{pod_query}}` diff --git a/tldr/stow b/tldr/stow index 10037c5c..209c5e43 100644 --- a/tldr/stow +++ b/tldr/stow @@ -26,6 +26,6 @@ source: https://github.com/tldr-pages/tldr.git `stow {{[-R|--restow]}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}` -- Exclude files matching a regular expression: +- Exclude files matching a `regex`: -`stow --ignore={{regular_expression}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}` +`stow --ignore={{regex}} {{[-t|--target]}} {{path/to/target_directory}} {{file1 directory1 file2 directory2}}` diff --git a/tldr/tac b/tldr/tac index da1c7b82..d3b09485 100644 --- a/tldr/tac +++ b/tldr/tac @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `tac {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}` -- Use a specific regex as a separator: +- Use a specific `regex` as a separator: `tac {{[-r|--regex]}} {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}` diff --git a/tldr/tlmgr-search b/tldr/tlmgr-search index 9da6a07a..902ae3c6 100644 --- a/tldr/tlmgr-search +++ b/tldr/tlmgr-search @@ -5,25 +5,25 @@ source: https://github.com/tldr-pages/tldr.git --- # tlmgr search -> Search for TeX Live packages using (Perl) regular expressions. +> Search for TeX Live packages using (Perl) `regex`. > More information: . -- Search for a package name and descriptions of all locally installed packages from a specific regular expression: +- Search for a package name and descriptions of all locally installed packages from a specific `regex`: -`tlmgr search "{{regular_expression}}"` +`tlmgr search "{{regex}}"` -- Search for all file names of all locally installed packages from a regular expression: +- Search for all file names of all locally installed packages from a `regex`: -`tlmgr search --file "{{regular_expression}}"` +`tlmgr search --file "{{regex}}"` -- Search for all file names, package names, and descriptions of all locally installed packages from a regular expression: +- Search for all file names, package names, and descriptions of all locally installed packages from a `regex`: -`tlmgr search --all "{{regular_expression}}"` +`tlmgr search --all "{{regex}}"` - Search the TeX Live database, instead of the local installation: -`tlmgr search --global "{{regular_expression}}"` +`tlmgr search --global "{{regex}}"` - Restrict the matches for package names and descriptions (but not for file names) to whole words: -`tlmgr search --all --word "{{regular_expression}}"` +`tlmgr search --all --word "{{regex}}"` diff --git a/tldr/trawl b/tldr/trawl index 7189f4bf..3660e92c 100644 --- a/tldr/trawl +++ b/tldr/trawl @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `trawl -n` -- Filter interface names using a case-insensitive regular expression: +- Filter interface names using a case-insensitive `regex`: `trawl -f wi` diff --git a/tldr/tre b/tldr/tre index ede371fd..27b28331 100644 --- a/tldr/tre +++ b/tldr/tre @@ -29,9 +29,9 @@ source: https://github.com/tldr-pages/tldr.git `tre --editor {{command}}` -- Print files within the tree hierarchy, excluding all paths that match the provided regular expression: +- Print files within the tree hierarchy, excluding all paths that match the provided `regex`: -`tre --exclude {{regular_expression}}` +`tre --exclude {{regex}}` - Display version: diff --git a/tldr/tuc b/tldr/tuc index 59b0f9e2..9dd8345a 100644 --- a/tldr/tuc +++ b/tldr/tuc @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `echo "foo bar baz" | tuc {{[-d|--delimiter]}} ' ' {{[-f|--fields]}} {{2:}}` -- Cut using regular expressions: +- Cut using `regex`: `echo "a,b, c" | tuc {{[-e|--regex]}} '{{[, ]+}}' {{[-f|--fields]}} {{1,3}}` diff --git a/tldr/ugrep b/tldr/ugrep index bf88aae7..bab015aa 100644 --- a/tldr/ugrep +++ b/tldr/ugrep @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `ugrep {{[-Q|--query]}}` -- Search the current directory recursively for files containing a regex search pattern: +- Search the current directory recursively for files containing a `regex` search pattern: `ugrep "{{search_pattern}}"` diff --git a/tldr/varnishlog b/tldr/varnishlog index 34433485..4678b9ba 100644 --- a/tldr/varnishlog +++ b/tldr/varnishlog @@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git `varnishlog -q 'ReqURL eq "{{/path}}"'` -- Only display requests to paths matching a regular expression: +- Only display requests to paths matching a `regex`: `varnishlog -q 'ReqURL ~ "{{regex}}"'` diff --git a/tldr/vim b/tldr/vim index f211dabc..692d4e77 100644 --- a/tldr/vim +++ b/tldr/vim @@ -34,9 +34,9 @@ source: https://github.com/tldr-pages/tldr.git `{{search_pattern}}` -- Perform a regular expression substitution in the whole file: +- Perform a `regex` substitution in the whole file: -`<:>%s/{{regular_expression}}/{{replacement}}/g` +`<:>%s/{{regex}}/{{replacement}}/g` - Display the line numbers: diff --git a/tldr/vitest b/tldr/vitest index d42c5ff1..2814741c 100644 --- a/tldr/vitest +++ b/tldr/vitest @@ -16,13 +16,13 @@ source: https://github.com/tldr-pages/tldr.git `vitest run {{path/to/file1 path/to/file2 ...}}` -- Run the test suites from files within the current and subdirectories, whose paths match the given regular expression: +- Run the test suites from files within the current and subdirectories, whose paths match the given `regex`: -`vitest run {{regular_expression1}} {{regular_expression2}}` +`vitest run {{regex1}} {{regex2}}` -- Run the tests whose names match the given regular expression: +- Run the tests whose names match the given `regex`: -`vitest run --testNamePattern {{regular_expression}}` +`vitest run --testNamePattern {{regex}}` - Watch files for changes and automatically re-run related tests: diff --git a/tldr/windows/es b/tldr/windows/es index f542fd0f..7438974d 100644 --- a/tldr/windows/es +++ b/tldr/windows/es @@ -13,9 +13,9 @@ source: https://github.com/tldr-pages/tldr.git `es {{search_term}}` -- Search using a regular expression: +- Search using a `regex`: -`es -r {{regex_pattern}}` +`es -r {{regex}}` - Match whole words: diff --git a/tldr/windows/findstr b/tldr/windows/findstr index 54f3542b..23debef2 100644 --- a/tldr/windows/findstr +++ b/tldr/windows/findstr @@ -24,9 +24,9 @@ source: https://github.com/tldr-pages/tldr.git `findstr /i "{{string1 string2 ...}}" *` -- Find strings in all files using regular expressions: +- Find strings in all files using `regex`: -`findstr /r "{{expression}}" *` +`findstr /r "{{regex}}" *` - Find a literal string (containing spaces) in all text files: diff --git a/tldr/windows/select-string b/tldr/windows/select-string index 3dafd7d6..6b3c2a18 100644 --- a/tldr/windows/select-string +++ b/tldr/windows/select-string @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git `Select-String -Path "{{path o ile}}" -Pattern '{{search_pattern}}'` -- Search for an exact string (disables regular expressions): +- Search for an exact string (disables `regex`): `Select-String -SimpleMatch "{{exact_string}}" {{path o ile}}` diff --git a/tldr/xzgrep b/tldr/xzgrep index 5f7592af..b7c2d30b 100644 --- a/tldr/xzgrep +++ b/tldr/xzgrep @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # xzgrep -> Search files possibly compressed with `xz`, `lzma`, `gzip`, `bzip2`, `lzop`, or `zstd` using regular expressions. +> Search files possibly compressed with `xz`, `lzma`, `gzip`, `bzip2`, `lzop`, or `zstd` using `regex`. > See also: `grep`. > More information: . @@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git `xzgrep "{{search_pattern}}" {{path/to/file}}` -- Search for an exact string (disables regular expressions): +- Search for an exact string (disables `regex`): `xzgrep {{[-F|--fixed-strings]}} "{{exact_string}}" {{path/to/file}}` @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `xzgrep {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}` -- Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode: +- Use extended `regex` (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode: `xzgrep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}` diff --git a/tldr/z b/tldr/z index cde09962..e2040043 100644 --- a/tldr/z +++ b/tldr/z @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # z -> Tracks the most used (by frequency) directories and enables quickly navigating to them using string patterns or regular expressions. +> Tracks the most used (by frequency) directories and enables quickly navigating to them using string patterns or `regex`. > More information: . - Go to a directory that contains "foo" in the name: diff --git a/tldr/zegrep b/tldr/zegrep index edec2693..27aea01a 100644 --- a/tldr/zegrep +++ b/tldr/zegrep @@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git --- # zegrep -> Find extended regular expression patterns in compressed files using `egrep`. +> Find extended `regex` patterns in compressed files using `egrep`. > More information: . -- Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive): +- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive): `zegrep "{{search_pattern}}" {{path/to/file}}` -- Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive): +- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive): `zegrep {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}` diff --git a/tldr/zgrep b/tldr/zgrep index 43e78ac0..135dcad2 100644 --- a/tldr/zgrep +++ b/tldr/zgrep @@ -28,9 +28,9 @@ source: https://github.com/tldr-pages/tldr.git `zgrep {{[-e|--regexp]}} "{{pattern_1}}" {{[-e|--regexp]}} "{{pattern_2}}" {{path/to/compressed/file}}` -- Use extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`): +- Use extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`): -`zgrep {{[-E|--extended-regexp]}} {{regular_expression}} {{path/to/file}}` +`zgrep {{[-E|--extended-regexp]}} {{regex}} {{path/to/file}}` - Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match: diff --git a/tldr/zipgrep b/tldr/zipgrep index e7b45f42..2568f853 100644 --- a/tldr/zipgrep +++ b/tldr/zipgrep @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # zipgrep -> Find patterns in files in a Zip archive using extended regular expression (supports `?`, `+`, `{}`, `()` and `|`). +> Find patterns in files in a Zip archive using extended `regex` (supports `?`, `+`, `{}`, `()` and `|`). > More information: . - Search for a pattern within a Zip archive: diff --git a/tldr/zmore b/tldr/zmore index 618b9756..0e693bd3 100644 --- a/tldr/zmore +++ b/tldr/zmore @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Search for a pattern in the file (press `` to go to next match): -`{{regular_expression}}` +`{{regex}}` - Exit: diff --git a/tldr/zmv b/tldr/zmv index 5442e8e8..a2a5a71f 100644 --- a/tldr/zmv +++ b/tldr/zmv @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > See also `zcp` and `zln`. > More information: . -- Move files using a regular expression-like pattern: +- Move files using a `regex`-like pattern: `zmv '{{(*).log}}' '{{$1.txt}}'`