Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

Could you guys have a sourcecode or the way to get the list of devices in linux environment.

Any answer will be appreciated, thanks in advanced.
Posted

These are list your partitions :

code : parted -l
and
code : fdisk -l
are the same.

and
code : cat /proc/partitions
have less information about partitions than fdisk -l and parted -l.

code : lsusb
displaying information about USB buses in the system and the devices connected to them.

code : lspci
prints detailed information about all PCI buses and devices in the system.
 
Share this answer
 
One of these answers[^] should help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900