mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-03 18:43:38 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/figlet
12
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}}`
|
||||
|
||||
21
tldr/linux/choom
Normal file
21
tldr/linux/choom
Normal file
@@ -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: <https://manned.org/choom>.
|
||||
|
||||
- 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 ...}}`
|
||||
@@ -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: <https://manned.org/iptables-save>.
|
||||
|
||||
- Print the `iptables` configuration:
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
|
||||
21
tldr/wdiff
Normal file
21
tldr/wdiff
Normal file
@@ -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: <https://www.gnu.org/software/wdiff/>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user