du -sh * |sort -rh |head -10
hostnamectl set-hostname XXX
cat /proc/cpuinfo| grep "physical id"| sort uniq| wc -l
cat /proc/cpuinfo| grep "cpu cores"| uniq | awk '{print $4}'
cat /proc/cpuinfo| grep "processor"| wc -l
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
netstat -an |grep 端口号
netstat -apn |grep 端口号
lsof -i:端口号
ONBOOT=YES #开机自启动
BOOTPROTO=STATIC #设置静态IP
IPADDR=*.*.*.* #ip地址
NETMASK=*.*.*.* #子网掩码
GATEWAY=*.*.*.* #网关
DNS=*.*.*.* #DNS
DEVICE=eth0 #网卡名称
DEVICE=eth1
BOOTPROTO=dhcp #动态获取IP
HWADDR=00:15:17:B2:DC:B7
ONBOOT=yes
dhclient eth1
rm -rf /etc/udev/rules.d/70-persistent-net.rules