mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-24 16:52:17 +00:00
Update cheatsheets
This commit is contained in:
17
linux/systemd-ac-power
Normal file
17
linux/systemd-ac-power
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user