CentOS清除用户登录记录和命令历史方法
分类:CentOS教程 阅读:75569 次
导入空历史记录 [root@localhost root]#vi /root/history//新建记录文件 [root@localhost root]#history -c//清除记录 [root@localhost root]#history -r /root/history.txt//导入记录 [root@localhost root]#history//查询导入结果
example [root@localhost root]#vi /root/history [root@localhost root]#history -c [root@localhost root]#history -r /root/history.txt [root@localhost root]#history [root@localhost root]#echo > /var/log/wtmp [root@localhost root]#last [root@localhost root]#echo > /var/log/btmp [root@localhost root]#lastb [root@localhost root]#history -c [root@localhost root]#echo > ./.bash_history [root@localhost root]#history
example [root@localhost root]#vi /root/history [root@localhost root]#history -c [root@localhost root]#history -r /root/history.txt [root@localhost root]#history [root@localhost root]#echo > /var/log/wtmp [root@localhost root]#last [root@localhost root]#echo > /var/log/btmp [root@localhost root]#lastb [root@localhost root]#history -c [root@localhost root]#echo > ./.bash_history [root@localhost root]#history
热门推荐
- CentOS命令学习之scp复制
- CentOS7 - systemd服务
- Centos7 修改运行级别
- CentOS7设置DNS服务器
- CentOS下ethtool 命令详解
- CentOS查看 占用 内存 最多的 进程
- Linux下源码包制作成RPM包
- centos网卡eth1更改为eth0方法
- Centos防火墙初始化设置方法
- Linux下列出所有安装了的软件包
- Linux下软件包类故障排错方案
- Linux之系统故障分析与排查方案
- CentOS中把内存挂载到目录下
- CentOS服务器内存监控与调优
- centos禁止root用户ssh远程登录
- centos6.5 关闭NetworkManager服务
- CentOS7下将网卡名称eno16777736改为eth0
- CentOS7对Apache+PHP 负载能力ab测试
- centos开启root权限telnet
- 设置CentOS服务的开机启动顺序