Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-08 00:22:13 +00:00
parent 9c36a48bd3
commit 3be72c1548
7 changed files with 76 additions and 8 deletions

View File

@@ -17,9 +17,9 @@ source: https://github.com/tldr-pages/tldr.git
`aur search {{keyword}}`
- Download a package and its dependencies from AUR, build them and add them to a local repository:
- Download one or more packages and their dependencies from the AUR, build them, and add them to a local repository:
`aur sync {{package}}`
`aur sync {{package1 package2 ...}}`
- List packages available in your local repository:

View File

@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
- Specify a script that is executed automatically depending on the state of the virtual machine:
`qm {{[cr|create]}} {{100}} --hookscript {{path/to/script.pl}}`
- Create a VM that bridges itself to the host network:
`qm {{[cr|create]}} {{100}} --net{{0}} virtio,bridge=vmbr{{0}}`

View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# update-initramfs
> Manage initramfs.
> More information: <https://manned.org/update-initramfs>.
- Create a new initramfs (use `all` for all installed kernel versions):
`sudo update-initramfs -c -k {{kernel_version}}`
- Update an existing initramfs:
`sudo update-initramfs -u`
- Remove an existing initramfs (be careful when using `all` for `kernel_version`):
`sudo update-initramfs -d -k {{kernel_version}}`

View File

@@ -18,19 +18,19 @@ source: https://github.com/tldr-pages/tldr.git
- Change the resolution and update frequency of DisplayPort 1 to 1920x1080, 60Hz:
`xrandr --output {{DP1}} --mode {{1920x1080}} --rate {{60}}`
`xrandr --output DP1 --mode 1920x1080 {{[-r|--rate]}} 60`
- Set the resolution of HDMI2 to 1280x1024 and put it on the right of DP1:
`xrandr --output {{HDMI2}} --mode {{1280x1024}} --right-of {{DP1}}`
`xrandr --output HDMI2 --mode 1280x1024 --right-of DP1`
- Disable the VGA1 output:
`xrandr --output {{VGA1}} --off`
`xrandr --output VGA1 --off`
- Set the brightness for LVDS1 to 50%:
`xrandr --output {{LVDS1}} --brightness {{0.5}}`
`xrandr --output LVDS1 --brightness 0.5`
- Display the current state of any X server: