Add uptime to Ubuntu Server 10.04 MotD

Imho, uptime is as important as the usual information provided by the default motd:
System load, Memory usage, Swap usage, Processes, Users logged in.

To have it included create the following file and save it as /etc/update-motd.d/60-uptime-info:

#!/bin/bash

###
# Appends the uptime to the motd
###

echo
echo -n "  Uptime: "
/usr/bin/uptime

On your next login uptime will be seamlessly integrated in the motd.😉

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: