How to: Get System Information in Ubuntu Linux (2016 version)

If you want to retrieve system information from a Linux Ubuntu operating system, you will need to know which commands you have to use – and in order to make it much easier for you – we have made this massive post on how to get system information in Linux Ubuntu operating systems. This tutorial will work with the Ubuntu Linux 14.04.

Most of the system information commands will also work in older Linux operating systems.

40 System Information commands in Ubuntu Linux which will help you forward

  1. Find the system host name
  2. Display the system’s DNS domain name
  3. Display the system’s Fully Qualified Domain Name (FQDN)
  4. Find the system serial number, manufacturer of the system and model name
  5. Display information about installed hardware
  6. Find the system CPU info
  7. Find the system main memory (RAM) info
  8. Display CPU (processors) related statistics
  9. Show statistics about memory usage on the system including total installed and used RAM
  10. Show amount of free and used memory in the system
  11. Display the amount of memory in megabytes
  12. Display the amount of memory in gigabytes
  13. Display the amount of memory in terabytes
  14. Display human readable output
  15. Show the system swap space usage
  16. Show the system virtual memory statistics
  17. Find the Ubuntu Linux distribution version and related information
  18. Find the system kernel version number
  19. Find the system kernel parameters
  20. Find the system kernel architecture (32/64 bit)
  21. Find the system disk information
  22. Show all installed disks and size
  23. Display file system disk space usage
  24. Estimate file space usage
  25. Display mounted file system
  26. Display SCSI devices (or hosts) and their attributes on Linux
  27. Display I/O statistics
  28. Find the system PCI devices information
  29. Find the system USB devices information
  30. Find the system Wireless devices information
  31. Find the system VGA/Graphics devices information
  32. Find the system NVIDIA Graphics devices information
  33. Find the system AMD/ATI Graphics devices information
  34. Which version of Unity am I running?
  35. Find the system audio devices information
  36. Find out how long the system has been running
  37. Find the system load
  38. Show the system reboot and shutdown history
  39. Show runlevel
  40. Show history of commands

All the commands which have been shown should be inserted in the terminal window of the Linux operating system you are using.

Find the system host name

  • hostname
  • cat /etc/hostname

Display the system’s DNS domain name

  • dnsdomainname

Display the system’s Fully Qualified Domain Name (FQDN)

  • hostname -f

Find the system serial number, manufacturer of the system and model name

  • sudo dmidecode | more
  • lshw | more
  • sudo lshw -short

Display information about installed hardware

  • sudo lsdev

Find the system CPU info

  • cat /proc/cpuinfo
  • lscpu

Display CPU (processors) related statistics

  • sudo mpstat
  • sudo mpstat 1
  • sudo mpstat -A

Find the system main memory (RAM) info

Show statistics about memory usage on the system including total installed and used RAM

  • less /proc/meminfo

Show amount of free and used memory in the system

  • free

Display the amount of memory in megabytes

  • free -m

Display the amount of memory in gigabytes

  • free -g

Display the amount of memory in terabytes

  • free –tera

Display human readable output

  • free -h

Show the system swap space usage

  • swapon -s
  • cat /proc/swaps
  • cat /proc/meminfo
  • top

Show the system virtual memory statistics

  • sudo vmstat
  • sudo vmstat 1
  • sudo vmstat 2

Find the Ubuntu Linux distribution version and related information

  • lsb_release -a

Find the system kernel version number

  • uname -r

Find the system kernel parameters

  • cat /proc/cmdline
  • sysctl -a | more

Find the system kernel architecture (32/64 bit)

  • uname -m
  • getconf LONG_BIT
  • arch

Find the system disk information

Show all installed disks and size

  • fdisk -l | grep ‘^Disk /dev’

Display file system disk space usage

  • df
  • df -H
  • df -HT

Estimate file space usage

  • du
  • du /home

Display mounted file system

  • cat /proc/mount
  • mount

Display SCSI devices (or hosts) and their attributes on Linux

  • lsscsi

Display I/O statistics

  • sudo iostat
  • sudo iostat 2

Find the system PCI devices information

  • lspci
  • lspci -vt
  • lspci -vvvn| less

Find the system USB devices information

  • lsusb
  • lsusb -vt

Find the system Wireless devices information

  • iwconfig
  • watch -n 1 cat /proc/net/wireless
  • wavemon

Find the system VGA/Graphics devices information

  • lspci | grep -i vga
  • lspci -vvnn | grep VGA
  • sudo lshw -class display

Find the system NVIDIA Graphics devices information

The following commands only works with Nvidia’s binary Linux driver:

  • nvidia-smi
  • nvidia-settings

Find the system AMD/ATI Graphics devices information

The following command only works with AMD’s catalyst

  • fglrxinfo

Which version of Unity am I running?

  • unity –version

Find the system audio devices information

  • lspci | grep -i audio
  • cat /proc/asound/cards
  • arecord -l

Find out how long the system has been running

  • uptime
  • who
  • w

Find the system load

  • uptime
  • cat /proc/loadavg
  • sudo top
  • sudo htop
  • sudo atop

Show the system reboot and shutdown history

  • last reboot
  • last shutdown

Show runlevel

  • runlevel
  • who -r

Show history of commands

  • history