如果我运行history,我可以看到我最近执行的命令。
history
但如果我这样做tail -f $HISTFILE或tail -f ~/.bash_history,它们不会被列出。
tail -f $HISTFILE
tail -f ~/.bash_history
文件是否被锁定,是否有临时位置或类似的位置?
bash command-history
bash ×1
command-history ×1