Basic system information detail message after login for Centos.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
systemstats.sh

README.md

systeminfo

Basic system information detail message after login for Centos.

This bash script based on https://md3v.com/create-a-linux-server-status-motd

To install the script:

  1. Create a new text file named systemstats.sh:

nano -w /usr/local/bin/systemstats.sh

  1. Paste the systemstats.sh content to the text file.

  2. Make the script executable:

chmod +x /usr/local/bin/systemstats.sh

  1. Edit your crontab and add a schedule to run the script every 5 minutes:

nano -w /etc/crontab

At the bottom add:

#Status Script

*/5 * * * * root /usr/local/bin/systemstats.sh

  1. Manually run the script and test there are no errors:

/usr/local/bin/systemstats.sh

  1. Login to your system using SSH and confirm that the new MOTD banner is shown.