摘要: [root@VM166136 ~]# cat copy_vmware.sh #!/bin/bash if [ $(id -u) -ne 0 ];then echo "Please use the root user to perform!!!" exit 1 fi #Modify the network card configuration and empty MAC informat... 阅读全文
posted @ 2017-01-23 16:55 hufangrui 阅读(1567) 评论(0) 推荐(0) 编辑
摘要: 1、当前session执行的命令,放置缓存中,执行exit时,把缓存信息写入~/.bash_history 2、当session直接被kill时,缓存中的历史命令不会写入~/.bash_history 3、正确清空当前用户的history的方法 阅读全文
posted @ 2017-01-23 16:33 hufangrui 阅读(39512) 评论(1) 推荐(0) 编辑