Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-01 00:19:08 +00:00
parent 3b917fb090
commit c03ad03251
4 changed files with 39 additions and 9 deletions

View File

@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
- Show kernel messages:
`dmesg`
`sudo dmesg`
- Show kernel error messages:
`dmesg --level err`
`sudo dmesg --level err`
- Show kernel messages and keep reading new ones, similar to `tail -f` (available in kernels 3.5.0 and newer):
`dmesg -w`
`sudo dmesg -w`
- Show how much physical memory is available on this system:
`dmesg | grep -i memory`
`sudo dmesg | grep -i memory`
- Show kernel messages 1 page at a time:
`dmesg | less`
`sudo dmesg | less`
- Show kernel messages with a timestamp (available in kernels 3.5.0 and newer):
`dmesg -T`
`sudo dmesg -T`
- Show kernel messages in human-readable form (available in kernels 3.5.0 and newer):
`dmesg -H`
`sudo dmesg -H`
- Colorize output (available in kernels 3.5.0 and newer):
`dmesg -L`
`sudo dmesg -L`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pinout
> View the current Raspberry Pi's GPIO pin-out information on the terminal with an ASCII diagram.
> More information: <https://www.raspberrypi.org/documentation/computers/os.html#gpio-pinout>.
> More information: <https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#view-a-gpio-pinout-for-your-raspberry-pi>.
- View the pinout information and GPIO header diagram for the current Raspberry Pi:

13
tldr/msgfmt Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# msgfmt
> Compile message catalog to binary format.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/msgfmt-Invocation.html>.
- Convert a `.po` file to a `.mo` file:
`msgfmt {{path/to/file.po}} -o {{path/to/file.mo}}`

17
tldr/msgunfmt Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# msgunfmt
> Decompile message catalog from the binary format.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/msgunfmt-Invocation.html>.
- Output conversion:
`msgunfmt {{path/to/file.mo}}`
- Convert a `.mo` file to a `.po` file:
`msgunfmt {{path/to/file.mo}} > {{path/to/file.po}}`