<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>logout &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="http://lifelinux.com/tag/logout/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Mon, 22 Aug 2011 05:56:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Clear Shell History On Centos / RedHat</title>
		<link>http://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/</link>
					<comments>http://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Mon, 22 Aug 2011 05:50:26 +0000</pubDate>
				<category><![CDATA[Bash Shell]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[~/.bash_history]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[command history]]></category>
		<category><![CDATA[export LESSHISTFILE="-"]]></category>
		<category><![CDATA[history -c]]></category>
		<category><![CDATA[history command]]></category>
		<category><![CDATA[history type]]></category>
		<category><![CDATA[logout]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unset HISTFILE]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=945</guid>

					<description><![CDATA[<p>To clear shell history, type the following command: $ history -c Or remove .bash_history file $ rm -rf ~/.bash_history Turn off shell history To turn off shell history for all users, type the following command as root # echo "unset HISTFILE" >> /etc/profile To turn off shell history for a specific user, type the following [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/">How To Clear Shell History On Centos / RedHat</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>To clear shell history, type the following command:</p>
<pre>
$ history -c
</pre>
<p>Or remove .bash_history file</p>
<pre>
$ rm -rf ~/.bash_history
</pre>
<p><span id="more-945"></span></p>
<h2>Turn off shell history</h2>
<p>To turn off shell history for all users, type the following command as root</p>
<pre>
# echo "unset HISTFILE" >> /etc/profile
</pre>
<p>To turn off shell history for a specific user, type the following command</p>
<pre>
$ echo "unset HISTFILE" >> /home/USER/.bash_profile
</pre>
<h2>Display shell history</h2>
<p>To display shell history, type the following command</p>
<pre>
$ history | more
</pre>
<p>Sample outputs</p>
<pre>
74  exit
75  cd /etc/samba/
76  ll
77  vi smb.conf
78  exit
79  cd /home/site.com/scripts/
80  dir
81  cd cassandra/
82  dir
83  cd conf/
84  duir
...
</pre>
<g:plusone href="http://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/">How To Clear Shell History On Centos / RedHat</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
