1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

Base: Add man page for blockdev utility

This commit is contained in:
David Isaksson 2021-10-09 10:23:45 +02:00 committed by Andreas Kling
parent 410d81706d
commit 7269ce15fc

View 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
```