查看内存槽数、那个槽位插了内存,大小是多少
dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
查看槽位上内存的速率,没插就是unknown
dmidecode|grep -A16 "Memory Device"|grep ‘Speed‘
查看系统版本命令
more /etc/redhat-release
修改网卡名称
net.ifnames=0 biosdevname=0
计划关机
shutdown -h now/0(立即关闭) shutdown -h 10 (10分钟后关机} shutdown -c (取消关机计划)
计划重启
shutdown -r now/0(立即重启) shutdown -r 10 (10分钟后重启} shutdown -c (取消重启计划)
cat -n xxx (显示文件行号)