mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +00:00
Base: Add man page for blockdev utility
This commit is contained in:
parent
410d81706d
commit
7269ce15fc
Notes:
sideshowbarker
2024-07-18 02:53:56 +09:00
Author: https://github.com/Granddave
Commit: 7269ce15fc
Pull-request: https://github.com/SerenityOS/serenity/pull/10401
Reviewed-by: https://github.com/supercomputer7
1 changed files with 30 additions and 0 deletions
30
Base/usr/share/man/man8/blockdev.md
Normal file
30
Base/usr/share/man/man8/blockdev.md
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
## Name
|
||||||
|
|
||||||
|
blockdev - query block devices
|
||||||
|
|
||||||
|
## Synopsis
|
||||||
|
|
||||||
|
```**sh
|
||||||
|
$ blockdev [options] <device>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
The `blockdev` command call ioctls on the given block device.
|
||||||
|
|
||||||
|
## Options
|
||||||
|
|
||||||
|
* `-s`, `--size`: Get disk size in bytes
|
||||||
|
* `-b`, `--block-size`: Get block size in bytes
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Get disk size
|
||||||
|
# blockdev -s /dev/hda
|
||||||
|
863718912
|
||||||
|
|
||||||
|
# Get block size
|
||||||
|
# blockdev -b /dev/hda
|
||||||
|
512
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue