Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-14 00:19:04 +00:00
parent 1111290472
commit 220486abce
43 changed files with 289 additions and 47 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bootctl
> Control EFI firmware boot settings and manage boot loader.
> More information: <https://manned.org/bootctl>.
> More information: <https://www.freedesktop.org/software/systemd/man/bootctl.html>.
- Show information about the system firmware and the bootloaders:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# homectl
> Create, remove, change or inspect home directories using the systemd-homed service.
> More information: <https://manned.org/homectl>.
> More information: <https://www.freedesktop.org/software/systemd/man/homectl.html>.
- List user accounts and their associated home directories:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hostnamectl
> Get or set the hostname of the computer.
> More information: <https://manned.org/hostnamectl>.
> More information: <https://www.freedesktop.org/software/systemd/man/hostnamectl.html>.
- Get the hostname of the computer:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# importctl
> Download, Import, or Export disk images.
> More information: <https://manned.org/importctl>.
> More information: <https://www.freedesktop.org/software/systemd/man/importctl.html>.
- Download image in tarball format from a url via pull:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# journalctl
> Query the systemd journal.
> More information: <https://manned.org/journalctl>.
> More information: <https://www.freedesktop.org/software/systemd/man/journalctl.html>.
- Show all messages with priority level 3 (errors) from this boot:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kernel-install
> Add and remove kernel and initrd images to and from `/boot`.
> More information: <https://manned.org/kernel-install.8>.
> More information: <https://www.freedesktop.org/software/systemd/man/kernel-install.html>.
- Add kernel and initramfs images to bootloader partition:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl default
> Enter system default mode.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#default>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#default>.
- Enter default mode as a blocking operation:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl get-default
> Display the default target (runlevel) that the system will boot into.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#get-default>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#get-default>.
- Check the default target on your system:

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl hibernate
> Hibernate the system by saving the current state to disk and powering off.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#hibernate>.
- Hibernate the system immediately:
`systemctl hibernate`
- Force hibernation even if inhibitors are present:
`systemctl hibernate --force`
- Hibernate the system without sending a message to logged-in users:
`systemctl hibernate --no-wall`

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl hybrid-sleep
> Put the system into hybrid sleep, which combines suspend-to-RAM and hibernate.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#hybrid-sleep>.
- Put the system into hybrid sleep immediately:
`systemctl hybrid-sleep`
- Force hybrid sleep even if inhibitors are present:
`systemctl hybrid-sleep --force`
- Put the system into hybrid sleep without sending a wall message to logged-in users:
`systemctl hybrid-sleep --no-wall`

View File

@@ -6,7 +6,7 @@ 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>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#is-active%20PATTERN%E2%80%A6>.
- Check whether a unit is active:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> 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>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#is-enabled%20UNIT%E2%80%A6>.
- Show the enablement state:

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl is-system-running
> Check the current state of the system.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#is-system-running>.
- Check whether the system is operational and print the current state:
`systemctl is-system-running`
- Check and print the current state quietly (no output, only exit status):
`systemctl is-system-running --quiet`
- Wait until the boot process is completed before printing the current state:
`systemctl is-system-running --wait`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> List automount units currently in memory, showing mount paths and unit names.
> See also: `systemctl list-units`, `systemctl list-unit-files`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-automounts%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-automounts%20PATTERN%E2%80%A6>.
- List automount units currently in memory:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl list-jobs
> List of active systemd jobs that are currently queued or running on the system.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-jobs%20PATTERN…>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-jobs%20PATTERN…>.
- List all active jobs:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> List installed unit files and their enablement states.
> See also: `systemctl list-units` for listing units currently loaded in memory.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-unit-files%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-unit-files%20PATTERN%E2%80%A6>.
- List installed unit files and their states:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> 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>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-units%20PATTERN%E2%80%A6>.
- List units which are active, have pending jobs, or have failed:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Reset the enablement state of unit files to the defaults specified in preset policy files.
> See also: `systemctl preset-all`, `systemctl list-unit-files`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#preset%20UNIT%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#preset%20UNIT%E2%80%A6>.
- Reset the enablement state to preset defaults:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Reset the enablement state of all installed units to the defaults specified in preset policy files.
> See also: `systemctl preset`, `systemctl list-unit-files`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#preset-all>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#preset-all>.
- Reset the enablement state of all installed units:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl set-environment
> Set one or more service manager environment variables.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#set-environment%20VARIABLE=VALUE%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#set-environment%20VARIABLE=VALUE%E2%80%A6>.
- Set a single environment variable:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl show-environment
> Display systemd environment blocks.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#show-environment>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#show-environment>.
- Display the environment block for the system:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl soft-reboot
> Shut down and reboot userspace, leaving the kernel running.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#soft-reboot>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#soft-reboot>.
- Perform a soft reboot immediately:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl suspend-then-hibernate
> Suspend the system, then automatically hibernate after a period of inactivity.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#suspend-then-hibernate>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#suspend-then-hibernate>.
- Suspend the system and hibernate after the configured delay:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl switch-root
> Switch to a new root filesystem and execute a new system manager.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#switch-root%20ROOT%20INIT>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#switch-root%20ROOT%20INIT>.
- Switch to a new root filesystem and execute its default init system:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl try-reload-or-restart
> Reload one or more units if they support it; otherwise restart them.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#try-reload-or-restart%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#try-reload-or-restart%20PATTERN%E2%80%A6>.
- Reload or restart a specific unit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemctl try-restart
> Restart one or more units only if they are currently running.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#try-restart%20PATTERN%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#try-restart%20PATTERN%E2%80%A6>.
- Restart a specific unit if it is running:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Unset one or more service manager environment variables.
> This undoes the effect of `systemctl set-environment`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#unset-environment%20VARIABLE%E2%80%A6>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#unset-environment%20VARIABLE%E2%80%A6>.
- Unset a single environment variable:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# timedatectl
> Control the system time and date.
> More information: <https://manned.org/timedatectl>.
> More information: <https://www.freedesktop.org/software/systemd/man/timedatectl.html>.
- Check the current system clock time: