13,420
edits
Changes
no edit summary
<br>
#!/bin/bash # Forces script to run in the bash shell<br>
# Author: *** INSERT YOUR NAME ***<br>
# Date: *** CURRENT DATE ***<br>
# Purpose: Creates system info report<br>
#<br># USAGE: ./report.bash<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<br>
</code>
<br>