Two simple shell scripts to determine whether the current user is root

From , 3 Years ago, written in PowerShell, viewed 219 times.
URL https://pastebin.vip/view/e143c01e
  1.  
  2. if [ `whoami` = "root" ];then  
  3.     echo "root用户!"  
  4. else  
  5.     echo "非root用户!"  
  6. fi  
  7.  
  8.  

Reply to "Two simple shell scripts to determine whether the current user is root"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website