Table of Contents

Get Linux System Info

Get Linux Version Number

lsb_release -a

or

cat /etc/issue

Get Process RAM Usage

PROCESSID=1; TYPE="Rss";echo 0 $(cat /proc/`$PROCESSID`/smaps  | grep $TYPE | awk '{print $2}' | sed 's#^#+#') | bc

Where $PROCESSID is the name of the process you want to inspect and $TYPE is one of: