摘要:
建议参考IBM官方文档https://www.ibm.com/developerworks/cn/linux/l-cn-tip-vim/ 重新输入以前输入过的某条命令Ctrl + r 全局替换格式:":%s/要替换字符/替换为新字符/g":%s/old/new/g 指定行替换 格式: ":起始行,终 阅读全文
摘要:
问题原因,在环境变量里没有包含文件夹 / sbin , 该文件夹下存有 ifconfig, 可以在终端下 cat /etc/profile, 可以发现没有关于 / sbin 的环境变量解决方法:vi /etc/profile在文件末尾追加下面2行配置文件:PATH=$PATH:/sbin expor 阅读全文