<?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>Kwatog &#38; Co &#187; Linux</title>
	<atom:link href="http://kwatog.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://kwatog.com</link>
	<description>tech notes and general nonsense</description>
	<lastBuildDate>Fri, 04 May 2012 07:34:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Suppress Error Message of cp (copy)</title>
		<link>http://kwatog.com/blog/suppress-error-message-of-cp-copy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=suppress-error-message-of-cp-copy</link>
		<comments>http://kwatog.com/blog/suppress-error-message-of-cp-copy/#comments</comments>
		<pubDate>Fri, 04 May 2012 07:34:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[cp]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[suppress message]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=762</guid>
		<description><![CDATA[There are times when you don&#8217;t need to know if the command you fired threw an error or not. That&#8217;s exactly what I needed in one of the systems I maintain. The copy command should not throw an error if there&#8217;s no file to copy. So instead of writing a number of lines for validations,&#8230;]]></description>
			<content:encoded><![CDATA[<p>There are times when you don&#8217;t need to know if the command you fired threw an error or not. That&#8217;s exactly what I needed in one of the systems I maintain. The copy command should not throw an error if there&#8217;s no file to copy. So instead of writing a number of lines for validations, I just throw the message to /dev/null. Here&#8217;s the code :</p>
<p><code>cp /path/to/file.txt /newpath/ 2> /dev/null</code></p>
<p>Source : existing codes <img src='http://kwatog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/suppress-error-message-of-cp-copy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursive setacl command on Linux/Unix</title>
		<link>http://kwatog.com/blog/recursive-setacl-command-on-linuxunix/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=recursive-setacl-command-on-linuxunix</link>
		<comments>http://kwatog.com/blog/recursive-setacl-command-on-linuxunix/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 09:45:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[recursive]]></category>
		<category><![CDATA[setacl]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=591</guid>
		<description><![CDATA[Setting access control list(acl) recursively is not as straigthforward in HP/UX. I believe the same is true for other Unix flavors. In case you are wondering how, the command is shown below. find /any/path -exec setacl -m user:USERID:rwx {} ';' What it does is it finds all the files and directories inside the /any/path, recursively.&#8230;]]></description>
			<content:encoded><![CDATA[<p>Setting <strong>access control list(acl) </strong>recursively is not as straigthforward in HP/UX. I believe the same is true for other Unix flavors. In case you are wondering how, the command is shown below.<br />
<span id="more-591"></span><br />
<code><br />
find /any/path -exec setacl -m user:USERID:rwx {} ';'<br />
</code></p>
<p>What it does is it finds all the files and directories inside the /any/path, recursively. And then on each of the files/directories, it executes the the setacl command. </p>
<p>For some linux flavors, this is done simpler as below.<br />
<code><br />
setacl -Rm user:USERID:rwx<br />
</code></p>
<p>Here&#8217;s how to install setacl/setfacl &#8211;><a href="http://kwatog.com/blog/how-to-install-setacl-in-linux/">Install setacl</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/recursive-setacl-command-on-linuxunix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Ownership of File/Folder (chown)</title>
		<link>http://kwatog.com/blog/linux/change-ownership-of-filefolder-chown/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=change-ownership-of-filefolder-chown</link>
		<comments>http://kwatog.com/blog/linux/change-ownership-of-filefolder-chown/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 17:25:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[change ownership]]></category>
		<category><![CDATA[chown]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=115</guid>
		<description><![CDATA[chown kwatog /usr/kwatog]]></description>
			<content:encoded><![CDATA[<p><code>chown kwatog /usr/kwatog</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/linux/change-ownership-of-filefolder-chown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Search and Replace in File</title>
		<link>http://kwatog.com/blog/linux/linux-search-and-replace-in-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux-search-and-replace-in-file</link>
		<comments>http://kwatog.com/blog/linux/linux-search-and-replace-in-file/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 05:16:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=85</guid>
		<description><![CDATA[Here&#8217;s the syntax sed 's/SEARCH_TEXT/REPLACE_TEXT/g' FILENAME > OUTFILE SEARCH_TEXT is the text to search in filename REPLACE TEXT is the string to be put in place of SEARCH_TEXT FILENAME is the file to be searched OUTFILE is the file where the output Sample sed 's/ORDER/VANTIVE_ORDER/g' kwatogtest.sql > kwatogsed.log I keep on forgetting that syntax although&#8230;]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the syntax</p>
<p><code><br />
sed 's/SEARCH_TEXT/REPLACE_TEXT/g' FILENAME > OUTFILE</code><br />
SEARCH_TEXT is the text to search in filename<br />
REPLACE TEXT is the string to be put in place of SEARCH_TEXT<br />
FILENAME is the file to be searched<br />
OUTFILE is the file where the output</p>
<p>Sample<br />
<code><br />
sed 's/ORDER/VANTIVE_ORDER/g' kwatogtest.sql > kwatogsed.log<br />
</code></p>
<p>I keep on forgetting that syntax although it&#8217;s so simple. There might other ways of doing it but as of now, it&#8217;s the only way I know. :p</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/linux/linux-search-and-replace-in-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

