Open main menu

CDOT Wiki β

Changes

OPS245 Lab 2

28 bytes removed, 12:52, 29 January 2021
m
Part 3: Using Shell Scripts for VM Backup & Management: - switching to using sudo over being root.
if [ $PWD (whoami) != "/root" ] # only runs if in root's home directory<br>then<br>&nbsp;echo "You must be located in /root" >&2<br>
&nbsp;exit 1<br>
fi
932
edits