mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 08:46:21 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/linux/blockdev
Normal file
41
tldr/linux/blockdev
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blockdev
|
||||
|
||||
> Manage, query, and manipulate block devices.
|
||||
> More information: <https://manned.org/blockdev>.
|
||||
|
||||
- Print a report for all devices:
|
||||
|
||||
`sudo blockdev --report`
|
||||
|
||||
- Print a report for a specific device:
|
||||
|
||||
`sudo blockdev --report {{/dev/sdXY}}`
|
||||
|
||||
- Get the size of a device in 512-byte sectors:
|
||||
|
||||
`sudo blockdev --getsz {{/dev/sdXY}}`
|
||||
|
||||
- Set read-only:
|
||||
|
||||
`sudo blockdev --setro {{/dev/sdXY}}`
|
||||
|
||||
- Set read-write:
|
||||
|
||||
`sudo blockdev --setrw {{/dev/sdXY}}`
|
||||
|
||||
- Flush buffers:
|
||||
|
||||
`sudo blockdev --flushbufs {{/dev/sdXY}}`
|
||||
|
||||
- Get the physical block size:
|
||||
|
||||
`sudo blockdev --getpbsz {{/dev/sdXY}}`
|
||||
|
||||
- Set the read-ahead value to 128 sectors:
|
||||
|
||||
`sudo blockdev --setra 128 {{/dev/sdXY}}`
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# qm
|
||||
|
||||
> QEMU/KVM Virtual Machine Manager.
|
||||
> Some subcommands such as `list`, `start`, `stop`, `clone`, etc. have their own usage documentation.
|
||||
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
|
||||
|
||||
- List all virtual machines:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# qmrestore
|
||||
|
||||
> Restore QemuServer vzdump backups.
|
||||
> Restore QemuServer `vzdump` backups.
|
||||
> More information: <https://pve.proxmox.com/pve-docs/qmrestore.1.html>.
|
||||
|
||||
- Restore virtual machine from given backup file on the original storage:
|
||||
|
||||
@@ -30,7 +30,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Manage the Waydroid container:
|
||||
|
||||
`waydroid container {{start|stop|restart|freeze|unfreeze}}`
|
||||
`sudo waydroid container {{start|stop|restart|freeze|unfreeze}}`
|
||||
|
||||
- Open Waydroid shell:
|
||||
|
||||
`sudo waydroid shell`
|
||||
|
||||
- Adjust Waydroid window dimensions:
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ollama
|
||||
|
||||
> A large language model runner.
|
||||
> For a list of available models, see <https://ollama.com/library>.
|
||||
> More information: <https://github.com/ollama/ollama>.
|
||||
|
||||
- Start the daemon required to run other commands:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# onefetch
|
||||
|
||||
> Display project information and code statistics for a local Git repository.
|
||||
> More information: <https://github.com/o2sh/onefetch/wiki>.
|
||||
> More information: <https://github.com/o2sh/onefetch/wiki/command-line-options>.
|
||||
|
||||
- Display statistics for the Git repository in the current working directory:
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# scoop
|
||||
|
||||
> The Scoop package manager.
|
||||
> Some subcommands such as `bucket` have their own usage documentation.
|
||||
> More information: <https://scoop.sh>.
|
||||
|
||||
- Install a package:
|
||||
|
||||
Reference in New Issue
Block a user