diff --git a/tldr/linux/dmesg b/tldr/linux/dmesg index dd08db80..43c37b82 100644 --- a/tldr/linux/dmesg +++ b/tldr/linux/dmesg @@ -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` diff --git a/tldr/linux/pinout b/tldr/linux/pinout index 5901d7c7..5d8f3ef3 100644 --- a/tldr/linux/pinout +++ b/tldr/linux/pinout @@ -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: . +> More information: . - View the pinout information and GPIO header diagram for the current Raspberry Pi: diff --git a/tldr/msgfmt b/tldr/msgfmt new file mode 100644 index 00000000..7f817f98 --- /dev/null +++ b/tldr/msgfmt @@ -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: . + +- Convert a `.po` file to a `.mo` file: + +`msgfmt {{path/to/file.po}} -o {{path/to/file.mo}}` diff --git a/tldr/msgunfmt b/tldr/msgunfmt new file mode 100644 index 00000000..0b0c5df3 --- /dev/null +++ b/tldr/msgunfmt @@ -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: . + +- Output conversion: + +`msgunfmt {{path/to/file.mo}}` + +- Convert a `.mo` file to a `.po` file: + +`msgunfmt {{path/to/file.mo}} > {{path/to/file.po}}`