如何在 TCSH Shell 中注销时清除 SHELL 历史记录?
退出 SHELL 后如何清除 TCSH 中的 SHELL 历史记录?
我尝试将 History -c 放入 .logout 但没有成功。
请指教。
谢谢。 PA
How do I clear SHELL history in TCSH upon exiting SHELL?
I tried to put history -c in .logout but it didn't work.
Please advice.
Thank you.
PA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
与其清除历史记录,不保存会是更好的选择。
您可以设置保存在
savehist
变量中的行数或将histfile
设置为/dev/null
等。Instead of clearing the history, not saving it would be a better option.
You can set the number of lines saved in the
savehist
variable or set thehistfile
to/dev/null
or something.结束会话
End the session with