mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 23:48:56 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
21
tldr/linux/systemctl-hibernate
Normal file
21
tldr/linux/systemctl-hibernate
Normal 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`
|
||||
21
tldr/linux/systemctl-hybrid-sleep
Normal file
21
tldr/linux/systemctl-hybrid-sleep
Normal 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`
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
21
tldr/linux/systemctl-is-system-running
Normal file
21
tldr/linux/systemctl-is-system-running
Normal 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`
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user