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
# Find running kernel version
# What compiler version do I have installed
# What is the running kernel and compiler installed
# Find X server version
# What pci cards are installed and what irq/port is used
# What kernel modules are loaded
# Memory and swap information
An article: Tips for Optimizing Linux Memory
# How are the hard drives partitioned
# How much free/used drive space
# 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
# For finding or locating files
# 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
# 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
# See all command aliases for the current user
# See rpms installed on current system
rpmquery --all | less
rpmquery --all > <filename>
rpmquery --all | grep -i <plaintext>
Autospec for tarballs
# What directory am I using
# 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.
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.
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.
To see drivers (kernel modules) in use, use
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
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 :-)
|All times are GMT -5. The time now is 04:07 AM.|