Shell/Bash: check ssd or hdd linux Example


Shell/Bash Example: This is the "check ssd or hdd linux" Example. compiled from many sources on the internet by

check ssd or hdd linux

$ cat /sys/block/sda/queue/rotational

#If the output is 1, the disk is HDD.
#If the output is 0 (zero), the disk is SDD.
#Because, SSDs won't rotate. So the output should be zero
# if you have SSD in your system.

* Summary: This "check ssd or hdd linux" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!