<?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>EZ Linux Admin &#187; Linux Commands</title>
	<atom:link href="http://www.ezlinuxadmin.com/category/linux-commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ezlinuxadmin.com</link>
	<description>Making Linux Easier</description>
	<lastBuildDate>Tue, 29 Jun 2010 19:37:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clear bash history through ssh command line</title>
		<link>http://www.ezlinuxadmin.com/2010/05/clear-bash-history-through-ssh-command-line/</link>
		<comments>http://www.ezlinuxadmin.com/2010/05/clear-bash-history-through-ssh-command-line/#comments</comments>
		<pubDate>Sun, 30 May 2010 20:01:12 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Clear]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[ssh command line]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=477</guid>
		<description><![CDATA[history -c
]]></description>
			<content:encoded><![CDATA[<blockquote><p>history -c</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/05/clear-bash-history-through-ssh-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Path to date</title>
		<link>http://www.ezlinuxadmin.com/2010/05/path-to-date/</link>
		<comments>http://www.ezlinuxadmin.com/2010/05/path-to-date/#comments</comments>
		<pubDate>Tue, 25 May 2010 03:22:09 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Operating Systems]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[path to date]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=474</guid>
		<description><![CDATA[The server path to date can very for different servers, you will need to run this command to find it:
which date
For most servers it is:
/bin/date
This is the same for perl and php
]]></description>
			<content:encoded><![CDATA[<p>The server path to date can very for different servers, you will need to run this command to find it:</p>
<blockquote><p>which date</p></blockquote>
<p>For most servers it is:</p>
<blockquote><p>/bin/date</p></blockquote>
<p>This is the same for perl and php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/05/path-to-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>setroubleshoot bug</title>
		<link>http://www.ezlinuxadmin.com/2010/05/setroubleshoot/</link>
		<comments>http://www.ezlinuxadmin.com/2010/05/setroubleshoot/#comments</comments>
		<pubDate>Mon, 24 May 2010 06:20:07 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[/usr/bin/python]]></category>
		<category><![CDATA[setroubleshoot]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=472</guid>
		<description><![CDATA[There is a bug with the new option in Centos 5 called setroubleshoot.
The bug spins the program over and over causing high memory and sometimes CPU use. Unfortunately there is no permanent fix yet, but if you see something like this high in your daily process log:
/usr/bin/python -E /usr/sbin/setroubleshootd
To fix for now you simply have [...]]]></description>
			<content:encoded><![CDATA[<p>There is a bug with the new option in Centos 5 called setroubleshoot.</p>
<p>The bug spins the program over and over causing high memory and sometimes CPU use. Unfortunately there is no permanent fix yet, but if you see something like this high in your daily process log:</p>
<blockquote><p>/usr/bin/python -E /usr/sbin/setroubleshootd</p></blockquote>
<p>To fix for now you simply have to restart the process:</p>
<blockquote><p>/etc/init.d/setroubleshoot restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/05/setroubleshoot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When asking about a networking issue, get these details from the server</title>
		<link>http://www.ezlinuxadmin.com/2010/04/asking-networking-issue-server/</link>
		<comments>http://www.ezlinuxadmin.com/2010/04/asking-networking-issue-server/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 20:14:04 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[networking issue]]></category>
		<category><![CDATA[nic]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=460</guid>
		<description><![CDATA[Kernal version
uname -a 
Nic / Lan driver version
dmesg &#124; grep r8169
Internet controller
lspci -nn &#124; grep Ethernet
Details on etho nic card
sudo ethtool eth0
Module size
lsmod &#124; grep r8169
Module versions
cat /proc/modules &#124; grep r8169
Don&#8217;t worry all these commands are safe and just for reporting.



]]></description>
			<content:encoded><![CDATA[<p>Kernal version</p>
<blockquote><p><span><span style="font-family: Courier New;">uname -a </span></span></p></blockquote>
<p>Nic / Lan driver version</p>
<blockquote><p><span><span style="font-family: Courier New;">dmesg | grep r8169</span></span></p></blockquote>
<p>Internet controller</p>
<blockquote><p><span><span style="font-family: Courier New;">lspci -nn | grep Ethernet</span></span></p></blockquote>
<p>Details on etho nic card</p>
<blockquote><p><span><span style="font-family: Courier New;">sudo ethtool eth0</span></span></p></blockquote>
<p>Module size</p>
<blockquote><p><span><span style="font-family: Courier New;">lsmod | grep r8169</span></span></p></blockquote>
<p>Module versions</p>
<blockquote><p><span><span style="font-family: Courier New;">cat /proc/modules | grep r8169</span></span></p></blockquote>
<p><span><span style="font-family: Courier New;"><strong>Don&#8217;t worry all these commands are safe and just for reporting.</strong><br />
</span></span></p>
<p><span><span style="font-family: Courier New;"><br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/04/asking-networking-issue-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to do a search and replace over multiple files</title>
		<link>http://www.ezlinuxadmin.com/2010/03/how-to-do-a-search-and-replace-over-multiple-files/</link>
		<comments>http://www.ezlinuxadmin.com/2010/03/how-to-do-a-search-and-replace-over-multiple-files/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 03:51:46 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[search and replace]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=439</guid>
		<description><![CDATA[You could also use find and sed, but I find that this little line of perl works nicely.
perl -pi -w -e &#8217;s/search/replace/g;&#8217; *.php
-e means execute the following line of code.
-i means edit in-place
-w write warnings
-p loop
Example I had the following style sheet in a section:
&#60;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;../includes/style.css&#8221;&#62;
and I wanted the following instead:
&#60;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>You could also use find and sed, but I find that this little line of perl works nicely.<br />
perl -pi -w -e &#8217;s/search/replace/g;&#8217; *.php</p>
<p>-e means execute the following line of code.<br />
-i means edit in-place<br />
-w write warnings<br />
-p loop</p>
<p>Example I had the following style sheet in a section:<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;../includes/style.css&#8221;&gt;</p>
<p>and I wanted the following instead:<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;admin.css&#8221;&gt;</p>
<p>As each expression is a regular expression you&#8217;ve got to escape the special characters such as forward slash and .<br />
\.\.\/includes\/style\.css</p>
<p>So the final line of code ends up as<br />
perl -pi -w -e &#8217;s/\.\.\/includes\/style\.css/admin\.css/g;&#8217; *.php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/03/how-to-do-a-search-and-replace-over-multiple-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting a md5sum error when tranferring a cpanel account?</title>
		<link>http://www.ezlinuxadmin.com/2010/03/getting-a-md5sum-error-when-tranferring-a-cpanel-account/</link>
		<comments>http://www.ezlinuxadmin.com/2010/03/getting-a-md5sum-error-when-tranferring-a-cpanel-account/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 12:19:41 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[Cpanel transfer error]]></category>
		<category><![CDATA[md5sum error]]></category>
		<category><![CDATA[upgrade perl]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=434</guid>
		<description><![CDATA[This usually means you need to upgrade Perl on the server. Here is a example of a md5sum error.
The remote server didn&#8217;t report a correct md5sum of the archive. Please ensure you selected the correct type of remote server.
To fix upgrade Perl as shown here:
http://www.ezlinuxadmin.com/2009/08/upgrading-perl-on-cpanel/
]]></description>
			<content:encoded><![CDATA[<p>This usually means you need to upgrade Perl on the server. Here is a example of a md5sum error.</p>
<blockquote><p>The remote server didn&#8217;t report a correct md5sum of the archive. Please ensure you selected the correct type of remote server.</p></blockquote>
<p>To fix upgrade Perl as shown here:</p>
<p><a href="http://www.ezlinuxadmin.com/2009/08/upgrading-perl-on-cpanel/">http://www.ezlinuxadmin.com/2009/08/upgrading-perl-on-cpanel/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/03/getting-a-md5sum-error-when-tranferring-a-cpanel-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My new favorite rsync command</title>
		<link>http://www.ezlinuxadmin.com/2010/03/my-new-favorite-rsync-command/</link>
		<comments>http://www.ezlinuxadmin.com/2010/03/my-new-favorite-rsync-command/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 12:04:33 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[rsync code]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=432</guid>
		<description><![CDATA[rsync -vae ssh 12.123.123.123:/home/dwhsbackup/daily/username/ /backup/cpbackup/daily2/username/ –bwlimit=10000 &#8211;exclude-from &#8216;/root/exclude.txt&#8217;
]]></description>
			<content:encoded><![CDATA[<blockquote><p>rsync -vae ssh 12.123.123.123:/home/dwhsbackup/daily/username/ /backup/cpbackup/daily2/username/ –bwlimit=10000 &#8211;exclude-from &#8216;/root/exclude.txt&#8217;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/03/my-new-favorite-rsync-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calm down rsync if it overloads your IO memory or CPU</title>
		<link>http://www.ezlinuxadmin.com/2010/03/rsync-overloads-io-memory-cpu/</link>
		<comments>http://www.ezlinuxadmin.com/2010/03/rsync-overloads-io-memory-cpu/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 11:57:14 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[limit io]]></category>
		<category><![CDATA[limit rsync]]></category>
		<category><![CDATA[rsync io]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=430</guid>
		<description><![CDATA[The trick is to limit I/O bandwidth for rsync.
The &#8211;bwlimit option limit I/O bandwidth. You need to set bandwidth using KBytes per second. For example, limit I/O bandwidth to 10000KB/s (9.7MB/s), enter:
rsync &#8211;delete &#8211;numeric-ids &#8211;relative &#8211;delete-excluded &#8211;bwlimit=10000 /path/to/source /path/to/dest/?
10 megs a second is plenty of speed and will keep the server running smoothly when your [...]]]></description>
			<content:encoded><![CDATA[<p>The trick is to limit I/O bandwidth for rsync.</p>
<p>The &#8211;bwlimit option limit I/O bandwidth. You need to set bandwidth using KBytes per second. For example, limit I/O bandwidth to 10000KB/s (9.7MB/s), enter:</p>
<blockquote><p>rsync &#8211;delete &#8211;numeric-ids &#8211;relative &#8211;delete-excluded &#8211;bwlimit=10000 /path/to/source /path/to/dest/?</p></blockquote>
<p>10 megs a second is plenty of speed and will keep the server running smoothly when your grabbing allot of files off of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/03/rsync-overloads-io-memory-cpu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsync running slow?</title>
		<link>http://www.ezlinuxadmin.com/2010/03/rcync-running-slow/</link>
		<comments>http://www.ezlinuxadmin.com/2010/03/rcync-running-slow/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 05:31:19 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[reboot nic]]></category>
		<category><![CDATA[rsync slow]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=427</guid>
		<description><![CDATA[Today I was transferring files through rsync it was taking forever, my guess was the new server or old server was out of memory so I killed some procs and even rebooting the server but still it was crawling. So I thought I would think out of the box and after a couple trial and [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was transferring files through rsync it was taking forever, my guess was the new server or old server was out of memory so I killed some procs and even rebooting the server but still it was crawling. So I thought I would think out of the box and after a couple trial and errors I tried a nic reboot and wow it was super fast from there.</p>
<blockquote><p>/etc/init.d/network restart</p></blockquote>
<p>I&#8217;m still not sure how the nic got blogged up but this worked like charm.</p>
<p>Keep in mind this is a temp fix, what you need to do is both your nic card going by adding another IP via cpanel and via the setup tool access from the root of the server. Try to separate the IP traffic that best that you can between both nic cards on the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/03/rcync-running-slow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free /usr partition space by a symlink to domlogs</title>
		<link>http://www.ezlinuxadmin.com/2010/02/free-usr-partition-space-symlink-domlogs/</link>
		<comments>http://www.ezlinuxadmin.com/2010/02/free-usr-partition-space-symlink-domlogs/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 00:04:15 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[domlog]]></category>
		<category><![CDATA[free /usr space]]></category>
		<category><![CDATA[symlink]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=422</guid>
		<description><![CDATA[First move the domlogs folder to the backup partition:
mv /usr/local/apache/domlogs /backup
Then create a symbolic link to it:
ln -s /backup/domlogs /usr/local/apache/domlogs
]]></description>
			<content:encoded><![CDATA[<p>First move the domlogs folder to the backup partition:</p>
<blockquote><p>mv /usr/local/apache/domlogs /backup</p></blockquote>
<p>Then create a symbolic link to it:</p>
<blockquote><p>ln -s /backup/domlogs /usr/local/apache/domlogs</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2010/02/free-usr-partition-space-symlink-domlogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
