From 8bbe4d3fb7e04864b25f6ee73148eeeda2e7417b Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 2 Jan 2025 00:17:21 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/kpackagetool5 | 4 ++-- tldr/linux/kpackagetool6 | 29 +++++++++++++++++++++++++++ tldr/linux/lookandfeeltool | 25 +++++++++++++++++++++++ tldr/linux/pct | 41 ++++++++++++++++++++++++++++++++++++++ tldr/linux/pveversion | 17 ++++++++++++++++ tldr/linux/semanage-port | 4 ++++ 6 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 tldr/linux/kpackagetool6 create mode 100644 tldr/linux/lookandfeeltool create mode 100644 tldr/linux/pct create mode 100644 tldr/linux/pveversion diff --git a/tldr/linux/kpackagetool5 b/tldr/linux/kpackagetool5 index 7e133d53..2aeb1cc0 100644 --- a/tldr/linux/kpackagetool5 +++ b/tldr/linux/kpackagetool5 @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kpackagetool5 > KPackage Manager: install, list, remove Plasma packages. -> More information: . +> More information: . - 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` diff --git a/tldr/linux/kpackagetool6 b/tldr/linux/kpackagetool6 new file mode 100644 index 00000000..6849ccd0 --- /dev/null +++ b/tldr/linux/kpackagetool6 @@ -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: . + +- 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}}"` diff --git a/tldr/linux/lookandfeeltool b/tldr/linux/lookandfeeltool new file mode 100644 index 00000000..fbd77211 --- /dev/null +++ b/tldr/linux/lookandfeeltool @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lookandfeeltool + +> Switch Plasma global themes. +> More information: . + +- 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` diff --git a/tldr/linux/pct b/tldr/linux/pct new file mode 100644 index 00000000..88d1bec2 --- /dev/null +++ b/tldr/linux/pct @@ -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: . + +- 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` diff --git a/tldr/linux/pveversion b/tldr/linux/pveversion new file mode 100644 index 00000000..bac219ee --- /dev/null +++ b/tldr/linux/pveversion @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# pveversion + +> Proxmox VE version info. +> More information: . + +- Print system version: + +`pveversion` + +- Print Proxmox subpackage versions: + +`pveversion {{-v|--verbose}}` diff --git a/tldr/linux/semanage-port b/tldr/linux/semanage-port index 4db644ca..de68023c 100644 --- a/tldr/linux/semanage-port +++ b/tldr/linux/semanage-port @@ -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}}`