ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## **一、linux CPU大小** ```   cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id" ``` ## **二、内存大小** ``` cat /proc/meminfo |grep MemTotal ``` ## **三、硬盘大小********** ``` fdisk -l |grep Disk ``` ## **四、 ********uname -a # 查看内核/操作系统/CPU信息的linux系统信息命令** ``` uname -a ``` ## **五、cat /proc/cpuinfo # 查看CPU信息的linux系统信息命令** ``` cat /proc/cpuinfo ``` ## **六、hostname # 查看计算机名的linux系统信息命令** ``` hostname ``` ## **七、linux 的版本信息** ``` cat /proc/version ``` ## **`netstat -tunlp`**查看端口占用 **宝塔每秒执行代码** ``` #!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH step=10 for (( i = 0; i < 60; i=(i+step) )); do curl -sS --connect-timeout 10 -m 60 'https://qd.miri-coin.com/index/crontab/auto_deal' echo "----------------------------------------------------------------------------" endDate=`date +"%Y-%m-%d %H:%M:%S"` echo "★[$endDate] Successful" echo "----------------------------------------------------------------------------" sleep $step done exit 0 ``` ## 查看centos 版本 ``` cat /etc/os-release ```