1. 首页
  2. 数据库
  3. 其它
  4. shell脚本:查看系统基础信息

shell脚本:查看系统基础信息

上传者: 2021-01-16 11:11:35上传 PDF文件 36.76KB 热度 20次
#!/bin/bash #日期:2020-2-19 #描述:系统基础信息 mkdir /var/log/everyone &>/dev/null system_status=/var/log/everyone/today.txt date=`date +%Y-%m-%d %H:%M:%S` user=`who -H` hostname=`hostname` ip=`ifconfig | awk 'NR==2 {print $2}'` system=`cat /etc/redhat-release` cpu=`lscpu` memory=`free -h` disk=`df -h`
下载地址
用户评论