Created
September 3, 2011 04:45
-
-
Save pablasso/1190578 to your computer and use it in GitHub Desktop.
Login script for Ubuntu: /etc/update-motd.d/00-stats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo " " | |
echo " =======================================" | |
echo " = Welcome to KENTAURUS. =" | |
echo " =======================================" | |
echo | |
btime=`who -b | sed -e 's/[^A-Z]*//'` | |
utime=`uptime | sed -e 's/ [0-9:]* up />/' -e 's/,.*//'` | |
echo " ==== BOOT TIME ==== ==== UPTIME ====" | |
echo " "$btime" " $utime | |
echo | |
echo "===================== DISK USAGE ======================" | |
df -h | |
echo | |
echo "================== CURRENTLY ONLINE ===================" | |
echo "NAME LINE TIME IP ADDRESS" | |
who --ips | |
echo " " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script is used with UpdateMotd to modify the message of the day.