我知道有一个名为的文件.bash_profile,它在您打开终端时执行代码(bashscript)。
.bash_profile
还有另一个文件被调用.bash_logout,当您退出终端时执行代码。
.bash_logout
当终端被杀死时我将如何执行一些脚本?
(.bash_logout当终端被杀死时不要覆盖这个)。
bash shell terminal sh kill-process
bash ×1
kill-process ×1
sh ×1
shell ×1
terminal ×1