mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}} <Enter> {{multiline_data}} <Enter> {{EOF}}`
|
||||
|
||||
- Disregard leading tabs (good for scripts with indentation but does not work for spaces):
|
||||
|
||||
`cat <<- {{EOF}} > {{path/to/file.txt}} <Enter> {{multiline_data}} <Enter> {{EOF}}`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pw-cat
|
||||
|
||||
> Play and record audio files through PipeWire.
|
||||
> More information: <https://fedoraproject.org/wiki/QA:Testcase_PipeWire_PipeWire_CLI>.
|
||||
> More information: <https://docs.pipewire.org/page_man_pw-cat_1.html>.
|
||||
|
||||
- Play a WAV file over the default target:
|
||||
|
||||
|
||||
@@ -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: <https://fedoraproject.org/wiki/QA:Testcase_PipeWire_PipeWire_CLI>.
|
||||
> 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`
|
||||
|
||||
@@ -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: <https://fedoraproject.org/wiki/QA:Testcase_PipeWire_PipeWire_CLI>.
|
||||
> 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`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
37
tldr/picotool
Executable file
37
tldr/picotool
Executable file
@@ -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: <https://github.com/raspberrypi/picotool>.
|
||||
|
||||
- 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`
|
||||
24
tldr/tput
24
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}}`
|
||||
|
||||
Reference in New Issue
Block a user