1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:53:10 +02:00

systemd-ac-power: add page (#10196)

This commit is contained in:
Lena 2023-05-15 08:06:59 +02:00 committed by GitHub
parent b982cba5c0
commit 7126f37ae6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,12 @@
# systemd-ac-power
> Report whether the computer is connected to an external power source.
> More information: <https://www.freedesktop.org/software/systemd/man/systemd-ac-power.html>.
- Silently check and return a 0 status code when running on AC power, and a non-zero code otherwise:
`systemd-ac-power`
- Additionally print `yes` or `no` to `stdout`:
`systemd-ac-power --verbose`