Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
退出 SHELL 后如何清除 TCSH 中的 SHELL 历史记录?
我试图将 history -c 放入 .logout 但它没有用。
请指教。
谢谢你。功放
与其清除历史记录,不如不保存它是一个更好的选择。
您可以设置保存在savehist变量中的行数或设置histfile为/dev/null或其他内容。
savehist
histfile
/dev/null
结束会话
kill -9 $$