Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-15 00:20:39 +00:00
parent 09d5fa917f
commit 61e0353c6b
6 changed files with 113 additions and 5 deletions

25
tldr/linux/mkvpropedit Normal file
View 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`

View 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`

View 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`