mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the last 20 commands (in Zsh it displays all commands starting from the 20th):
|
||||
|
||||
`history {{20}}`
|
||||
`history 20`
|
||||
|
||||
- Display history with timestamps in different formats (only available in Zsh):
|
||||
|
||||
|
||||
18
tldr/linux/systemctl-restart
Normal file
18
tldr/linux/systemctl-restart
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl restart
|
||||
|
||||
> Stop and then start one or more systemd units.
|
||||
> Can be used in place of `systemctl start` on a stopped unit, but `start` is safer so that a running unit isn't accidentally restarted.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#restart%20PATTERN%E2%80%A6>.
|
||||
|
||||
- Restart a unit:
|
||||
|
||||
`systemctl restart {{unit}}`
|
||||
|
||||
- Restart more than one unit:
|
||||
|
||||
`systemctl restart {{unit1 unit2 ...}}`
|
||||
30
tldr/swaymsg
Normal file
30
tldr/swaymsg
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# swaymsg
|
||||
|
||||
> Send messages to a running instance of Sway using IPC.
|
||||
> See <https://github.com/swaywm/sway/blob/master/sway/sway.5.scd> for available commands.
|
||||
> More information: <https://github.com/swaywm/sway/blob/master/swaymsg/swaymsg.1.scd>.
|
||||
|
||||
- Run a Sway command:
|
||||
|
||||
`swaymsg {{command}}`
|
||||
|
||||
- Display a list of workspaces:
|
||||
|
||||
`swaymsg {{[-t|--type]}} get_workspaces`
|
||||
|
||||
- Display a list of input devices:
|
||||
|
||||
`swaymsg {{[-t|--type]}} get_inputs`
|
||||
|
||||
- Display a list of output devices:
|
||||
|
||||
`swaymsg {{[-t|--type]}} get_outputs`
|
||||
|
||||
- Display a layout tree of all open windows, containers, outputs, and workspaces:
|
||||
|
||||
`swaymsg {{[-t|--type]}} get_tree`
|
||||
Reference in New Issue
Block a user