When you are running a command line only version of Linux, on a server for instance, keeping up to date can fall to the wayside in your daily use as there is no nagging icon to tell you there are updates. One of the most useful directories you can peek around in is the ‘/proc’ directory, just off of root. This directory contains text files that have information ranging form memory stats, swap information, cpu information, cryptographic information, and even…the version of your current Linux Kernel. This can be useful when you are preparing to apply a kernel patch or upgrade to your system.

To do this we are going to use the ‘cat‘ command in Linux. This is short for conCATenate, meaning to stitch together, however we are going to use the command to simply display some text from a file.

The following will give you a nice printout of the exact Kernel version you are running on:

This shows what version I am using, which is currently Linux Mint 11 (based on Ubuntu)

These types of tools can be really useful when combined with applications like Conky, the desktop based system information display.

A few other useful files you can ‘cat’ are:

Post Promoter Pro

Posted by Chris Klosowski

Hi, I'm Chris Klosowski. Currently I am a Lead Developer of Easy Digital Downloads, where we build the easiest way to sell digital products with WordPress. I am also the person behind Post Promoter Pro, the most effective way to promote your WordPress Content.

One Comment

Leave a reply

Your email address will not be published. Required fields are marked *