小编nik*_*k.1的帖子

什么可能导致我的 bash 历史记录被意外清除?

今天我注意到我的 bash 历史记录被完全清除了。我既没有执行history -c也没有删除.bash_history文件。除了删除.bash_history文件和history -c,如何清除 bash 历史记录?

bash command-history

18
推荐指数
1
解决办法
5136
查看次数

“谁”打印重复的用户名

这是结果who -uH

NAME     LINE         TIME             IDLE          PID COMMENT
me    :0           2013-08-29 01:29   ?          1686 (:0)
me    pts/0        2013-08-29 01:42  old         2905 (:0)
me    pts/1        2013-08-29 01:45  old         2905 (:0)
me    pts/2        2013-08-29 01:52  old         2905 (:0)
me    pts/3        2013-08-29 02:26  old         2905 (:0)
me    pts/4        2013-08-30 18:37 00:07        2905 (:0)
me    pts/5        2013-08-29 10:34  old         2905 (:0)
me    pts/6        2013-08-29 11:05  old         2905 (:0)
me    pts/7        2013-08-29 13:34  old         2905 (:0)
me    pts/8        2013-08-30 15:56 02:45        2905 (:0) …
Run Code Online (Sandbox Code Playgroud)

users

4
推荐指数
1
解决办法
322
查看次数

标签 统计

bash ×1

command-history ×1

users ×1