<?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>Racker Hacker &#187; bash</title>
	<atom:link href="http://rackerhacker.com/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:07:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Limiting which commands are kept in the bash history file</title>
		<link>http://rackerhacker.com/2008/01/29/limiting-which-commands-are-kept-in-the-bash-history-file/</link>
		<comments>http://rackerhacker.com/2008/01/29/limiting-which-commands-are-kept-in-the-bash-history-file/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 18:33:55 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2008/01/29/limiting-which-commands-are-kept-in-the-bash-history-file/</guid>
		<description><![CDATA[By setting a certain bash environment variable, you can limit which commands are kept in the .bash_history file. The following options can be passed to the HISTCONTROL environmental variable: ignorespace - omits commands beginning with a space ignoredups - omits commands that match the previously run command ignoreboth - combines ignorespace and ignoredups erasedups - [...]<p><a href="http://rackerhacker.com/2008/01/29/limiting-which-commands-are-kept-in-the-bash-history-file/">Limiting which commands are kept in the bash history file</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>By setting a certain bash environment variable, you can limit which commands are kept in the .bash_history file.  The following options can be passed to the HISTCONTROL environmental variable:</p>
<p><strong>ignorespace</strong> - omits commands beginning with a space<br />
<strong>ignoredups</strong> - omits commands that match the previously run command<br />
<strong>ignoreboth</strong> - combines <strong>ignorespace</strong> and <strong>ignoredups</strong><br />
<strong>erasedups</strong> - removes previous lines that match the line that was just run</p>
<p>To set it, simply run the following from the command line, or add it to the .bashrc or a single user's .bash_profile:</p>
<p><code>export HISTCONTROL=ignorespace</code></p>
<p>If no value is set, then all commands will be saved regardless of their content.</p>
<p><a href="http://rackerhacker.com/2008/01/29/limiting-which-commands-are-kept-in-the-bash-history-file/">Limiting which commands are kept in the bash history file</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/01/29/limiting-which-commands-are-kept-in-the-bash-history-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

