determining whether the root user shell46

$ UID -ne 0: represents the UID is not equal to 0, UID system variables, root user's UID is 0, UID is not 0 indicates not root

-ne: no equal

exit: exit the whole program

Equal sign may be an equal sign (=), or may be two equal sign (==)

USER system variable that represents the current user's name

Guess you like

Origin www.cnblogs.com/jingzaixin/p/12457243.html