From 1c7d3e3ebc2bf95ccd5b773636c9ab58dcaaa103 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 16 Mar 2024 00:12:33 +0000 Subject: [PATCH] Update cheatsheets --- tldr/figlet | 12 ++++++++++-- tldr/linux/choom | 21 +++++++++++++++++++++ tldr/linux/iptables-save | 2 +- tldr/perldoc | 2 +- tldr/wdiff | 21 +++++++++++++++++++++ 5 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 tldr/linux/choom create mode 100644 tldr/wdiff diff --git a/tldr/figlet b/tldr/figlet index d2fa121f..7cd028cd 100644 --- a/tldr/figlet +++ b/tldr/figlet @@ -13,11 +13,11 @@ source: https://github.com/tldr-pages/tldr.git `figlet {{input_text}}` -- Use a custom font file: +- Use a custom [f]ont file: `figlet {{input_text}} -f {{path/to/font_file.flf}}` -- Use a font from the default font directory (the extension can be omitted): +- Use a [f]ont from the default font directory (the extension can be omitted): `figlet {{input_text}} -f {{font_filename}}` @@ -28,3 +28,11 @@ source: https://github.com/tldr-pages/tldr.git - Show available FIGlet fonts: `showfigfonts {{optional_string_to_display}}` + +- Use the full width of the [t]erminal and [c]enter the input text: + +`figlet -t -c {{input_text}}` + +- Display all characters at full [W]idth to avoid overlapping: + +`figlet -W {{input_text}}` diff --git a/tldr/linux/choom b/tldr/linux/choom new file mode 100644 index 00000000..2322d69f --- /dev/null +++ b/tldr/linux/choom @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# choom + +> Display and change the adjust out-of-memory killer score. +> More information: . + +- Display the OOM-killer score of the process with a specific ID: + +`choom -p {{pid}}` + +- Change the adjust OOM-killer score of a specific process: + +`choom -p {{pid}} -n {{-1000..+1000}}` + +- Run a command with a specific adjust OOM-killer score: + +`choom -n {{-1000..+1000}} {{command}} {{argument1 argument2 ...}}` diff --git a/tldr/linux/iptables-save b/tldr/linux/iptables-save index 42f5487e..8ea2d2c4 100644 --- a/tldr/linux/iptables-save +++ b/tldr/linux/iptables-save @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # iptables-save > Save the `iptables` IPv4 configuration. -> Use `ip6tables-save` to to the same for IPv6. +> Use `ip6tables-save` to the same for IPv6. > More information: . - Print the `iptables` configuration: diff --git a/tldr/perldoc b/tldr/perldoc index 93fa1764..8265d515 100644 --- a/tldr/perldoc +++ b/tldr/perldoc @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `perldoc -{{f|v|a}} {{name}}` -- Search in the the question headings of Perl FAQ: +- Search in the question headings of Perl FAQ: `perldoc -q {{regex}}` diff --git a/tldr/wdiff b/tldr/wdiff new file mode 100644 index 00000000..ae12ee1c --- /dev/null +++ b/tldr/wdiff @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# wdiff + +> Display word differences between text files. +> More information: . + +- Compare two files: + +`wdiff {{path/to/file1}} {{path/to/file2}}` + +- Ignore case when comparing: + +`wdiff --ignore-case {{path/to/file1}} {{path/to/file2}}` + +- Display how many words are deleted, inserted or replaced: + +`wdiff --statistics {{path/to/file1}} {{path/to/file2}}`