jcanfield
11/14/2013 - 12:16 AM

Debian/Ubuntu System Information from Command Line Collection of commands and applications that can be ran via the command line to display

Debian/Ubuntu System Information from Command Line Collection of commands and applications that can be ran via the command line to display crucial system information and specifications. Thoughts were to incorporate them into a 'dynamic MOTD'.

#!/bin/bash

# Prerequisite is to install Inxi
wget ftp://cathbard.com/binary/inxi*.deb -o ~/tmp/inxi_latest.deb
sudo dpkg -i inxi*.deb
sudo apt-get -f install

# Display Full System Information
inxi -F

# Display Graphics Card
lspci | grep VGA

# Display Memory Information
awk '{ printf "%.2f", $2/1024/1024 ; exit}' /proc/meminfo

# Display BIOS Information
sudo dmidecode -t bios

### Future will be to write a Ruby script that will take the concept of inxi and add on more useful information plus a Dynamic MOTD.