Dig Up System Information Using the Terminal
Troubleshooting, upgrading, or just curious? Find out what’s in your system without opening the case. Using these Linux command line tools, you can get details about your hardware and distribution.
I’ve tested these commands in Ubuntu 7.10, but they should all work in other Linux distributions. Unless noted otherwise, all of this software is included by default with Ubuntu.
Graphics card:
glxinfo
- details about OpenGL, the Xserver, and your graphics cardglxinfo | grep direct
- do you have direct 3d rendering?glxinfo | grep vendor
- graphics card vendorlspci | grep VGA
- specific graphics card modelglxgears
- a simple 3d benchmark, prints frame rate to the terminalxrandr
- supported display resolutions
Audio:
lspci | grep Audio
- audio controlleraplay --list-devices
- more audio device information
Software versions:
cat /etc/issue
- current distribution and versionapt-cache showpkg packagename
- packagename’s version and dependenciesuname -r
- Linux kernel versionuname -a
- all kernel details
Networking:
lspci | grep Ethernet
- Ethernet controllersifconfig
- networking interfaces, IP addresses, and more
Processor:
cat /proc/cpuinfo
- all processors, clock speeds, flags, and morecat /proc/loadavg
- processor load average for the last 1, 5, and 15 minutestop
- press C key to sort processes by CPU usage
Memory:
cat /proc/meminfo
- amount of RAM and swap, and how much is being used for whatfree -m
- total, used, and free memory shown in MBtop
- press M key to sort processes by memory usage
Hard disks:
df -H
- partitions, as well as their mount-points and usage in GBsudo fdisk -l
- all partitions, their device names, and positions on disk
USB devices:
lsusb
- USB buses and attached devices
Even more:
lshal -m
- monitor for hardware changeslspci
- all PCI deviceshwinfo --short
(install from package hwinfo) - overview of all hardware, as well as more detailed infolshw
- another program for listing hardwarelshw -html | w3m -T text/html
- lists hardware with HTML output in the w3m web browseruptime
- current time elapsed since last reboot, users, and load average
Did I forget anything? Leave a comment below if you have something to add.
Archived Comments
Ali Servet Dönmez
Ah it’s double “ - ” that makes “ – “… Sorry! =D
Eversmann
Maybe adding the command iwconfig at “Networking”?
Regards ;-)
arochester
Perhaps one important piece of information came from Ubuntu Blog, “Find Hardware
Specs (Details) on your Computer” at http://ubuntu.wordpress.com/2007/02/18/find-hardware-specs-details-on-your-computer/
-particularly:
It create an html page with your hardware details if you do a:
$sudo lshw -html > your-file-name.html
pt
is there a way to find out how much memory your graphics card is recognised as
having.
i.e. the nvidia-glx-new driver?
thisNameIsTaken
My favourite:
w - output all currently logged in users and what they’re doing.
Possibly put under networking?
Cyctim
Thanks, you’ve helped me work out why my screen resolution isn’t higher - my graphics card doesn’t go any higher… D’oh!
student
Thanks! :)
Meenakshi Sundaram
thanks for the nice info…is there any command line utility which we can use to get a consolidated kind of system information???
Frederick1337
sudo dmidecode
Ali Servet Dönmez
Correction: must be “aplay –list-devices”, Cheers.