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.
我设法在我的命令历史记录中获得了一个非常长的命令。有没有办法摆脱它,这样history命令就不会变得疯狂?
history
根据我看到的文档,您可以通过查看文件找出您的历史存储在哪里:
/usr/share/init/tcsh/tcsh.defaults
对于线路:
set histfile = ~/.tcsh_history # History file
然后(希望)您应该能够编辑~/.tcsh_history(或任何实际的历史文件)并删除长命令。
~/.tcsh_history
参考