Linux command
lsscsi 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List all SCSI devices
lsscsi
Show disk capacities
lsscsi -s
Show detailed attributes
lsscsi -L
Show transport information
lsscsi -t
List SCSI hosts
lsscsi -H
Show generic device names
lsscsi -g
说明
lsscsi lists SCSI devices (including SATA disks through libata) and their attributes. It provides information about device type, vendor, model, and device node paths.
参数
- -L, --list
- List attributes in key=value format
- -s, --size
- Show disk capacity in human-readable format
- -g, --generic
- Show generic SCSI device name (sg*)
- -H, --hosts
- List SCSI hosts instead of devices
- -l, --long
- Output additional information
- -c, --classic
- Classic output format (similar to lsscsi 0.21)
- -d, --device
- Show device major and minor numbers
- -t, --transport
- Show transport information
FAQ
What is the lsscsi command used for?
lsscsi lists SCSI devices (including SATA disks through libata) and their attributes. It provides information about device type, vendor, model, and device node paths.
How do I run a basic lsscsi example?
Run `lsscsi` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -L, --list do in lsscsi?
List attributes in key=value format