13,420
edits
Changes
no edit summary
<code style="color:#3366CC;font-family:courier;font-size:.9em;margin-left:20px;">
<br>
#!/bin/bash # Forces script to run in the bash shell<br><br><br># Author: *** INSERT YOUR NAME ***<br># Date: *** CURRENT DATE ***<br>#<br># Purpose: Creates system info report<br>#<br># USAGE: ./report.bash<br><br><br>if [ $USER != "root" ] # only runs if logged in as root<br>then<br> echo "You must be logged in as root." >&2<br> exit 1<br>
fi
</code>