Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-04 00:21:53 +00:00
parent 921cbd312c
commit 968390f769
86 changed files with 291 additions and 212 deletions

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`distrobox-export {{[-b|--bin]}} {{path/to/binary}} {{[-ep|--export-path]}} {{path/to/binary_on_host}}`
- Export a binary from the container to the host (i.e.`$HOME/.local/bin`) :
- Export a binary from the container to the host (i.e.`$HOME/.local/bin`):
`distrobox-export {{[-b|--bin]}} {{path/to/binary}} {{[-ep|--export-path]}} {{path/to/export}}`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`systemctl start ipmidrv`
- Open IPMI shell on the local hardware :
- Open IPMI shell on the local hardware:
`sudo ipmitool shell`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mcookie
> Generates random 128-bit hexadecimal numbers.
> Generate random 128-bit hexadecimal numbers.
> More information: <https://manned.org/mcookie>.
- Generate a random number:

22
tldr/linux/pkexec Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pkexec
> Execute commands as another user.
> Asks for password in a GUI if available.
> More information: <https://polkit.pages.freedesktop.org/polkit/pkexec.1.html>.
- Run command as root:
`pkexec {{command}}`
- Switch user to root:
`pkexec`
- Run command as a specific user:
`pkexec --user {{username}} {{command}}`

25
tldr/linux/setfont Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# setfont
> Set the terminal font for TTYs.
> More information: <https://manned.org/setfont>.
- Change the terminal font:
`setfont {{font}}.gz`
- Change the terminal font by specifying a path:
`setfont /usr/share/kbd/{{mapping}}/{{font.ext}}`
- Double font size:
`setfont {{[-d|--double]}}`
- Reset to the default font:
`setfont`

View File

@@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
- Show security scores of running units:
`systemd-analyze security`
- View all udev rules together:
`systemd-analyze cat-config udev/rules.d`

View File

@@ -14,19 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
- Show detailed information about a device:
`udisksctl info --block-device {{/dev/sdX}}`
`udisksctl info {{[-b|--block-device]}} {{/dev/sdX}}`
- Show detailed information about a device partition:
`udisksctl info --block-device {{/dev/sdXN}}`
`udisksctl info {{[-b|--block-device]}} {{/dev/sdXN}}`
- Mount a device partition and prints the mount point:
`udisksctl mount --block-device {{/dev/sdXN}}`
`udisksctl mount {{[-b|--block-device]}} {{/dev/sdXN}}`
- Unmount a device partition:
`udisksctl unmount --block-device {{/dev/sdXN}}`
`udisksctl unmount {{[-b|--block-device]}} {{/dev/sdXN}}`
- Power off a device to safely remove it:
`udisksctl power-off {{[-b|--block-device]}} {{/dev/sdX}}`
- Monitor the daemon for events: