Changes

Jump to: navigation, search

OPS235 Lab 1 - CentOS7

4 bytes removed, 07:59, 25 April 2015
no edit summary
<br>
&#35;!/bin/bash # Forces script to run in the bash shell<br>
<br><br>
&#35; Author: *** INSERT YOUR NAME ***<br>
&#35; Date: *** CURRENT DATE ***<br>
&#35; Purpose: Creates system info report<br>
&#35;<br>&#35; USAGE: ./report.bash<br>
<br><br>
if [ $USER != "root" ] # only runs if logged in as root<br>
then<br>&nbsp;echo "You must be logged in as root." >&2<br>
&nbsp;exit 1<br>
fi<br>
</code>
<br>
13,420
edits

Navigation menu