mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-30 17:33:50 +08:00
{bus, network, oom, update, userdb}ctl, systemd-{sysext, inhibit, hwdb}: simplify examples and add sudo (#20850)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
- Show all peers on the bus by their service names:
|
||||
|
||||
`busctl list`
|
||||
`busctl`
|
||||
|
||||
- Show process information and credentials of a bus service, a process, or the owner of the bus (if no parameter is specified):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
- List existing links with their status:
|
||||
|
||||
`networkctl list`
|
||||
`networkctl`
|
||||
|
||||
- Show an overall network status:
|
||||
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
|
||||
- Show the current state of the cgroups and system contexts stored by `systemd-oomd`:
|
||||
|
||||
`oomctl dump`
|
||||
`oomctl`
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- Update the binary hardware database in `/etc/udev`:
|
||||
|
||||
`systemd-hwdb update`
|
||||
`sudo systemd-hwdb update`
|
||||
|
||||
- Query the hardware database and print the result for a specific modalias:
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
- Update the binary hardware database, returning a non-zero exit value on any parsing error:
|
||||
|
||||
`systemd-hwdb {{[-s|--strict]}} update`
|
||||
`sudo systemd-hwdb {{[-s|--strict]}} update`
|
||||
|
||||
- Update the binary hardware database in `/usr/lib/udev`:
|
||||
|
||||
`systemd-hwdb --usr update`
|
||||
`sudo systemd-hwdb --usr update`
|
||||
|
||||
- Update the binary hardware database in the specified root path:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
- List all active inhibition locks and the reasons for their creation:
|
||||
|
||||
`systemd-inhibit --list`
|
||||
`systemd-inhibit`
|
||||
|
||||
- Block system shutdown for a specified number of seconds with the `sleep` command:
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
- Check the current merge status:
|
||||
|
||||
`systemd-sysext status`
|
||||
`systemd-sysext`
|
||||
|
||||
- Unmerge all currently installed system extension images from `/usr/` and `/opt/`:
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
- Show update targets:
|
||||
|
||||
`updatectl list`
|
||||
`updatectl`
|
||||
|
||||
- Show data about a target and its versions:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- List all known user records:
|
||||
|
||||
`userdbctl user`
|
||||
`userdbctl`
|
||||
|
||||
- Show details of a specific user:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user