How do I list all devices in Linux?

Ẽm Thư

New member
How do I list all devices in Linux?
Answer
To summarize then, the best way to list anything out in Linux is to remember the following ls commands:
  • ls – list files in the file system.
  • lsblk – list the block devices (i.e. drives)
  • lspci – list the pci devices.
  • lsusb – list the USB devices.
  • lsdev – list all the devices.
 

Tìm kiếm

Back
Top