kk Blog —— 通用基础


date [-d @int|str] [+%s|"+%F %T"]
netstat -ltunp
sar -n DEV 1

CentOS救援模式--rescue模式

https://www.cnblogs.com/chenglee/p/10383885.html

用途:系统无法进入,如grub损坏或某个配置文件改错

进入系统安装盘界面,先选Troubleshooting,再选Rescue installed system

进入后等待最终进入提示模式,输入 1 或 3 回车

然后输入chroot /mnt/sysimage 切换到原linux系统,切换后前缀会变为bash ,然后就可以修改root密码或配置文件了