Update cheatsheets

This commit is contained in:
ivuorinen
2025-01-02 00:17:21 +00:00
parent 7d5c24cb3d
commit 8bbe4d3fb7
6 changed files with 118 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kpackagetool5
> KPackage Manager: install, list, remove Plasma packages.
> More information: <https://techbase.kde.org/Development/Tutorials/Plasma5/QML2/GettingStarted#Kpackagetool5>.
> More information: <https://manned.org/kpackagetool5>.
- List all known package types that can be installed:
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`kpackagetool5 --type {{package_type}} --upgrade {{path/to/directory}}`
- List installed plasmoids (--global for all users):
- List installed plasmoids (`--global` for all users):
`kpackagetool5 --type Plasma/Applet --list --global`

29
tldr/linux/kpackagetool6 Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# kpackagetool6
> KPackage Manager: install, list, remove Plasma packages.
> More information: <https://manned.org/kpackagetool6>.
- List all known package types that can be installed:
`kpackagetool6 --list-types`
- Install the package from a directory:
`kpackagetool6 --type {{package_type}} --install {{path/to/directory}}`
- Update installed package from a directory:
`kpackagetool6 --type {{package_type}} --upgrade {{path/to/directory}}`
- List installed plasmoids (`--global` for all users):
`kpackagetool6 --type Plasma/Applet --list --global`
- Remove a plasmoid by name:
`kpackagetool6 --type Plasma/Applet --remove "{{name}}"`

View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lookandfeeltool
> Switch Plasma global themes.
> More information: <https://userbase.kde.org/System_Settings/Look_And_Feel>.
- List available global themes:
`lookandfeeltool --list`
- Apply a global theme:
`lookandfeeltool --apply {{org.example.theme.desktop}}`
- Operate `lookandfeeltool` without a display server:
`lookandfeeltool --platform offscreen`
- Display help:
`lookandfeeltool --help`

41
tldr/linux/pct Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pct
> Manage LXC containers in Proxmox.
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html>.
- List all containers:
`pct list`
- Start/Stop/Reboot a specific container:
`pct {{start|stop|reboot}} {{100}}`
- Access a specific container's shell:
`pct enter {{100}}`
- Create a container from template:
`pct create {{100}} {{/var/lib/vz/template/cache/distro-name.tar.zst}} -hostname {{hostname}} -password {{password}} --rootfs {{local-lvm}} --on-boot`
- Resize the container's disk to 20G:
`pct resize {{100}} {{rootfs|mpX}} {{20G}}`
- Show the configuration of a container, specifying its ID:
`pct config {{100}}`
- Snapshot a specific container with description:
`pct snapshot {{100}} {{my-snapshot}} --description {{My snapshot description}}`
- Destroy a container and remove all related resources:
`pct destroy {{100}} --purge`

17
tldr/linux/pveversion Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pveversion
> Proxmox VE version info.
> More information: <https://pve.proxmox.com/wiki/Command_Line_Tools#Software_version_check>.
- Print system version:
`pveversion`
- Print Proxmox subpackage versions:
`pveversion {{-v|--verbose}}`

View File

@@ -21,6 +21,10 @@ source: https://github.com/tldr-pages/tldr.git
`sudo semanage port {{-a|--add}} {{-t|--type}} {{ssh_port_t}} {{-p|--proto}} {{tcp}} {{22000}}`
- Add a user-defined rule that assigns a label to a protocol-port-range pair:
`sudo semanage port {{-a|--add}} {{-t|--type}} {{http_port_t}} {{-p|--proto}} {{tcp}} {{80-88}}`
- Delete a user-defined rule using its protocol-port pair:
`sudo semanage port {{-d|--delete}} {{-p|--proto}} {{udp}} {{11940}}`