diff --git a/tldr/less-than b/tldr/less-than index b645a597..0638a3af 100644 --- a/tldr/less-than +++ b/tldr/less-than @@ -19,3 +19,15 @@ source: https://github.com/tldr-pages/tldr.git - Create a here string and pass that into `stdin` (achieves the same effect as `echo string |`): `{{command}} <<< {{string}}` + +- Process data from a file and write the output to another file: + +`{{command}} < {{path/to/file.txt}} > {{path/to/file2.txt}}` + +- Write a here document into a file: + +`cat << {{EOF}} > {{path/to/file.txt}} {{multiline_data}} {{EOF}}` + +- Disregard leading tabs (good for scripts with indentation but does not work for spaces): + +`cat <<- {{EOF}} > {{path/to/file.txt}} {{multiline_data}} {{EOF}}` diff --git a/tldr/linux/inxi b/tldr/linux/inxi index 9f60945d..3c47f4ec 100644 --- a/tldr/linux/inxi +++ b/tldr/linux/inxi @@ -12,10 +12,30 @@ source: https://github.com/tldr-pages/tldr.git `inxi` -- Print a full description of CPU, memory, disk, network and process information: +- Print a full description of CPU, memory, disk, network, and process information and filter sensitive information: -`inxi -Fz` +`inxi --expanded --filter` -- Print information about the distribution's repository: +- Print a summary of CPU information: -`inxi -r` +`inxi --cpu` + +- Print a summary of graphics information: + +`inxi --graphics` + +- Print a summary of system RAM: + +`inxi --memory` + +- Print a summary of system audio: + +`inxi --audio` + +- Print available sensor data: + +`inxi --sensors` + +- Print information about the distribution's repositories: + +`inxi --repos` diff --git a/tldr/linux/kill b/tldr/linux/kill index ed9b27b2..0075fdf6 100644 --- a/tldr/linux/kill +++ b/tldr/linux/kill @@ -13,9 +13,9 @@ source: https://github.com/tldr-pages/tldr.git `kill {{process_id}}` -- List signal values and their corresponding names (to be used without the `SIG` prefix): +- List signal values and their corresponding names (to be used without the `SIG` prefix). The available options may depend on the `kill` implementation: -`kill -L` +`kill {{-l|-L|--table}}` - Terminate a background job: diff --git a/tldr/linux/pacman-sync b/tldr/linux/pacman-sync index eeaeaa06..97d98da6 100644 --- a/tldr/linux/pacman-sync +++ b/tldr/linux/pacman-sync @@ -33,10 +33,10 @@ source: https://github.com/tldr-pages/tldr.git `sudo pacman -Syu --overwrite {{path/to/file}}` -- [S]ynchronize and [u]pdate all packages, but ignore a specific package (can be used more than once): - -`sudo pacman -Syu --ignore {{package1 package2 ...}}` - - Remove not installed packages and unused repositories from the cache (use the flags `Sc` to [c]lean all packages): `sudo pacman -Sc` + +- Specify the package version you want to install: + +`sudo pacman -S {{package}}={{version}}` diff --git a/tldr/linux/pw-cat b/tldr/linux/pw-cat index 6b06df82..06920149 100644 --- a/tldr/linux/pw-cat +++ b/tldr/linux/pw-cat @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pw-cat > Play and record audio files through PipeWire. -> More information: . +> More information: . - Play a WAV file over the default target: diff --git a/tldr/linux/pw-play b/tldr/linux/pw-play index 141ce842..0397632b 100644 --- a/tldr/linux/pw-play +++ b/tldr/linux/pw-play @@ -5,15 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # pw-play -> Play audio files through PipeWire. -> Shorthand for `pw-cat --playback`. -> See also: `play`. -> More information: . +> This command is an alias of `pw-cat --playback`. -- Play a WAV sound file over the default target: +- View documentation for the original command: -`pw-play {{path/to/file.wav}}` - -- Play a WAV sound file at a different volume level: - -`pw-play --volume={{0.1}} {{path/to/file.wav}}` +`tldr pw-cat` diff --git a/tldr/linux/pw-record b/tldr/linux/pw-record index 06ec22a5..40747bf1 100644 --- a/tldr/linux/pw-record +++ b/tldr/linux/pw-record @@ -5,18 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # pw-record -> Record audio files through PipeWire. -> Shorthand for pw-cat --record. -> More information: . +> This command is an alias of `pw-cat --record`. -- Record a sample recording using the default target: +- View documentation for the original command: -`pw-record {{path/to/file.wav}}` - -- Record a sample recording at a different volume level: - -`pw-record --volume={{0.1}} {{path/to/file.wav}}` - -- Record a sample recording using a different sample rate: - -`pw-record --rate={{6000}} {{path/to/file.wav}}` +`tldr pw-cat` diff --git a/tldr/linux/waypipe b/tldr/linux/waypipe index 8958e7f1..75cbd46f 100644 --- a/tldr/linux/waypipe +++ b/tldr/linux/waypipe @@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Open an SSH tunnel to run any program remotely and display it locally: `waypipe ssh {{user}}@{{server}}` + +- Skip testing for Vulkan support: + +`waypipe --test-skip-vulkan ssh {{user}}@{{server}} {{program}}` diff --git a/tldr/picotool b/tldr/picotool new file mode 100755 index 00000000..4e7974a3 --- /dev/null +++ b/tldr/picotool @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# picotool + +> Manage Raspberry Pi Pico boards. +> More information: . + +- Display information about the currently loaded program on a Pico: + +`picotool info` + +- Load a binary onto a Pico: + +`picotool load {{path/to/binary}}` + +- Convert an ELF or BIN file to UF2: + +`picotool uf2 convert {{path/to/elf_or_bin}} {{path/to/output}}` + +- Reboot a Pico: + +`picotool reboot` + +- List all known registers: + +`picotool otp list` + +- Display version: + +`picotool version` + +- Display help: + +`picotool help` diff --git a/tldr/tput b/tldr/tput index c3bc2b6c..8d654647 100644 --- a/tldr/tput +++ b/tldr/tput @@ -16,18 +16,26 @@ source: https://github.com/tldr-pages/tldr.git `tput {{setaf|setab}} {{ansi_color_code}}` +- Reverse text and background colors: + +`tput rev` + +- Reset all terminal text attributes: + +`tput sgr0` + - Show number of columns, lines, or colors: `tput {{cols|lines|colors}}` -- Ring the terminal bell: - -`tput bel` - -- Reset all terminal attributes: - -`tput sgr0` - - Enable or disable word wrap: `tput {{smam|rmam}}` + +- Hide or show the terminal cursor: + +`tput {{civis|cnorm}}` + +- Save or restore terminal text status (smcup also captures scroll wheel events): + +`tput {{smcup|rmcup}}`