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
参照