The Computer Oracle

Accidentally sourced .bash_history

-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Bleepage Open

--

Chapters
00:00 Question
00:41 Accepted answer (Score 30)
00:59 Answer 2 (Score 15)
01:28 Thank you

--

Full question
https://superuser.com/questions/609564/a...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#bash

#avk47



ACCEPTED ANSWER

Score 30


If it's a local machine, start a new terminal and kill the shell in question.

If it's a remote machine, ssh in and kill the shell in question.




ANSWER 2

Score 15


You can hit Ctrl+Z or start a subshell using :!bash, and then kill the shell. Specific steps:

Ctrl+Z
kill -9 $$

:suspend (or acceptable abbreviations thereof) may function equivalently to Ctrl+Z.