nick34992
2/19/2017 - 4:28 PM

Bash: UID, if, -ne, then

Bash: UID, if, -ne, then

#!/bin/bash

if [ $UID -ne 0 ]; then
echo "not UID 0"
else
echo "UID 0"
fi