mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 17:01:17 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/linux/mkvpropedit
Normal file
25
tldr/linux/mkvpropedit
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mkvpropedit
|
||||
|
||||
> Modify properties of existing Matroska files without a complete remux.
|
||||
> More information: <https://mkvtoolnix.download/doc/mkvpropedit.html>.
|
||||
|
||||
- Delete title:
|
||||
|
||||
`mkvpropedit {{[-d|--delete]}} title {{path/to/file.mkv}}`
|
||||
|
||||
- Mark subtitle track 3 as SDH - Subtitles for deaf and hearing impared:
|
||||
|
||||
`mkvpropedit {{path/to/file.mkv}} {{[-e|--edit]}} track:s3 {{[-s|--set]}} flag-hearing-impaired=1`
|
||||
|
||||
- Mark audio track 2 as Default:
|
||||
|
||||
`mkvpropedit {{path/to/file.mkv}} {{[-e|--edit]}} track:a2 {{[-s|--set]}} flag-default=1`
|
||||
|
||||
- Delete the name of video track 1:
|
||||
|
||||
`mkvpropedit {{path/to/file.mkv}} {{[-e|--edit]}} track:v1 {{[-d|--delete]}} name`
|
||||
25
tldr/linux/systemctl-soft-reboot
Normal file
25
tldr/linux/systemctl-soft-reboot
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl soft-reboot
|
||||
|
||||
> Shut down and reboot userspace, leaving the kernel running.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#soft-reboot>.
|
||||
|
||||
- Perform a soft reboot immediately:
|
||||
|
||||
`systemctl soft-reboot`
|
||||
|
||||
- Force a soft reboot:
|
||||
|
||||
`systemctl soft-reboot --force`
|
||||
|
||||
- Schedule a soft reboot for a specific time:
|
||||
|
||||
`systemctl soft-reboot --when "{{timestamp}}"`
|
||||
|
||||
- Cancel a scheduled soft reboot:
|
||||
|
||||
`systemctl soft-reboot --when cancel`
|
||||
17
tldr/linux/systemctl-suspend-then-hibernate
Normal file
17
tldr/linux/systemctl-suspend-then-hibernate
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl suspend-then-hibernate
|
||||
|
||||
> Suspend the system, then automatically hibernate after a period of inactivity.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#suspend-then-hibernate>.
|
||||
|
||||
- Suspend the system and hibernate after the configured delay:
|
||||
|
||||
`systemctl suspend-then-hibernate`
|
||||
|
||||
- Force suspend-then-hibernate (bypass inhibitor locks):
|
||||
|
||||
`systemctl suspend-then-hibernate --force`
|
||||
Reference in New Issue
Block a user