LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there a way to view ALL devices connected to the system? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-a-way-to-view-all-devices-connected-to-the-system-929976/)

ulkoma 02-17-2012 06:54 PM

Is there a way to view ALL devices connected to the system?
 
I mean ALL devices
It possible in MS Windows via Device Manager how come it's not possible under linux?

Also if there is such way does it tell which devices lack drivers and which ones have been installed correctly? again this is available with MS Windows

Thanks in advance

Cedrik 02-17-2012 07:26 PM

In Linux you can use dmesg command with the help of grep to filter output

singhjc 02-18-2012 02:46 AM

Hi and if you want attached hardware list also then use

#lspci

tommcd 02-18-2012 03:07 AM

To view all usb connected devices simply run lsusb in the terminal.
What distro and desktop environment are you using? In most all modern Linux distros you can view any connected devices like mp3 players, external hard drives, flash drives, and the like straight from the file manager.

ulkoma 02-18-2012 03:15 PM

OK so #lspci is to show the PCI attached devices regardless if the driver is installed or not
lsusb is for the USB ones

Is that ALL? no other buses? no other types of hardware? and how would I know which device lacks the driver and which one is installed properly?
Thanks

Cedrik 02-18-2012 04:42 PM

Maybe I am missing something but... when the device works, you can safely guess the driver is loaded and works proprelly

When you hot plug a device, in doubt see output of dmesg command

frankbell 02-18-2012 07:20 PM

There is an excellent GUI tool for viewing hardware called hardinfo. I think it's available in most repos.

In KDE, the KInfoCenter is also quite thorough.

Gnome, in contrast, takes a minimalist view of GUI tools in an attempt to avoid clutter.

tommcd 02-19-2012 09:34 AM

Quote:

Originally Posted by frankbell (Post 4606202)
There is an excellent GUI tool for viewing hardware called hardinfo. I think it's available in most repos.

Yes, hardinfo is quite useful for displaying hardware and even contains some benchmarking tools as well. On my Lubuntu 11.10 system hardinfo came preinstalled.

To: ulkoma,
If you tell us what distro and desktop environment you are using then we can likely give you more specific help.
Is there some specific device you are having trouble using on Linux? If so, then tell us what the problematic device is and we can hopefully help you to get it working.

I use Slackware with XFCE and Lubuntu with LXDE. Any attatched devices that contain files I can view, copy, paste, and delete files straight from the file manager or the terminal.
Using lspci, lsusb, hardinfo, or lshw (list hardware) can provide more detailed information if I need it.

ulkoma 02-19-2012 02:25 PM

Quote:

Originally Posted by tommcd (Post 4606592)
To: ulkoma,
If you tell us what distro and desktop environment you are using then we can likely give you more specific help.
Is there some specific device you are having trouble using on Linux? If so, then tell us what the problematic device is and we can hopefully help you to get it working.

Thanks for all the informative answers guys
I am not using any distro at the moment, I keep trying different distro everyday
I am just trying to compare Windows to Linux before I migrate forever

GUI tools are not the best IMO when it comes to Linux (unlike Windows), maybe I am mistaken but I prefer to do everything via plain boring text when it comes to Linux

I'll re-phrase my question:
Do lspci & lsusb show EVERY piece of hardware connected to my machine? in other words is it correct to say that there is only TWO types of buses under Linux? PCI & USB

if this is correct then I'll move on to the next part of my question/comparison

frankbell 02-19-2012 07:43 PM

lspci shows PCI devices.

lsusb shows USB devices.

lscpu displays CPU information.

dmesg will show all devices, including the ones shown by the above commands, detected by the kernel. The output of dmesg can be well over 1500 lines long on some systems.

Each of these commands has its own man page.

chrism01 02-19-2012 07:54 PM

Code:

ls /proc
is pretty informative too :)


All times are GMT -5. The time now is 07:29 PM.