How Do I List All Drives in Linux?
Contents

How do I list all devices in Linux?

The best way to list anything in Linux is to remember the following ls commands:

  1. ls: List files in the file system.
  2. lsblk: List block devices (for example, the drives).
  3. lspci: List PCI devices.
  4. lsusb: List USB devices.
  5. lsdev: List all devices.

How do I get a list of drives?

If you’re running Windows 10 or Windows 8, you can view all mounted drives in File Explorer. You can open File Explorer by pressing Windows key + E . In the left pane, select This PC, and all drives are shown on the right.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest