<?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>Wed, 25 Jan 2012 21:48: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>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>1</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>7</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>
		<item>
		<title>How to add a Windows/Linux network printer in Ubuntu 9.10</title>
		<link>http://heatware.net/linux-unix/add-install-windows-network-printer-ubuntu-linux/</link>
		<comments>http://heatware.net/linux-unix/add-install-windows-network-printer-ubuntu-linux/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 22:32:02 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Printers]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=561</guid>
		<description><![CDATA[This article will show you how to add a network printer on a Ubuntu 9.10 system. Let’s go ahead and get started… Navigate to System –&#62; Administration –&#62; Printing Then choose Server –&#62; New –&#62; Printer from the Printer configuration window The New Printer wizard will be displayed. Here you can add either local or [...]]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to add a network printer on a Ubuntu 9.10 system. Let’s go ahead and get started…</p>
<p>Navigate to <strong>System –&gt; Administration –&gt; Printing</strong></p>
<p><a href="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_1.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="ubuntu_printer_1" src="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_1_thumb.png" border="0" alt="ubuntu_printer_1" width="429" height="322" /></a></p>
<p>Then choose <strong>Server –&gt; New –&gt; Printer</strong> from the Printer configuration window</p>
<p><a href="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_3.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="ubuntu_printer_3" src="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_3_thumb.png" border="0" alt="ubuntu_printer_3" width="354" height="215" /></a></p>
<p>The New Printer wizard will be displayed. Here you can add either local or network printers. For this tutorial, we will show you how to add a Network printer. To do this, expand the <strong>Network Printer</strong> tree item and choose <strong>Windows Printer via SAMBA. </strong></p>
<p><a href="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_4.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="ubuntu_printer_4" src="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_4_thumb.png" border="0" alt="ubuntu_printer_4" width="354" height="307" /></a></p>
<p>Click on the button labeled <strong>Browse…</strong> which will display a list of servers on your network. Find your corporate print server or Windows system that the printer is connected to. You should see one or more printers listed. Choose the printer and click <strong>OK</strong>.</p>
<p><a href="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_5.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="ubuntu_printer_5" src="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_5_thumb.png" border="0" alt="ubuntu_printer_5" width="354" height="233" /></a></p>
<p>You will now need to select the manufacturer of the printer so that the appropriate driver can be installed. Make your selection and click on the button labeled <strong>Forward.</strong></p>
<p><a href="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_6.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="ubuntu_printer_6" src="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_6_thumb.png" border="0" alt="ubuntu_printer_6" width="354" height="307" /></a></p>
<p>Once you have chosen the printer manufacturer, you must select the model number. Make your selection and then click <strong>Forward</strong>. Note: If you do not see your model listed, please visit the printer manufacturer’s website to download the appropriate driver.</p>
<p><a href="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_7.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="ubuntu_printer_7" src="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_7_thumb.png" border="0" alt="ubuntu_printer_7" width="354" height="307" /></a></p>
<p>We’re almost done! Now you can specify the printer name and description so you can easily identify it in the future. Click <strong>Apply</strong> after doing so.</p>
<p><a href="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_8.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="ubuntu_printer_8" src="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_8_thumb.png" border="0" alt="ubuntu_printer_8" width="354" height="307" /></a></p>
<p>Finally, you will be greeted with a prompt to print a test page. It is a good idea to do this, so click <strong>Yes</strong>.</p>
<p><a href="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_9.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="ubuntu_printer_9" src="http://heatware.net/wp-content/uploads/2009/11/ubuntu_printer_9_thumb.png" border="0" alt="ubuntu_printer_9" width="244" height="117" /></a></p>
<p>And there you have it. That is how you add a network printer to your Ubuntu 9.10 system!</p>
<div class="wlWriterHeaderFooter" style="text-align:right; margin:0px; padding:4px 0px 4px 0px;"><a href="http://digg.com/submit?url=http%3a%2f%2fheatware.net%2f%3fp%3d561&amp;title=How+to+add+a+network+printer+in+Ubuntu+9.10"><img style="border: 0" title="Digg This" src="http://digg.com/img/badges/100x20-digg-button.png" border="0" alt="Digg This" width="100" height="20" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/add-install-windows-network-printer-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Linux: How to Kill all instances of a script/program by using a string search</title>
		<link>http://heatware.net/linux-unix/linux-how-to-kill-all-instances-of-a-scriptprogram-by-using-a-string-search/</link>
		<comments>http://heatware.net/linux-unix/linux-how-to-kill-all-instances-of-a-scriptprogram-by-using-a-string-search/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 18:49:58 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=492</guid>
		<description><![CDATA[This article will show you how to kill (or end) multiple processes or instances of a running script with a single command. If you are like me, you have run into this situation many many times. You run the ps command to list all the currently running processes and you see that there are multiple [...]]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to kill (or end) multiple processes or instances of a running script with a single command.</p>
<p>If you are like me, you have run into this situation many many times. You run the <em>ps</em> command to list all the currently running processes and you see that there are multiple instances running of a certain program. You want to end all these instances but do not want to run the <em>kill</em> command for each one of those specifying the <em>pid</em> manually.<em> </em>Killing all instances of this program is very simple and I’ll show you how to do it using a 1 line command!</p>
<h3>How to Kill multiple instances of a process</h3>
<ol>
<li>Log into the shell of your Linux/Unix box </li>
<li>If you do not know the name of the script you will like to kill, run: <code>ps -ef</code> This will show you a list of all the currently running processes. In the right-most column, you will find the path and filename of the script you want to end. </li>
<li>To kill all instances of this script, run the command: <code>ps -ef | grep <em>[search string]</em> | awk '{print $2}' | xargs kill -9</code> Be sure you substitute <em>[search string]</em> to your own value. </li>
<li>Now run <em>ps –ef</em> again and all running instances of that script will be gone! </li>
</ol>
<h3>&#160;</h3>
<h3>Alternative Method</h3>
<p>If your Linux distribution has <em>pkill</em> installed, simply run the command:</p>
<p> <code>pkill -9 -f <em>[search string]</em></code>
<div class="wlWriterHeaderFooter" style="text-align:right; margin:0px; padding:4px 0px 4px 0px;"><a href="http://digg.com/submit?url=http%3a%2f%2fheatware.net%2flinux-unix%2flinux-how-to-kill-all-instances-of-a-scriptprogram-by-using-a-string-search%2f&amp;title=Linux%3a+How+to+Kill+all+instances+of+a+script%2fprogram+by+using+a+string+search"><img src="http://digg.com/img/badges/100x20-digg-button.png" width="100" height="20" alt="Digg This" title="Digg This" border="0" style="border: 0" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/linux-how-to-kill-all-instances-of-a-scriptprogram-by-using-a-string-search/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

