Skip to content

Instantly share code, notes, and snippets.

@isDipesh
Created October 12, 2017 15:39
Show Gist options
  • Save isDipesh/1464f2e03b966315de4d7152df086df9 to your computer and use it in GitHub Desktop.
Save isDipesh/1464f2e03b966315de4d7152df086df9 to your computer and use it in GitHub Desktop.
Useful motd
#!/bin/sh
echo
exec /usr/bin/uptime
#!/bin/sh
echo
exec '/bin/df' '-h' '/'
#!/bin/sh
echo
exec 'free' '-m'
@isDipesh
Copy link
Author

sudo su
cd /etc/update-motd.d/
chmod a+x 1-uptime
chmod a+x 2-df
chmod a+x 3-free

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment