<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Quit_Bash_Shell_without_Saving_Bash_History</id>
		<title>Quit Bash Shell without Saving Bash History - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Quit_Bash_Shell_without_Saving_Bash_History"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Quit_Bash_Shell_without_Saving_Bash_History&amp;action=history"/>
		<updated>2026-06-04T08:59:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Quit_Bash_Shell_without_Saving_Bash_History&amp;diff=560&amp;oldid=prev</id>
		<title>Brian at 14:45, 14 March 2014</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Quit_Bash_Shell_without_Saving_Bash_History&amp;diff=560&amp;oldid=prev"/>
				<updated>2014-03-14T14:45:10Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:45, 14 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; echo &amp;quot;alias nohistory='history -c &amp;amp;&amp;amp; exit'&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; echo &amp;quot;alias nohistory='history -c &amp;amp;&amp;amp; exit'&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Centos]][[Category:Bash]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key briansne_wiki-wiki_:diff:version:1.11a:oldid:113:newid:560 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Quit_Bash_Shell_without_Saving_Bash_History&amp;diff=113&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==Remove Only Current Session Bash History==  You will sometimes come across instances where you do not want to leave a bash history of your current session.    Example reason...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Quit_Bash_Shell_without_Saving_Bash_History&amp;diff=113&amp;oldid=prev"/>
				<updated>2013-10-12T07:05:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Remove Only Current Session Bash History==  You will sometimes come across instances where you do not want to leave a bash history of your current session.    Example reason...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Remove Only Current Session Bash History==&lt;br /&gt;
&lt;br /&gt;
You will sometimes come across instances where you do not want to leave a bash history of your current session.  &lt;br /&gt;
&lt;br /&gt;
Example reason, you are on a clients account and you do NOT want them to see what commands you ran on their account. &lt;br /&gt;
&lt;br /&gt;
===1) Quit Bash Shell without Saving your History: Unset HISTFILE===&lt;br /&gt;
 unset HISTFILE &amp;amp;&amp;amp; exit&lt;br /&gt;
&lt;br /&gt;
===2) Quit Bash by Killing your Current Console: Kill Console===&lt;br /&gt;
 kill -9 $$&lt;br /&gt;
&lt;br /&gt;
===3) Set your Bash Shell history to Zero(0): Set HISTSIZE 0===&lt;br /&gt;
 HISTSIZE=0 &amp;amp;&amp;amp; exit&lt;br /&gt;
&lt;br /&gt;
===4) Clear History Option: Clear History(my fav)===&lt;br /&gt;
 history -c &amp;amp;&amp;amp; exit&lt;br /&gt;
&lt;br /&gt;
===5) Delete your HISTFILE and unset HISTFILE : Quit Bash===&lt;br /&gt;
 rm -f $HISTFILE &amp;amp;&amp;amp; unset HISTFILE &amp;amp;&amp;amp; exit&lt;br /&gt;
&lt;br /&gt;
==Creat an alias to Accomplish this task==&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;alias nohistory='history -c &amp;amp;&amp;amp; exit'&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>