mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
refactor: moved back from specific folder as articles are not really os specific
This commit is contained in:
38
knowledge base/lsblk.md
Normal file
38
knowledge base/lsblk.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# `lsblk`
|
||||
|
||||
## Table of contents <!-- omit in toc -->
|
||||
|
||||
1. [TL;DR](#tldr)
|
||||
1. [Sources](#sources)
|
||||
|
||||
## TL;DR
|
||||
|
||||
```sh
|
||||
# Install the tool.
|
||||
dnf install 'util-linux'
|
||||
|
||||
# Show information about block devices.
|
||||
lsblk
|
||||
lsblk -a
|
||||
|
||||
# Also print other specific columns.
|
||||
# Mind the '+' character at the beginning.
|
||||
lsblk -o '+MODEL,SERIAL'
|
||||
|
||||
# Show only physical disks
|
||||
lsblk -d
|
||||
|
||||
# Filter by major device numbers.
|
||||
lsblk -I '8,259'
|
||||
```
|
||||
|
||||
## Sources
|
||||
|
||||
- [`man` page][man page]
|
||||
|
||||
<!--
|
||||
References
|
||||
-->
|
||||
|
||||
<!-- Others -->
|
||||
[man page]: https://linux.die.net/man/8/lsblk
|
||||
Reference in New Issue
Block a user