Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-07 00:19:24 +00:00
parent 3e6fa5fca1
commit 4102fec4f8
26 changed files with 610 additions and 8 deletions

25
tldr/linux/paccapability Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# paccapability
> Query and display the capabilities supported by libalpm.
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/paccapability.pod>.
- List all available capabilities:
`paccapability`
- Check for the specified capability:
`paccapability {{nls|downloader|signatures}}`
- Display help:
`paccapability --help`
- Display version:
`paccapability --version`

33
tldr/linux/paccheck Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# paccheck
> Check installed packages on an Arch-based system to verify dependencies, integrity, and consistency.
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/paccheck.pod>.
- List and check all installed packages:
`paccheck`
- Check the specified packages:
`paccheck {{package1 package2 ...}}`
- Only display messages if a problem is found:
`paccheck --quiet`
- Check that all package dependencies are satisfied:
`paccheck --depends`
- Display help:
`paccheck --help`
- Display version:
`paccheck --version`

33
tldr/linux/pacinfo Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pacinfo
> Display information about installed packages.
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/pacinfo.pod>.
- Display information about a specific package:
`pacinfo {{package_name}}`
- Disable low-speed timeouts for downloads:
`pacinfo --no-timeout {{package_name}}`
- Display sizes in bytes and date values as Unix timestamps:
`pacinfo --raw {{package_name}}`
- Display additional package information:
`pacinfo --verbose {{package_name}}`
- Display help:
`pacinfo --help`
- Display version:
`pacinfo --version`

33
tldr/linux/pacini Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pacini
> Query pacman-style configuration files.
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/pacini.pod>.
- Show the full parsed configuration file (default: `stdin`):
`pacini {{path/to/file}}`
- List configured sections:
`pacini --section-list`
- Always show directive names even if only one directive is provided:
`pacini --verbose {{directive}}`
- Display directives listed in a specific section:
`pacini --section {{section_name}}`
- Display help:
`pacini --help`
- Display version:
`pacini --version`

View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl is-active
> Check if one or more systemd units are active.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#is-active%20PATTERN%E2%80%A6>.
- Check whether a unit is active:
`systemctl is-active {{unit}}`
- Check whether multiple units are active:
`systemctl is-active {{unit1 unit2 ...}}`
- Check whether a unit is active without printing the state to `stdout`:
`systemctl is-active {{[-q|--quiet]}} {{unit}}`
- Check whether a user unit is active:
`systemctl is-active --user {{unit}}`

View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl is-enabled
> Check whether unit files are enabled.
> See also: `systemctl enable`, `systemctl disable`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#is-enabled%20UNIT%E2%80%A6>.
- Show the enablement state:
`systemctl is-enabled {{unit1 unit2 ...}}`
- Suppress output and return only the exit code:
`systemctl is-enabled {{unit}} --quiet`
- Show installation targets and symlink paths:
`systemctl is-enabled {{unit}} --full`

View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl list-units
> List units that systemd currently has in memory.
> See also: `systemctl list-unit-files` for listing installed unit files.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-units%20PATTERN%E2%80%A6>.
- List units which are active, have pending jobs, or have failed:
`systemctl list-units`
- List all units, including inactive ones:
`systemctl list-units {{[-a|--all]}}`
- Filter by unit type:
`systemctl list-units {{[-t|--type]}} {{service|socket|timer|...}}`
- Filter by state:
`systemctl list-units --state {{running|listening|dead|...}}`
- Filter by a name pattern:
`systemctl list-units 'systemd*'`
- Print output directly to `stdout`:
`systemctl list-units --no-pager`
- Print output without headers or footers (for scripts):
`systemctl list-units --no-legend`