Editing Lsblk
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | <code>lsblk</code><ref>http://man7.org/linux/man-pages/man8/lsblk.8.html</ref>, included in [[w:util-linux|util-linux]] package, list block devices including [[Hard disk drive]] and [[SDD]] devices. | |
− | <code>lsblk</code><ref>http://man7.org/linux/man-pages/man8/lsblk.8.html</ref>, included in | ||
<pre> | <pre> | ||
− | lsblk | + | $ lsblk -io KNAME,TYPE,SIZE,MODEL |
− | + | KNAME TYPE SIZE MODEL | |
− | sda | + | sda disk 149.1G TOSHIBA MK1637GS |
− | + | sda1 part 23.3G | |
− | + | sda2 part 28G | |
− | + | sda3 part 93.6G | |
− | sr0 | + | sda4 part 4.3G |
+ | sr0 rom 1024M CD/DVDW TS-L632M | ||
</pre> | </pre> | ||
− | + | <pre> | |
− | + | lsblk -S | |
− | + | NAME HCTL TYPE VENDOR MODEL REV TRAN | |
− | + | sda 0:0:0:0 disk ATA CT210MX501SSD4 023 sata | |
− | + | sdb 1:0:0:0 disk ATA WDC WDS100T2B0A- 90WD sata | |
− | + | sdc 3:0:0:0 disk ATA WDC WDS100T2B0A- 90WD sata | |
+ | sdd 6:0:0:0 disk WD My Book 15xE 4004 usb | ||
+ | :-S, --scsi Output info about SCSI devices only | ||
+ | </pre> | ||
<pre> | <pre> | ||
Line 43: | Line 46: | ||
</pre> | </pre> | ||
Includes <code>MAJ:MIN</code> information to match to <code>[[linux server administration/sar|sar]] -d</code>. | Includes <code>MAJ:MIN</code> information to match to <code>[[linux server administration/sar|sar]] -d</code>. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Activitites == | == Activitites == | ||
− | # Read Linux | + | # Read Linux lsblk Command Tutorial for Beginners: https://www.howtoforge.com/linux-lsblk-command/ |
− | |||
− | == | + | == See also == |
− | * <code>[[ | + | * <code>[[lshw]] -class disk</code> |
+ | * <code>[[hwinfo]]</code>, <code>hwinfo --disk</code> | ||
+ | * <code>[[lspci]]</code> | ||
* <code>[[blkid]]</code> | * <code>[[blkid]]</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Linux]] | [[Category:Linux]] |
Advertising: