command to check hardware
I'm pretty new to linux. Just wondering if there is a command for linux to print up a list of hardware specs on a computer, also giving information on if the hardware is working properly or not. I'm using Knoppix 3.3. Thanks in advance.
|
You mean you don't know what hardware is in your computer? Here are a few bash commands for finding out stuff.
Handy bash commands for finding out stuff in Linux: # Find CPU specifications cat /proc/cpuinfo # Find running kernel version uname -r # What compiler version do I have installed gcc -v gcc --version # What is the running kernel and compiler installed cat /proc/version # Find X server version X -showconfig # What pci cards are installed and what irq/port is used cat /proc/pci # What kernel modules are loaded lsmod # Memory and swap information cat /proc/meminfo free An article: Tips for Optimizing Linux Memory # How are the hard drives partitioned fdisk -l # How much free/used drive space df -h # Show disk usage by current directory and all subdirectories du | less # What takes up so much space on your box # Run from the directory in question and the largest chunk shows up last find $1 -type d | xargs du -sm | sort -g # What is the distribution cat /etc/.product cat /etc/.issue cat /etc/issue cat /etc/issue.net sysinfo # For finding or locating files find locate which whereis # Use dmesg to view the kernel ring buffer (error messages) dmesg | less # Watch error messages as they happen (sysklog needed) as root, tail -f /var/log/messages (shows last 10 lines, use a number in front of f for more lines) # What processes are running ps -A # Find a process by name ps -ef | grep -i <plain text> For example, XCDroast ps -ef xcdroast # See current environment list, or pipe to file env | more env > environmentvariablelist.txt # Show current userid and assigned groups id # See all command aliases for the current user alias # See rpms installed on current system rpmquery --all | less rpmquery --all > <filename> rpmquery --all | grep -i <plaintext> Autospec for tarballs RPM tools # What directory am I using pwd # Get ls colors in less ls --color=always | less -R Look at man <command> or info <command> for the flags I used and for other options you can use for bash commands. |
you can try below commands to get hardware details.
lspci /proc dmidecode hwinfo This article which I referred have linux hardware information |
Thanks for the great link!! I want to find the GUI version of lshw!!
Normally, it's not good to reopen (very) old threads----but I think this is an exception. |
Quote:
http://www.expertslogin.com/linux-ad...dware-details/ |
Quote:
|
There are a number of ways to check what hardware you have in Linux. These are all important to know when configuring a kernel from source before compiling it. I will be covering commands for finding hardware information because that's what you asked for, not information about your software like the first guy posted.
Code:
lspci To see drivers (kernel modules) in use, use Code:
lspci -nnk Code:
00:14.2 Audio device [0403]: ATI Technologies Inc SBx00 Azalia (Intel HDA) [1002:4383] For a few devices that are not always in use such as my usb webcam, I left it as a module, so that it only loads when in use. This is just my preference. You can do it either way. If you plugin hardware such as a usb device while Linux is running, information about it will show in Code:
dmesg | tail |
Quote:
Now you can open that file with a GUI such as firefox or your web browser of choice. |
Linux hardware details
Sorry I mean to edit a different thread. Not sure how to delete this now :-)
|
Quote:
Coordially, |
All times are GMT -5. The time now is 10:37 PM. |