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: