572
edits
Changes
→INVESTIGATION 3: Using Shell Scripting to Generate System Information Reports
#<br># USAGE: ./myreport.bash<br>
<br>
if [ $USER =`whoami` != "root" ] # if logged in as root<br>
then<br> echo "You shouldn't be logged in as root." >&2<br>
exit 1<br>