There are several ways to list all the hard drives present in a system through Linux command lines. Keep in mind a hard drive could be physically connected, virtually connected or even emulated (for example: when you use storage devices such as EMC, Sun o
Listing disks on Linux is an essential skill that can be achieved through various commands such as lsblk, fdisk, and parted. Each command has its own advantages and use cases.
Linux 下的硬碟和設備檔案 UNIX-like 的設計哲學之一是〝Everything is a File〞 (一切都是檔案),所以硬碟也被 Linux 當成〝檔案〞,例如 Windows 下的〝C 碟〞在 Linux 可能被視為檔案〝/dev/sda〞,下表為部分周邊裝置和 Linux 設備檔案 (Device file)對照表。