Open main menu

CDOT Wiki β

Changes

OPS245 Lab 1

3 bytes added, 14:13, 14 January 2021
INVESTIGATION 3: Using Shell Scripting to Generate System Information Reports
&#35;<br>&#35; USAGE: ./myreport.bash<br>
<br>
if [ $USER =`whoami` != "root" ] # if logged in as root<br>
then<br>&nbsp;echo "You shouldn't be logged in as root." >&2<br>
&nbsp;exit 1<br>
572
edits