【发布时间】:2020-02-22 21:00:00
【问题描述】:
我已经看到在没有将其记录在历史记录之前运行带有空格的命令(至少是命令) 但这似乎不是 PopOS 的情况
它在 Ubuntu 中有效,但在 PopOS 中无效。 有什么解决方法或其他技巧我可以尝试
$ls
$history
1 ls
2 history
$ pwd #there's a space preceding this command
$history
1 ls
2 history
3 pwd
4 history
在 Ubuntu 中有效,但在 POPOS 中无效
【问题讨论】:
-
天哪,又一个发行版可能只有个位数的用户群 :-) 无论如何,这不是一个真正的编程问题,建议你在 SuperUser 上提问。
-
来自骗子的
HISTCONTROL是忽略以空格开头的命令的正确答案。谢谢,@jww