Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-28 00:18:29 +00:00
parent 702f0e6878
commit 72b426647f
4 changed files with 125 additions and 0 deletions

29
tldr/linux/dpigs Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# dpigs
> Show which installed packages occupy the most space on `apt` based systems.
> More information: <https://manned.org/dpigs>.
- Display the N largest packages on the system:
`dpigs --lines={{N}}`
- Use the specified file instead of the default dpkg [s]tatus file:
`dpigs --status={{path/to/file}}`
- Display the largest [S]ource packages of binary packages installed on the system:
`dpigs --source`
- Display package sizes in [H]uman-readable format:
`dpigs --human-readable`
- Display help:
`dpigs --help`

29
tldr/linux/pvremove Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pvremove
> Remove LVM labels from physical volume(s).
> More information: <https://manned.org/pvremove>.
- Remove a LVM label from a physical volume:
`sudo pvremove {{/dev/sdXY}}`
- Display detailed output during the operation:
`sudo pvremove --verbose {{/dev/sdXY}}`
- Remove a LVM label without asking for confirmation:
`sudo pvremove --yes {{/dev/sdXY}}`
- Forcefully remove a LVM label:
`sudo pvremove --force {{/dev/sdXY}}`
- Display output in JSON format:
`sudo pvremove --reportformat json {{/dev/sdXY}}`