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