Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-08 00:16:55 +00:00
parent 34878bb630
commit 31e38d1972
26 changed files with 539 additions and 6 deletions

37
tldr/linux/pve-firewall Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pve-firewall
> Manage Proxmox VE Firewall.
> More information: <https://pve.proxmox.com/wiki/Firewall>.
- Compile and print all firewall rules:
`pve-firewall compile`
- Show information about the local network:
`pve-firewall localnet`
- Restart the Proxmox VE Firewall service:
`pve-firewall restart`
- Start the Proxmox VE Firewall service:
`pve-firewall start`
- Stop the Proxmox VE Firewall service:
`pve-firewall stop`
- Simulate all firewall rules:
`pve-firewall simulate`
- Show the status of Proxmox VE Firewall:
`pve-firewall status`

37
tldr/linux/pvecm Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pvecm
> Proxmox VE Cluster Manager.
> More information: <https://pve.proxmox.com/pve-docs/pvecm.1.html>.
- Add the current node to an existing cluster:
`pvecm add {{hostname_or_ip}}`
- Add a node to the cluster configuration (internal use):
`pvecm addnode {{node}}`
- Display the version of the cluster join API available on this node:
`pvecm apiver`
- Generate new cluster configuration:
`pvecm create {{clustername}}`
- Remove a node from the cluster configuration:
`pvecm delnode {{node}}`
- Display the local view of the cluster nodes:
`pvecm nodes`
- Display the local view of the cluster status:
`pvecm status`

13
tldr/linux/pveperf Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pveperf
> A benchmarking tool in Proxmox Server. Gather CPU and hard disk performance data for the hard disk.
> More information: <https://pve.proxmox.com/pve-docs/pveperf.1.html>.
- Show CPU and hard disk performance data for the hard disk mounted at `/`:
`pveperf`

13
tldr/linux/qm-nbdstop Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# qm nbdstop
> Stop embedded nbd server.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Stop embedded nbd server:
`qm nbdstop {{VM_ID}}`

25
tldr/linux/qm-stop Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# qm stop
> Stop a virtual machine.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Stop a virtual machine immediately:
`qm stop {{VM_ID}}`
- Stop a virtual machine and wait for at most 10 seconds:
`qm stop --timeout {{10}} {{VM_ID}}`
- Stop a virtual machine and skip lock (only root can use this option):
`qm stop --skiplock {{true}} {{VM_ID}}`
- Stop a virtual machine and don't deactivate storage volumes:
`qm stop --keepActive {{true}} {{VM_ID}}`

21
tldr/linux/sestatus Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# sestatus
> Print the current SELinux status.
> More information: <https://manned.org/sestatus>.
- Print the current status:
`sestatus`
- Print the current states of all policy booleans:
`sestatus -b`
- Print the current file and process contexts:
`sestatus -v`

26
tldr/linux/speaker-test Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# speaker-test
> Speaker test tone generator for ALSA.
> See also: `aplay`, `arecord`, `amixer`.
> More information: <https://manned.org/speaker-test>.
- Test the default speakers with pink noise:
`speaker-test`
- Test the default speakers with a sine wave:
`speaker-test {{-t|--test}} sine {{-f|--frequency}} {{frequency}}`
- Test the default speakers with a predefined WAV file:
`speaker-test {{-t|--test}} wav`
- Test the default speakers with a WAV file:
`speaker-test {{-t|--test}} wav {{-w|--wavfile}} {{path/to/file}}`

33
tldr/linux/vzdump Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# vzdump
> Backup Utility for virtual machines and containers.
> More information: <https://pve.proxmox.com/pve-docs/vzdump.1.html>.
- Dump a guest virtual machine into the default dump directory (usually `/var/lib/vz/dump/`), excluding snapshots:
`vzdump {{vm_id}}`
- Back up the guest virtual machines with the IDs 101, 102, and 103:
`vzdump {{101 102 103}}`
- Dump a guest virtual machine using a specific mode:
`vzdump {{vm_id}} --mode {{suspend|snapshot}}`
- Back up all guest systems and send an notification email to the root and admin users:
`vzdump --all --mode {{suspend}} --mailto {{root}} --mailto {{admin}}`
- Use snapshot mode (no downtime required) and a non-default dump directory:
`vzdump {{vm_id}} --dumpdir {{path/to/directory}} --mode {{snapshot}}`
- Back up all guest virtual machines excluding the IDs 101 and 102:
`vzdump --mode {{suspend}} --exclude {{101, 102}}`