mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-24 02:51:55 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# installpkg
|
||||
|
||||
> Install a Slackware package.
|
||||
> More information: <http://www.slackware.com/config/packages.php>.
|
||||
> More information: <https://www.slackbook.org/html/book.html#PACKAGE-MANAGEMENT-PACKAGE-UTILITIES-INSTALLPKG>.
|
||||
|
||||
- Install a package:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# removepkg
|
||||
|
||||
> Remove a specified Slackware package.
|
||||
> More information: <http://www.slackware.com/config/packages.php>.
|
||||
> More information: <https://www.slackbook.org/html/book.html#PACKAGE-MANAGEMENT-PACKAGE-UTILITIES-REMOVEPKG>.
|
||||
|
||||
- Remove a package:
|
||||
|
||||
|
||||
@@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Halt the system immediately without asking services to stop gracefully:
|
||||
|
||||
`systemctl halt --force`
|
||||
`systemctl halt {{[-f|--force]}}`
|
||||
|
||||
- Halt the system immediately without sending notifications to logged-in users:
|
||||
|
||||
`systemctl halt --force --no-wall`
|
||||
`systemctl halt {{[-f|--force]}} --no-wall`
|
||||
|
||||
- Halt the system immediately without terminating any processes or unmounting filesystems (dangerous, may cause data loss):
|
||||
|
||||
`systemctl halt --force --force`
|
||||
`systemctl halt {{[-ff|--force --force]}}`
|
||||
|
||||
- Schedule a halt at a specific time (e.g., 23:00):
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Force hibernation even if inhibitors are present:
|
||||
|
||||
`systemctl hibernate --force`
|
||||
`systemctl hibernate {{[-f|--force]}}`
|
||||
|
||||
- Hibernate the system without sending a message to logged-in users:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Force hybrid sleep even if inhibitors are present:
|
||||
|
||||
`systemctl hybrid-sleep --force`
|
||||
`systemctl hybrid-sleep {{[-f|--force]}}`
|
||||
|
||||
- Put the system into hybrid sleep without sending a wall message to logged-in users:
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Suppress output and return only the exit code:
|
||||
|
||||
`systemctl is-enabled {{unit}} --quiet`
|
||||
`systemctl is-enabled {{unit}} {{[-q|--quiet]}}`
|
||||
|
||||
- Show installation targets and symlink paths:
|
||||
|
||||
`systemctl is-enabled {{unit}} --full`
|
||||
`systemctl is-enabled {{unit}} {{[-l|--full]}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Check and print the current state quietly (no output, only exit status):
|
||||
|
||||
`systemctl is-system-running --quiet`
|
||||
`systemctl is-system-running {{[-q|--quiet]}}`
|
||||
|
||||
- Wait until the boot process is completed before printing the current state:
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show all path units, including inactive ones:
|
||||
|
||||
`systemctl list-paths --all`
|
||||
`systemctl list-paths {{[-a|--all]}}`
|
||||
|
||||
- Filter path units by state:
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Power off the system immediately without asking services to stop gracefully:
|
||||
|
||||
`systemctl poweroff --force`
|
||||
`systemctl poweroff {{[-f|--force]}}`
|
||||
|
||||
- Power off the system immediately without sending notifications to logged-in users:
|
||||
|
||||
`systemctl poweroff --force --no-wall`
|
||||
`systemctl poweroff {{[-f|--force]}} --no-wall`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Force a soft reboot:
|
||||
|
||||
`systemctl soft-reboot --force`
|
||||
`systemctl soft-reboot {{[-f|--force]}}`
|
||||
|
||||
- Schedule a soft reboot for a specific time:
|
||||
|
||||
|
||||
@@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all units in the system:
|
||||
|
||||
`systemctl status --all`
|
||||
`systemctl status {{[-a|--all]}}`
|
||||
|
||||
- List all units of a specific type:
|
||||
|
||||
`systemctl status --type {{service|timer|socket|target|...}}`
|
||||
`systemctl status {{[-t|--type]}} {{service|timer|socket|target|...}}`
|
||||
|
||||
- List all units with a specific state:
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Force suspend-then-hibernate (bypass inhibitor locks):
|
||||
|
||||
`systemctl suspend-then-hibernate --force`
|
||||
`systemctl suspend-then-hibernate {{[-f|--force]}}`
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Switch to a new root filesystem with verbose output:
|
||||
|
||||
`systemctl switch-root {{path/to/new_root}} --verbose`
|
||||
`systemctl switch-root {{path/to/new_root}} {{[-v|--verbose]}}`
|
||||
|
||||
Reference in New Issue
Block a user