發新話題
打印

lsblk --output NAME,FSTYPE,LABEL,UUID,MODE

本主題被作者加入到個人文集中

lsblk --output NAME,FSTYPE,LABEL,UUID,MODE

https://unix.stackexchange.com/q ... -list-disk-in-linux
>>>>>
lsblk --output NAME,FSTYPE,LABEL,UUID,MODE

>>>>>

TOP

TOP

lshw

Another commonly used utility is lshw, which can print out detailed information about your hardware. Again it might not be default in some distros even though it is a system application.

bash$ lshw -class disk

The above command will list all disks on the system. You can also specify the storage class if you want to print out the storage controllers as well. You can further reduce the verbosity of the output by using the -short option

bash$ lshw -class disk -class storage -short

TOP

發新話題