代碼第一次默寫
#!/bin/bash test=$(env|grep?USER|cut?-f?2?-d?"=") if?[?"$test"=="root"?] ????then ????????echo?"current?user?is?root" fi
#!/bin/bash test=$(env|grep?USER|cut?-f?2?-d?"=") if?[?"$test"=="root"?] ????then ????????echo?"current?user?is?root" fi
2017-02-07
舉報
2017-02-07
判斷登錄是否root 用戶啊