小编sys*_*m1n的帖子

历史命令如何工作?

当我在终端中键入任何命令时,它不会出现在我的~/.bash_history文件中,直到我退出会话。

此外,当我手动编辑我的~/.bash_history文件时(例如我删除了最后三个命令),当我输入history它时,它仍然显示我从~/.bash_history文件中删除的命令。只有当我退出会话并再次登录时,它们才会消失。

我的~/.bash_history文件和history命令如何同步?

command-line bash bash-history

11
推荐指数
1
解决办法
2586
查看次数

标签 统计

bash ×1

bash-history ×1

command-line ×1