巡檢腳本 全面

#!/bin/bash # 設置檢測環境變量。 source /etc/profile export LC_ALL=C TMP_FILE=/tmp/check_tmp_file CHECK_ID=$(id|sed -e 's/(.*$//' -e 's/^uid=//') if [ $CHECK_ID -ne 0 ] then echo -e "\t你不是root用戶!!" exit 0
相關文章
相關標籤/搜索