1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-28 18:54:16 +02:00

pvcreate, pvremove, vgchange, vgremove: add short options (#17783)

This commit is contained in:
Managor 2025-08-25 19:59:42 +03:00 committed by GitHub
parent 0a539a5c94
commit b8fb24f61b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 10 deletions

View file

@ -6,8 +6,8 @@
- Initialize the `/dev/sda1` volume for use by LVM:
`pvcreate {{/dev/sda1}}`
`pvcreate {{/dev/sdXY}}`
- Force the creation without any confirmation prompts:
`pvcreate --force {{/dev/sda1}}`
`pvcreate {{[-f|--force]}} {{/dev/sdXY}}`

View file

@ -9,15 +9,15 @@
- Display detailed output during the operation:
`sudo pvremove --verbose {{/dev/sdXY}}`
`sudo pvremove {{[-v|--verbose]}} {{/dev/sdXY}}`
- Remove a LVM label without asking for confirmation:
`sudo pvremove --yes {{/dev/sdXY}}`
`sudo pvremove {{[-y|--yes]}} {{/dev/sdXY}}`
- Forcefully remove a LVM label:
`sudo pvremove --force {{/dev/sdXY}}`
`sudo pvremove {{[-f|--force]}} {{/dev/sdXY}}`
- Display output in JSON format:

View file

@ -6,8 +6,8 @@
- Change the activation status of logical volumes in all volume groups:
`sudo vgchange --activate {{y|n}}`
`sudo vgchange {{[-a|--activate]}} {{y|n}}`
- Change the activation status of logical volumes in the specified volume group (determine with `vgscan`):
`sudo vgchange --activate {{y|n}} {{volume_group}}`
`sudo vgchange {{[-a|--activate]}} {{y|n}} {{volume_group}}`

View file

@ -9,11 +9,11 @@
- Forcefully remove a volume group without confirmation:
`vgremove --force {{volume_group}}`
`vgremove {{[-f|--force]}} {{volume_group}}`
- Set the debug level for detailed logging to level 2, (repeat `--debug` up to 6 times to increase the level):
`vgremove --debug --debug {{volume_group}}`
`vgremove {{[-d|--debug]}} {{[-d|--debug]}} {{volume_group}}`
- Use a specific config setting to override defaults:
@ -21,4 +21,4 @@
- Display help text for usage information:
`vgremove --help`
`vgremove {{[-h|--help]}}`