Adminbuntu

Everything for the Ubuntu Server Administrator

User Tools

Site Tools


Sidebar

Server Administration


Server Applications


At the Command Line


Elsewhere


Copyright 2013 Applied Conscious Technologies, LLC

Terms of Agreement

Contact


submit to reddit

system_information

Server Administration

Ubuntu Server System Information

Display System Information on an Ubuntu Server

Ubuntu Version

lsb_release -a

Is 32-bit or 64-bit Ubuntu Server Installed?

if [[ `uname -a` == *_64* ]] ; then echo '64-bit' ; else echo '32-bit' ; fi

Storage

Disk Space

See: Disk Space

List Block Devices

This will neatly display the block storage devices on your system.

lsblk

List Mounted Filesystems

mount | column -t

List Storage Partitions

cat /proc/partitions

Test for Unreadable Blocks on Disk sda

badblocks -s /dev/sda

Processors

List Processor Information

grep "model name" /proc/cpuinfo

Number of Processors on the System

cat /proc/cpuinfo | grep processor | wc -l

Hardware

Show PCI Information

lspci -tv

Show USB Information

lsusb -tv

Total Memory

grep MemTotal /proc/meminfo | awk '{ print $2 }' | xargs printf "%'d bytes\n"

Operating System

List Kernel Version and System Architecture

uname -a

Display SMBIOS/DMI Information

dmidecode -q | less

Locale

printf "%'d\n" 1234

Extract Information from Locale Database

echo "I live in `locale territory`"

Lookup Locale Information for Specific Country

LANG=en_IE.utf8 locale int_prefix

List Fields Available in Locale Database

locale | cut -d= -f1 | xargs locale -kc | less

system_information.txt · Last modified: 2015/05/31 21:20 (external edit)