Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-13 00:20:51 +00:00
parent 2c1898f6e4
commit 489b2e0e99
106 changed files with 322 additions and 306 deletions

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Convert PDF file (pages 1 through 3) to an image with 150 dpi resolution:
`gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=jpeg -r150 -dFirstPage={{1}} -dLastPage={{3}} -sOutputFile={{output_%d.jpg}} {{input.pdf}}`
`gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=jpeg -r150 -dFirstPage=1 -dLastPage=3 -sOutputFile={{output_%d.jpg}} {{input.pdf}}`
- Extract pages from a PDF file:

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Write output of specified file to the specified host on the specified port:
`ncat {{address}} {{port}} < {{path/to/file}}`
`ncat < {{path/to/file}} {{address}} {{port}}`
- Accept multiple incoming connections on an encrypted channel evading detection of traffic content:

33
tldr/linux/pkgstats Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pkgstats
> Submit and view Arch Linux package popularity statistics.
> More information: <https://github.com/archlinux-de/pkgstats-cli#usage>.
- Send installed package data:
`pkgstats submit`
- View the sent data:
`pkgstats submit {{[-d|--dump-json]}}`
- Search for packages:
`pkgstats search {{search_term}}`
- Limit search result count (10 by default):
`pkgstats search {{search_term}} {{[-l|--limit]}} {{count}}`
- Pick packages for comparison:
`pkgstats show {{package1 package2 ...}}`
- Display help:
`pkgstats {{[-h|--help]}}`

View File

@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
# postfix
> Postfix mail transfer agent (MTA) control program.
> See also: `dovecot`, a mail delivery agent (MDA) that integrates with Postfix.
> More information: <https://www.postfix.org/postfix.1.html>.
- Check the configuration:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Search SELinux policy rules.
> Part of the `setools` package.
> See also: `seinfo`, `semodule`.
> See also: `semodule`.
> More information: <https://manned.org/sesearch>.
- Search for all allow rules:

View File

@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
# swww
> Efficient animated wallpaper daemon for Wayland.
> See also: `swww-daemon`.
> More information: <https://github.com/LGFae/swww#usage>.
- Set wallpaper:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl import-environment
> Import environment variables from the shell into systemd's environment.
> See also: `show-environment`, `unset-environment`.
> See also: `systemctl show-environment`, `systemctl unset-environment`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20import-environment%0A%20%20%20%20%20%20%20%20%20%20%20%20VARIABLE%E2%80%A6%0A%20%20%20%20%20%20%20%20%20%20>.
- Import a variable:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# urpmi
> Install packages in Mageia.
> See also: `urpm.update`, `urpme`, `urpmi.addmedia`, `urpmi.removemedia`, `urpmf`, `urpmq`.
> See also: `urpmi.update`, `urpme`, `urpmi.addmedia`, `urpmi.removemedia`, `urpmf`, `urpmq`.
> More information: <https://man.linuxreviews.org/man8/urpmi.8.html>.
- Install a package from the repository or from a local RPM file: