UPD: Changed question title from manage devices
to discover information about devices
One of the frequent thing I do is look up info about devices on my systems. And I am constantly find myself confused about various different commands on Linux to query available disks, network adapters, graphics cards etc.
For example, if I need to query all disk drives available, I do:
ls -la /dev/disk/by-id
If I need to query all network cards available, I do:
ls -la /sys/class/net
Is there any single point to query all device ids by type?
Maybe there was initiative to unify handling of devices info and make it discoverable/accessible, but it failed?
History of the question in order of appearance:
lspci
lsusb
and so on that allow a nice listing. But I don't thing there anything working everywhere. – Kiwy Dec 18 '13 at 09:12/dev
, thus being among the few devices that break the Unix file paradigm. It messes with my Chi, man. (and my OCD) – Alexios Dec 18 '13 at 10:38