This is a small collection of commands that can give you information on a Linux computer.

Most of this commands can be run as non-privileged user, but more information can be obtained if (and should be) run as root:

General system information:



# uname -a

List all hardware

lshw |less

Alternative with Gtk frontend

lshw-gtk

Process information:



# top

(Shift-M to order the list by memory use)



Memory information:



# free -m

Alternative

cat /proc/meminfo





Swap information

swapon -s

Alternative

cat /proc/swaps

BIOS information:



# dmidecode | less

Show information about the distribution:



cat /etc/issue

Alternative

cat /proc/version

Alternativa

lsb_release -a

Show information about all PCI



lspci (or -v for verbose)

Show information about all usb devices.



lsusb (or -v for verbose)

Show information about partitions



cat /proc/partitions

Alternative

fdisk -l





Popular Posts:

None Found