mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-25 05:52:22 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
21
tldr/linux/update-initramfs
Normal file
21
tldr/linux/update-initramfs
Normal 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}}`
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user