<?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>HeatWare.net &#187; Linux/Unix</title>
	<atom:link href="http://heatware.net/category/linux-unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://heatware.net</link>
	<description>Computer tips from A to Z: Windows, Unix, Programming, QA, and more!</description>
	<lastBuildDate>Mon, 30 Apr 2012 05:27:53 +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>Scripting the Linux &#8216;passwd&#8217; command easily without interactive prompt</title>
		<link>http://heatware.net/linux-unix/scripting-linux-passwd-command-interactive-prompt/</link>
		<comments>http://heatware.net/linux-unix/scripting-linux-passwd-command-interactive-prompt/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 05:27:53 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=919</guid>
		<description><![CDATA[If you are looking for a quick and easily solution to changing your Linux passwd from a script, you have come to the right place. As you already know, the passwd command prompts the user to enter the desired password as well as a confirmation, but I have a solution that will change the password [...]]]></description>
			<content:encoded><![CDATA[<p>If you are looking for a quick and easily solution to changing your Linux <em>passwd</em> from a script, you have come to the right place. As you already know, the <em>passwd</em> command prompts the user to enter the desired password as well as a confirmation, but I have a solution that will change the password without these prompts.</p>
<h3>Changing Linux Password In a Scriptable Way</h3>
<p><code>echo <em>&lt;Desired Password&gt;</em> | passwd --stdin root</code></p>
<p>That&#8217;s all there is to it! No fancy bash script, no need to use Expect.</p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/scripting-linux-passwd-command-interactive-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux &#8216;find&#8217; to list files less than or greater than a certain size</title>
		<link>http://heatware.net/linux-unix/find-files-less-greater-certain-size/</link>
		<comments>http://heatware.net/linux-unix/find-files-less-greater-certain-size/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 05:44:08 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=904</guid>
		<description><![CDATA[This article will go through some basic examples on how to list files above or below a certain size in Linux using the find command. There are many use cases for running queries like this, for instance finding small files on your hard drive or finding very large files. So, lets get started with some examples. Using find [...]]]></description>
			<content:encoded><![CDATA[<p>This article will go through some basic examples on how to list files <em>above</em> or <em>below</em> a certain size in Linux using the <strong>find</strong> command. There are many use cases for running queries like this, for instance finding small files on your hard drive or finding very large files. So, lets get started with some examples.</p>
<h3>Using find to show files below a certain size (1000 bytes = 1K)</h3>
<p><code>find . -type f -size -1000 -ls</code></p>
<h3>Using find to show files above a certain size (1,000,000 bytes = 1M)</h3>
<p><code>find . -type f -size +1000000 -ls</code></p>
<p>In the above commands, the <em>-ls</em> command will display the file size, date, and other attributes regarding the file. If you would like just the path and filename, then omit the -ls.</p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/find-files-less-greater-certain-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fetch error installing Java on Ubuntu 11.04. Solved!</title>
		<link>http://heatware.net/linux-unix/fetch-error-installing-java-ubuntu-11-04/</link>
		<comments>http://heatware.net/linux-unix/fetch-error-installing-java-ubuntu-11-04/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 21:48:41 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=888</guid>
		<description><![CDATA[I am running Ubuntu 11.04 and was trying to install the Java OpenJDK 6.0 (and 7.0) on my system but I received the following error: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? I tried installing several different Java packages but all of them failed with the same error. Finally, [...]]]></description>
			<content:encoded><![CDATA[<p>I am running Ubuntu 11.04 and was trying to install the Java OpenJDK 6.0 (and 7.0) on my system but I received the following error:</p>
<p><code><br />
Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?<br />
</code></p>
<p>I tried installing several different Java packages but all of them failed with the same error. Finally, I arrived at a working solution by running the following commands:</p>
<p><code><br />
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"<br />
sudo apt-get update<br />
</code></p>
<p>Now you can successfully install Java on your system!</p>
<p><code><br />
sudo apt-get install openjdk-6-jre-headless -y<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/fetch-error-installing-java-ubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install PostgreSQL 8.4 on CentOS 5.5</title>
		<link>http://heatware.net/linux-unix/how-install-postgresql-8-4-centos-5/</link>
		<comments>http://heatware.net/linux-unix/how-install-postgresql-8-4-centos-5/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 19:33:32 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Postgres]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=720</guid>
		<description><![CDATA[If you have tried installing PostgreSQL database on CentOS 5.5 using yum, you will notice that you an old, outdated version! There are several ways to get the 8.4.x version of Postgres installed on this OS, but here is the quick and easy method! Installing PostgreSQL 8.4.x on CentOS 5.5 Download the PostgreSQL 8.4 repository [...]]]></description>
			<content:encoded><![CDATA[<p>If you have tried installing PostgreSQL database on CentOS 5.5 using <em>yum</em>, you will notice that you an old, outdated version! There are several ways to get the 8.4.x version of Postgres installed on this OS, but here is the quick and easy method!</p>
<h3>Installing PostgreSQL 8.4.x on CentOS 5.5</h3>
<ul>
<li>Download the PostgreSQL 8.4 repository RPM<br />
<code>wget http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-centos-8.4-2.noarch.rpm</code></li>
<li>Add the repository<br />
<code>rpm -ivh pgdg-centos-8.4-2.noarch.rpm</code></li>
<li>Use <em>yum</em> to install PostgresSQL<br />
<code>yum install -y postgresql postgresql-server</code></li>
<li>Initialize the database<br />
<code>service postgresql initdb</code></li>
<li>Start the database<br />
<code>service postgresql restart</code></li>
<li>Automatically start database on boot<br />
<code>chkconfig postgresql on</code></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/how-install-postgresql-8-4-centos-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install Ruby 1.8.7 on CentOS 5.5 Linux</title>
		<link>http://heatware.net/linux-unix/how-to-install-ruby-1-8-7-centos-5-5/</link>
		<comments>http://heatware.net/linux-unix/how-to-install-ruby-1-8-7-centos-5-5/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 03:30:53 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Programming - Ruby/Rails]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=714</guid>
		<description><![CDATA[Have you tried doing yum install ruby in CentOS 5.5? If you have the default repositories configured, you will notice that it installs the ancient Ruby 1.8.5. Not ready to move up to Ruby 1.9, but would like to install Ruby 1.8.7 &#8211; well here is how to do it! Install Ruby 1.8.7 on CentOS [...]]]></description>
			<content:encoded><![CDATA[<p>Have you tried doing <em>yum install ruby</em> in CentOS 5.5? If you have the default repositories configured, you will notice that it installs the ancient Ruby 1.8.5. Not ready to move up to Ruby 1.9, but would like to install Ruby 1.8.7 &#8211; well here is how to do it!</p>
<h3>Install Ruby 1.8.7 on CentOS 5.5 (or other distributions)</h3>
<p><code>yum install -y gcc zlib zlib-devel<br />
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p330.tar.gz<br />
tar xvf ruby-1.8.7-p330.tar.gz<br />
cd ruby-1.8.7-p330<br />
./configure --enable-pthread<br />
make<br />
make install<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/how-to-install-ruby-1-8-7-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Linux &#8211; How to disable &#8216;Last Login&#8217; welcome message</title>
		<link>http://heatware.net/linux-unix/linux-how-to-disable-last-login-welcome-message/</link>
		<comments>http://heatware.net/linux-unix/linux-how-to-disable-last-login-welcome-message/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 03:57:14 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=710</guid>
		<description><![CDATA[When you login (via SSH or other method), to a Linux box, you will see a Welcome message that displays your Last Login time and date as well as other general information regarding the system. Here is an example: Linux sp-ubuntu 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 GNU/Linux Ubuntu 10.10 Welcome [...]]]></description>
			<content:encoded><![CDATA[<p>When you login (via SSH or other method), to a Linux box, you will see a Welcome message that displays your Last Login time and date as well as other general information regarding the system. Here is an example:</p>
<pre><code>
Linux sp-ubuntu 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 GNU/Linux
Ubuntu 10.10

Welcome to Ubuntu!
* Documentation:  https://help.ubuntu.com/

78 packages can be updated.
29 updates are security updates.

Last login: Wed Feb  9 21:51:41 2011 from sp-ubuntu
</code></pre>
<p>If you would like to disable this message when logging in, run the following command:</p>
<p><code>touch ~/.hushlogin</code></p>
<p>And now the next time you login, you will not see any welcome message! To revert this change, simply delete the .hushlogin file in your home directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/linux-how-to-disable-last-login-welcome-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux &#8211; How to find the number of files in a folder?</title>
		<link>http://heatware.net/linux-unix/how-to-find-the-number-files-in-folder/</link>
		<comments>http://heatware.net/linux-unix/how-to-find-the-number-files-in-folder/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 03:48:21 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=708</guid>
		<description><![CDATA[This seems like a pretty simple piece of information to ask for, but then why is there no intuitive way for Linux novices to accomplish this? In Windows command-line, the output of the dir command includes the number of files and the number of folders in the current directory. Well, here are some ways you [...]]]></description>
			<content:encoded><![CDATA[<p>This seems like a pretty simple piece of information to ask for, but then why is there no intuitive way for Linux novices to accomplish this? In Windows command-line, the output of the <em>dir </em>command includes the number of files and the number of folders in the current directory. Well, here are some ways you can do it in Linux&#8230;</p>
<h3>Find the number of files in the current and all sub-directories</h3>
<p><code>find . -type f | wc -l</code></p>
<h3>Find the number of files in the current directory</h3>
<p><code>find . -maxdepth 1 -type f | wc -l</code></p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/how-to-find-the-number-files-in-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Linux utility to convert PDF to Text file</title>
		<link>http://heatware.net/linux-unix/linux-utility-convert-pdf-to-text-txt-file/</link>
		<comments>http://heatware.net/linux-unix/linux-utility-convert-pdf-to-text-txt-file/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 05:38:49 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=651</guid>
		<description><![CDATA[Are you looking for a fast, easy, and free way to convert a PDF document to a plain-text .txt format? Luckily, there is a built-in program in most Linux distributions that can do this called pdftotext. To convert, simply do: pdftotext -layout filename.pdf filename.txt]]></description>
			<content:encoded><![CDATA[<p>Are you looking for a fast, easy, and free way to convert a PDF document to a plain-text .txt format? Luckily, there is a built-in program in most Linux distributions that can do this called <em>pdftotext</em>. To convert, simply do:</p>
<p><code>pdftotext -layout filename.pdf filename.txt</code></p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/linux-utility-convert-pdf-to-text-txt-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a large number of files in Linux (thousands or millions)</title>
		<link>http://heatware.net/linux-unix/create-large-many-number-files-thousands-millions/</link>
		<comments>http://heatware.net/linux-unix/create-large-many-number-files-thousands-millions/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 05:24:52 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=647</guid>
		<description><![CDATA[Do you need an ultra fast way to create a large number of files in Linux? Perhaps, you are doing some load testing for an application and you need to create 1000 or even 1,000,000 files in the matter of seconds. Well, here is how to do it! There are two parts to creating these [...]]]></description>
			<content:encoded><![CDATA[<p>Do you need an ultra fast way to create a large number of files in Linux? Perhaps, you are doing some load testing for an application and you need to create 1000 or even 1,000,000 files in the matter of seconds. Well, here is how to do it!</p>
<p>There are two parts to creating these files. First, is creating a single master file that contains the data that the thousands/millions files are based on. Second, splitting this master file into the total number of files that you require.</p>
<h3>How to create the master file</h3>
<ol>
<li>Determine the number of files and the size of each file that you require</li>
<li>Multiply the total number of files times the size (in bytes). For example: If you want to create 10000 files that are 10 bytes each, do 10000 * 10 = 1,000,000. This represents the size of the master file that is needed.</li>
<li>To create this master file, run the command:</li>
<p><code>dd if=/dev/zero of=masterfile bs=1 count=1000000</code></p>
<li>The above command will create a 1 MB file called &#8216;masterfile&#8217;. This file contains all 0&#8242;s. If you would like it to contain random binary data, use /dev/urandom</li>
</ol>
<h3>To split the master file into thousands of pieces</h3>
<ol>
<li>Now that the master file is created, you can now use this to generate the desired 10,000 files that are 10 bytes each.</li>
<li>Run the command:</li>
<p><code>split -b 10 -a 10 masterfile</code></ol>
<p>	The <em>-b</em> option specifies the size in bytes of each file. The <em>-a</em> option defines the length of the filename of the new files +1 (-a 10 means create a 11 character long filename)</p>
<p>And that&#8217;s all there is to it! If you need help with any variation to this, please post it as a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/create-large-many-number-files-thousands-millions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Linux &#8216;head&#8217; command to preview a file</title>
		<link>http://heatware.net/linux-unix/linux-head-command-preview-file/</link>
		<comments>http://heatware.net/linux-unix/linux-head-command-preview-file/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 04:07:32 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=607</guid>
		<description><![CDATA[This article will show you how to use the head command in Linux. head is used to print out the beginning of a file. For example, this is useful when you have a giant text file and you want to preview the contents without attempting to open the entire file. Here are some common examples [...]]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to use the <em>head</em> command in Linux. <em>head</em> is used to print out the beginning of a file. For example, this is useful when you have a giant text file and you want to preview the contents without attempting to open the entire file. Here are some common examples on the usage:</p>
<h3>Examples of ‘head’ command</h3>
<p>To print out the first 10 lines of a file<br />
<code>head [filename]</code></p>
<p>To print out the first 50 lines of a file<br />
<code>head -n 50 [filename]</code></p>
<p>To print out the first 25 bytes of a file<br />
<code>head -c 25 [filename]</code></p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/linux-head-command-preview-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

