diff --git a/tldr/grep b/tldr/grep index f7b489a7..b712e933 100644 --- a/tldr/grep +++ b/tldr/grep @@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git - Search for a pattern in all files recursively in a directory, showing line numbers of matches, ignoring binary files: -`grep {{[-r|--recursive]}} {{[-n|--line-number]}} {{[-I|--binary-files=without-match]}} "{{search_pattern}}" {{path/to/directory}}` +`grep {{[-rnI|--recursive --line-number --binary-files=without-match]}} "{{search_pattern}}" {{path/to/directory}}` - Use extended regular expressions (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode: -`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}` +`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{search_pattern}}" {{path/to/file}}` - Print 3 lines of [C]ontext around, [B]efore or [A]fter each match: @@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git - Print file name and line number for each match with color output: -`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{search_pattern}}" {{path/to/file}}` +`grep {{[-Hn|--with-filename --line-number]}} --color=always "{{search_pattern}}" {{path/to/file}}` - Search for lines matching a pattern, printing only the matched text: diff --git a/tldr/hexedit b/tldr/hexedit new file mode 100644 index 00000000..ab08ca20 --- /dev/null +++ b/tldr/hexedit @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# hexedit + +> File editor for hexadecimal and ASCII content. +> More information: . + +- Open file: + +`hexedit {{path/to/file}}` + +- Display file with sectors: + +`hexedit {{[-s|--sector]}} {{path/to/file}}` + +- Maximize file display: + +`hexedit {{[-m|--maximize]}} {{path/to/file}}` + +- Display help: + +`hexedit {{[-h|--help]}}` diff --git a/tldr/linux/pw-cli b/tldr/linux/pw-cli index c732bbbd..ab99d19c 100644 --- a/tldr/linux/pw-cli +++ b/tldr/linux/pw-cli @@ -8,14 +8,22 @@ source: https://github.com/tldr-pages/tldr.git > Manage a PipeWire instance's modules, objects, nodes, devices, links and much more. > More information: . -- Print all nodes (sinks and sources) along with their IDs: +- Print information of all object of a specific type: -`pw-cli list-objects Node` +`pw-cli {{[ls|list-objects]}} {{Node|Link|Port|Client|Device|Metadata|Factory|Module|Profiler|SecurityContext|Core}}` - Print information about an object with a specific ID: -`pw-cli info {{4}}` +`pw-cli {{[i|info]}} {{4}}` - Print all objects' information: -`pw-cli info all` +`pw-cli {{[i|info]}} all` + +- Monitor for object changes: + +`pw-cli {{[-m|--monitor]}}` + +- Display help: + +`pw-cli {{[h|help]}}` diff --git a/tldr/linux/virt-what b/tldr/linux/virt-what new file mode 100644 index 00000000..ee61a6df --- /dev/null +++ b/tldr/linux/virt-what @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# virt-what + +> Shell script that detects if you are running in a virtual machine. +> Outputs a specific code for a virtual machine if detected. +> More information: . + +- Detect if you are running in a virtual machine: + +`virt-what` + +- Log output of `virt-what` into a file: + +`virt-what > {{path/to/file}}` + +- Display version: + +`virt-what --version` diff --git a/tldr/linux/wpexec b/tldr/linux/wpexec new file mode 100644 index 00000000..fb74848d --- /dev/null +++ b/tldr/linux/wpexec @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# wpexec + +> Run WirePlumber Lua scripts. +> See also: `wpctl`, `wireplumber`. +> More information: . + +- Run a WirePlumber script: + +`wpexec {{path/to/file.lua}}` + +- Display help: + +`wpexec --help` diff --git a/tldr/nano b/tldr/nano index a4ea3292..fa40e6e0 100644 --- a/tldr/nano +++ b/tldr/nano @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nano > Command-line text editor. An enhanced `Pico` clone. +> See also: `pico`, `rnano`. > More information: . - Start the editor: diff --git a/tldr/on_ac_power b/tldr/on_ac_power new file mode 100644 index 00000000..e8a8d9cf --- /dev/null +++ b/tldr/on_ac_power @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# on_ac_power + +> A simple utility which tests if a computer is running on line power. +> Returns `0` if yes, and `1` if no. +> More information: . + +- Test if a computer is running on line power: + +`on_ac_power` diff --git a/tldr/pico b/tldr/pico new file mode 100644 index 00000000..f9c8b13a --- /dev/null +++ b/tldr/pico @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pico + +> Text editor styled after the Alpine Composer. +> More information: . + +- Start the editor: + +`pico {{path/to/file}}` + +- Start the editor with the cursor located n lines into the file: + +`pico +{{n}} {{path/to/file}}` + +- Start the editor with the cursor shown before the current selection: + +`pico -g {{path/to/file}}` + +- Define the quote string for files such as email: + +`pico -Q "{{quotestring}}" {{path/to/file}}` + +- Enable mouse functionality when run within an `xterm` window: + +`pico -m {{path/to/file}}` + +- Set the operating directory for `pico`: + +`pico -o {{path/to/directory}}` + +- Enable "view only" mode, which disallows any edits: + +`pico -v {{path/to/file}}` + +- Displays all files including those beginning with a period: + +`pico -a` diff --git a/tldr/pkgz b/tldr/pkgz new file mode 100644 index 00000000..99c81b33 --- /dev/null +++ b/tldr/pkgz @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pkgz + +> Unified package manager for installing, removing, updating, and searching packages from multiple sources. +> More information: . + +- Install a package: + +`pkgz install {{package_name}}` + +- Remove a package: + +`pkgz remove {{package_name}}` + +- Search for a package: + +`pkgz search {{package_name}}` + +- Update all packages in all sources: + +`pkgz update` + +- Display version: + +`pkgz --version` diff --git a/tldr/pwqgen b/tldr/pwqgen new file mode 100644 index 00000000..89104636 --- /dev/null +++ b/tldr/pwqgen @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pwqgen + +> Generate a random passphrase. +> See also: `libpasswdqc`. +> More information: . + +- Generate a passphrase: + +`pwqgen` + +- Generate a passphrase with a specific bit size between 24 and 136: + +`pwqgen random={{bitsize}}` + +- Use a config file to control password generation: + +`pwqgen config={{path/to/config_file}}` + +- Display help: + +`pwqgen {{[-h|--help]}}` + +- Display version: + +`pwqgen --version` diff --git a/tldr/qemu-system-riscv64 b/tldr/qemu-system-riscv64 new file mode 100644 index 00000000..e65316cb --- /dev/null +++ b/tldr/qemu-system-riscv64 @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# qemu-system-riscv64 + +> Emulate `riscv64` architecture. +> More information: . + +- Boot a kernel emulating `riscv64` architecture: + +`qemu-system-riscv64 {{[-M|-machine]}} virt -bios none -kernel {{kernel.elf}} -nographic` + +- List supported machine types: + +`qemu-system-riscv64 {{[-M|-machine]}} help` + +- Exit non-graphical QEMU: + +`` diff --git a/tldr/rnano b/tldr/rnano new file mode 100644 index 00000000..ed85020d --- /dev/null +++ b/tldr/rnano @@ -0,0 +1,23 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# rnano + +> A restricted version of `nano`. +> Command-line text editor with restricted drive access. +> See also: `nano`. +> More information: . + +- Start the editor: + +`rnano` + +- Open a specific file: + +`rnano {{path/to/file}}` + +- Display help: + +`rnano {{[-h|--help]}}`