系統巡檢

#!/bin/bash ** 系統信息 ** getsys(){ #系統類型 os_type=uname #系統版本 os_ver=cat /etc/redhat-release #系統內核 os_ker=uname -a|awk '{print $3}' #當前時間 os_time=date +%F_%T #運行時間 os_run_time=uptime |awk '{print $3,$4}'
相關文章
相關標籤/搜索