小编Eri*_* Hu的帖子

什么会导致某个项目从我的 bash 历史记录中删除?

大约每天一次,当我在 bash 中搜索历史项目时会遇到问题。操作该项目有时会删除历史条目,有时不会。

这是发生这种情况的一个案例:

$ls foo
ls: No such file or directory

# (ctrl-r)ls foo(tab)
$ ls foo

# (ctrl-a)(ctrl-k)
$

# (ctrl-r)ls foo
# (no matches)
Run Code Online (Sandbox Code Playgroud)

对这里发生的事情的解释是什么?

bash command-history

6
推荐指数
1
解决办法
336
查看次数

标签 统计

bash ×1

command-history ×1