From 06ae4b99641334286639f078b35a9b1aeb6ca306 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 6 Oct 2024 00:18:37 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/blockdev | 41 +++++++++++++++++++++++++++++++++++++++++ tldr/linux/qm | 1 + tldr/linux/qmrestore | 2 +- tldr/linux/waydroid | 6 +++++- tldr/ollama | 1 + tldr/onefetch | 2 +- tldr/windows/scoop | 1 + 7 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 tldr/linux/blockdev diff --git a/tldr/linux/blockdev b/tldr/linux/blockdev new file mode 100644 index 00000000..89ebd68d --- /dev/null +++ b/tldr/linux/blockdev @@ -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: . + +- 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}}` diff --git a/tldr/linux/qm b/tldr/linux/qm index ce2f0da4..24843bac 100644 --- a/tldr/linux/qm +++ b/tldr/linux/qm @@ -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: . - List all virtual machines: diff --git a/tldr/linux/qmrestore b/tldr/linux/qmrestore index cdcffc13..7e9ff267 100644 --- a/tldr/linux/qmrestore +++ b/tldr/linux/qmrestore @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # qmrestore -> Restore QemuServer vzdump backups. +> Restore QemuServer `vzdump` backups. > More information: . - Restore virtual machine from given backup file on the original storage: diff --git a/tldr/linux/waydroid b/tldr/linux/waydroid index e4a535b6..2c4c2afb 100644 --- a/tldr/linux/waydroid +++ b/tldr/linux/waydroid @@ -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: diff --git a/tldr/ollama b/tldr/ollama index c4dd94cf..36675028 100644 --- a/tldr/ollama +++ b/tldr/ollama @@ -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 . > More information: . - Start the daemon required to run other commands: diff --git a/tldr/onefetch b/tldr/onefetch index bce03f59..bc7ebc83 100644 --- a/tldr/onefetch +++ b/tldr/onefetch @@ -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: . +> More information: . - Display statistics for the Git repository in the current working directory: diff --git a/tldr/windows/scoop b/tldr/windows/scoop index 02232d1c..3784322d 100644 --- a/tldr/windows/scoop +++ b/tldr/windows/scoop @@ -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: . - Install a package: