mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 04:48:22 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Install the package from a directory:
|
||||
|
||||
`kpackagetool5 --type {{package_type}} --install {{path/to/directory}}`
|
||||
`kpackagetool5 {{[-t|--type]}} {{package_type}} {{[-i|--install]}} {{path/to/directory}}`
|
||||
|
||||
- Update installed package from a directory:
|
||||
|
||||
`kpackagetool5 --type {{package_type}} --upgrade {{path/to/directory}}`
|
||||
`kpackagetool5 {{[-t|--type]}} {{package_type}} {{[-u|--upgrade]}} {{path/to/directory}}`
|
||||
|
||||
- List installed plasmoids (`--global` for all users):
|
||||
|
||||
`kpackagetool5 --type Plasma/Applet --list --global`
|
||||
`kpackagetool5 {{[-t|--type]}} Plasma/Applet {{[-l|--list]}} {{[-g|--global]}}`
|
||||
|
||||
- Remove a plasmoid by name:
|
||||
|
||||
`kpackagetool5 --type Plasma/Applet --remove "{{name}}"`
|
||||
`kpackagetool5 {{[-t|--type]}} Plasma/Applet {{[-r|--remove]}} "{{name}}"`
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Install the package from a directory:
|
||||
|
||||
`kpackagetool6 --type {{package_type}} --install {{path/to/directory}}`
|
||||
`kpackagetool6 {{[-t|--type]}} {{package_type}} {{[-i|--install]}} {{path/to/directory}}`
|
||||
|
||||
- Update installed package from a directory:
|
||||
|
||||
`kpackagetool6 --type {{package_type}} --upgrade {{path/to/directory}}`
|
||||
`kpackagetool6 {{[-t|--type]}} {{package_type}} {{[-u|--upgrade]}} {{path/to/directory}}`
|
||||
|
||||
- List installed plasmoids (`--global` for all users):
|
||||
|
||||
`kpackagetool6 --type Plasma/Applet --list --global`
|
||||
`kpackagetool6 {{[-t|--type]}} Plasma/Applet {{[-l|--list]}} {{[-g|--global]}}`
|
||||
|
||||
- Remove a plasmoid by name:
|
||||
|
||||
`kpackagetool6 --type Plasma/Applet --remove "{{name}}"`
|
||||
`kpackagetool6 {{[-t|--type]}} Plasma/Applet {{[-r|--remove]}} "{{name}}"`
|
||||
|
||||
@@ -12,30 +12,30 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`mkinitcpio`
|
||||
|
||||
- Generate ramdisk environments based on all existing presets (used to regenerate all the initramfs images after a change in `/etc/mkinitcpio.conf`):
|
||||
|
||||
`sudo mkinitcpio {{[-P|--allpresets]}}`
|
||||
|
||||
- Generate a ramdisk environment based on the `linux` preset:
|
||||
|
||||
`mkinitcpio --preset {{linux}}`
|
||||
`sudo mkinitcpio {{[-p|--preset]}} {{linux}}`
|
||||
|
||||
- Generate a ramdisk environment based on the `linux-lts` preset:
|
||||
|
||||
`mkinitcpio --preset {{linux-lts}}`
|
||||
|
||||
- Generate ramdisk environments based on all existing presets (used to regenerate all the initramfs images after a change in `/etc/mkinitcpio.conf`):
|
||||
|
||||
`mkinitcpio --allpresets`
|
||||
`sudo mkinitcpio {{[-p|--preset]}} {{linux-lts}}`
|
||||
|
||||
- Generate an initramfs image using an alternative configuration file:
|
||||
|
||||
`mkinitcpio --config {{path/to/mkinitcpio.conf}} --generate {{path/to/initramfs.img}}`
|
||||
`sudo mkinitcpio {{[-c|--config]}} {{path/to/mkinitcpio.conf}} {{[-g|--generate]}} {{path/to/initramfs.img}}`
|
||||
|
||||
- Generate an initramfs image for a kernel other than the one currently running (the installed kernel releases can be found in `/usr/lib/modules/`):
|
||||
|
||||
`mkinitcpio --kernel {{kernel_version}} --generate {{path/to/initramfs.img}}`
|
||||
`sudo mkinitcpio {{[-k|--kernel]}} {{kernel_version}} {{[-g|--generate]}} {{path/to/initramfs.img}}`
|
||||
|
||||
- List all available hooks:
|
||||
|
||||
`mkinitcpio --listhooks`
|
||||
`mkinitcpio {{[-L|--listhooks]}}`
|
||||
|
||||
- Display help for a specific hook:
|
||||
|
||||
`mkinitcpio --hookhelp {{hook_name}}`
|
||||
`mkinitcpio {{[-H|--hookhelp]}} {{hook_name}}`
|
||||
|
||||
33
tldr/linux/xhost
Normal file
33
tldr/linux/xhost
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# xhost
|
||||
|
||||
> Manage access control lists for X server connections.
|
||||
> More information: <https://manned.org/xhost>.
|
||||
|
||||
- Display the current access control list:
|
||||
|
||||
`xhost`
|
||||
|
||||
- Allow a specific host to connect to the X server:
|
||||
|
||||
`xhost +{{hostname}}`
|
||||
|
||||
- Deny a specific host from connecting to the X server:
|
||||
|
||||
`xhost -{{hostname}}`
|
||||
|
||||
- Allow all hosts to connect (disable access control — insecure):
|
||||
|
||||
`xhost +`
|
||||
|
||||
- Deny all hosts except those explicitly allowed (enable access control):
|
||||
|
||||
`xhost -`
|
||||
|
||||
- Remove a specific user or address using a family prefix (like `inet:hostname` or `si:localuser:username`):
|
||||
|
||||
`xhost -{{family:name}}`
|
||||
Reference in New Issue
Block a user