QuestionQ88Verified/Understanding PasswordsCopy linkReport a problemAsk AstroTutorSave questionWhich of these commands immediately terminates a UNIX shell session without saving its history?Aunset HISTFILEBrm HISTFILECkill -9 $$Drm $HOME/.bash_historyShow AnswerAnswerExplanationkill -9 $$ sends the uncatchable SIGKILL signal to the current shell process ($$), so the process terminates immediately and cannot perform its normal exit processing. Bash normally saves enabled command history when it exits; normal history persistence is therefore bypassed by this forced termination.Learn moreBash History Facilities — GNU Bash Reference ManualShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion