lsscsi
hardware informationLinux
The lsscsi command is one of the most frequently used commands in Linux/Unix-like operating systems. lsscsi List SCSI devices or hosts
Quick Reference
Command Name:
lsscsi
Category:
hardware information
Platform:
Linux
Basic Usage:
lsscsi [options] [arguments]
Common Use Cases
Syntax
lsscsi [options]
Options
| Option | Description |
|---|---|
-d, --device |
Show device node name |
-g, --generic |
Show generic device file name |
-c, --classic |
Show the device queue depth and Write Cache Enable status |
-t, --transport |
Show transport information where available |
-p, --protection |
Show protection information |
-L, --lunhex |
Show LUN in hexadecimal rather than decimal |
-l, --long |
Show the SCSI device or host name as a full path in sysfs |
-s, --size |
Show the size of the device |
-k, --kname |
Show kernel name instead of device node name |
-v, --verbose |
Be more verbose with output |
-H, --hosts |
List SCSI hosts instead of SCSI devices |
-h, --help |
Display help information |
-V, --version |
Display version information |
Examples
How to Use These Examples
The examples below show common ways to use the lsscsi command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.