what are the substitutes 4 whoami cmd in #linux #bash 1) cat /proc/$$/status | grep -i uid (second number is euid) 2) echo $EUID 3) echo $USER 4) id 5) ([[ -r /root ]] && echo "root") || echo "not root" (check read access to home dir of a user, in this case root)
Last updated 3 years ago