Update cheatsheets

This commit is contained in:
ivuorinen
2026-02-08 00:34:23 +00:00
parent c8acbc5872
commit a9c8ccc0e2
34 changed files with 357 additions and 49 deletions

View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# apptainer cache
> Manage the local Apptainer cache.
> More information: <https://apptainer.org/docs/user/main/cli/apptainer_cache.html>.
- List all cached container images:
`apptainer cache list`
- List cached container images with detailed information:
`apptainer cache list {{[-v|--verbose]}}`
- List only a specific cache type:
`apptainer cache list {{[-T|--type]}} {{library|oci|shub|blob|...}}`
- Clean the entire cache:
`apptainer cache clean`
- Clean only a specific cache type:
`apptainer cache clean {{[-T|--type]}} {{library|oci|shub|blob|...}}`
- Clean cache entries older than a specific number of days:
`apptainer cache clean {{[-D|--days]}} {{days}}`
- Preview what would be cleaned without removing anything:
`apptainer cache clean {{[-n|--dry-run]}}`
- Force clean without confirmation:
`apptainer cache clean {{[-f|--force]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ark
> KDE's archiving tool.
> More information: <https://docs.kde.org/stable5/en/ark/ark/>.
> More information: <https://docs.kde.org/stable_kf6/en/ark/ark/>.
- Extract a specific archive into the current directory:

View File

@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
# cpufreq-aperf
> Calculate the average CPU frequency over a time period.
> Requires root privileges.
> More information: <https://manned.org/cpufreq-aperf>.
- Start calculating, defaulting to all CPU cores and 1 second refresh interval:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dmidecode
> Display the DMI (alternatively known as SMBIOS) table contents in a human-readable format.
> Requires root privileges.
> See also: `inxi`, `lshw`, `hwinfo`.
> More information: <https://manned.org/dmidecode>.
- Show all DMI table contents:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# hwclock
> Read or change the hardware clock. Usually requires root.
> Read or change the hardware clock.
> More information: <https://manned.org/hwclock>.
- Display the current time as reported by the hardware clock:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hwinfo
> Probe for the hardware present in the system.
> See also: `inxi`, `lshw`.
> See also: `inxi`, `lshw`, `dmidecode`.
> More information: <https://manpages.opensuse.org/hwinfo/hwinfo.8.en.html>.
- Display all available hardware information:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# inxi
> Print a summary of system information and resources for debugging purposes.
> See also: `lshw`, `hwinfo`.
> See also: `lshw`, `hwinfo`, `dmidecode`.
> More information: <https://manned.org/inxi>.
- Print a summary of CPU, memory, hard drive and kernel information:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kdesrc-build
> Easily build KDE components from its source repositories.
> More information: <https://docs.kde.org/trunk5/en/kdesrc-build/kdesrc-build/index.html>.
> More information: <https://manned.org/man/kdesrc-build>.
- Initialize `kdesrc-build`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# konsole
> KDE's terminal emulator.
> More information: <https://docs.kde.org/stable5/en/konsole/konsole/command-line-options.html>.
> More information: <https://docs.kde.org/stable_kf6/en/konsole/konsole/command-line-options.html>.
- Open the terminal in a specific directory:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Text editor of the KDE Desktop project.
> See also: `kate`.
> More information: <https://docs.kde.org/stable5/en/kate/kwrite/command-line-options.html>.
> More information: <https://docs.kde.org/stable_kf6/en/kate/kwrite/command-line-options.html>.
- Open a text file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lshw
> List detailed information about hardware configurations as root user.
> See also: `inxi`, `hwinfo`.
> See also: `inxi`, `hwinfo`, `dmidecode`.
> More information: <https://ezix.org/project/wiki/HardwareLiSter>.
- Launch the X11 GUI (if available):

View File

@@ -5,25 +5,25 @@ source: https://github.com/tldr-pages/tldr.git
---
# runuser
> Run commands as a user and group without asking for password (needs root privileges).
> Run commands as a user and group without asking for password.
> More information: <https://manned.org/runuser>.
- Run command as a different user:
`runuser {{user}} {{[-c|--command]}} '{{command}}'`
`sudo runuser {{user}} {{[-c|--command]}} '{{command}}'`
- Run command as a different user and group:
`runuser {{user}} {{[-g|--group]}} {{group}} {{[-c|--command]}} '{{command}}'`
`sudo runuser {{user}} {{[-g|--group]}} {{group}} {{[-c|--command]}} '{{command}}'`
- Start a login shell as a specific user:
`runuser {{user}} {{[-l|--login]}}`
`sudo runuser {{user}} {{[-l|--login]}}`
- Specify a shell for running instead of the default shell (also works for login):
`runuser {{user}} {{[-s|--shell]}} {{/bin/sh}}`
`sudo runuser {{user}} {{[-s|--shell]}} {{/bin/sh}}`
- Preserve the entire environment of root (only if `--login` is not specified):
`runuser {{user}} {{[-p|--preserve-environment]}} {{[-c|--command]}} '{{command}}'`
`sudo runuser {{user}} {{[-p|--preserve-environment]}} {{[-c|--command]}} '{{command}}'`