<?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>Alexey Bokov's weblog &#187; grep</title>
	<atom:link href="http://bokov.net/weblog/tag/grep/feed/" rel="self" type="application/rss+xml" />
	<link>http://bokov.net/weblog</link>
	<description>Anything that interests me</description>
	<lastBuildDate>Fri, 11 Nov 2011 12:32:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Ubuntu usefull tips</title>
		<link>http://bokov.net/weblog/administration/add-user-to-ubuntu/</link>
		<comments>http://bokov.net/weblog/administration/add-user-to-ubuntu/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:03:38 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[stuff]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=328</guid>
		<description><![CDATA[Ubuntu doesn&#8217;t asking for login after boot up ( may happen after unexpected shutdown ) : press Ctrl-Alt-F1 to login in terminal mode and use fsck to fix it Add user short memo : [root@my-box ~]# useradd -g users -u 560 tuser [root@my-box ~]# passwd tuser ps. sudo will be required in not-root case Proper [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Ubuntu doesn&#8217;t asking for login after boot up ( may happen after unexpected shutdown ) :<br />
press Ctrl-Alt-F1 to login in terminal mode and use fsck to fix it
</li>
<p></p>
<li>Add user short memo :<code><br />
[root@my-box ~]# useradd -g users -u 560 tuser<br />
[root@my-box ~]# passwd tuser<br />
</code><br />
ps. sudo will be required in not-root case <img src='http://bokov.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</li>
<p></p>
<li> Proper access rights for .ssh files :<code><br />
chmod 700 ~/.ssh<br />
chmod 600 ~/.ssh/id_rsa<br />
chmod 644 ~/.ssh/id_rsa.pub<br />
chmod 644 ~/.ssh/authorized_keys<br />
chmod 644 ~/.ssh/known_hosts<br />
</code>
</li>
<p></p>
<li> List all files in folder sorted by size :  <code><br />
find . -type f -exec  du -k "{}" \; | sort -n<br />
</code>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/administration/add-user-to-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris &#8211; common questions and it&#8217;s differences from Linux</title>
		<link>http://bokov.net/weblog/administration/solaris-common-questins-and-its-differences-from-linux/</link>
		<comments>http://bokov.net/weblog/administration/solaris-common-questins-and-its-differences-from-linux/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 17:00:06 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=131</guid>
		<description><![CDATA[Actually newbies in Solaris ( and experienced users in Linux ) have troubles with some every-day routines which works in Solaris in a different way than in most Linux like Ubuntu. Below I try to list most &#8221;popular&#8221; problems and questins about differences in Solaris and Linux and try to figure them out. grep doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Actually newbies in Solaris ( and experienced users in Linux <img src='http://bokov.net/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ) have troubles with some every-day routines which works in Solaris in a different way than in most Linux like Ubuntu. Below I try to list most &#8221;popular&#8221; problems and questins about differences in Solaris and Linux and try to figure them out.</p>
<ul>
<li><strong>grep doesn&#8217;t have -r switch</strong>, so there&#8217;s no recursive looking throught directories, here&#8217;s alternatives for <a href="http://www.mernin.com/blog/?p=16">recursive grep on Solaris</a> :<code><br />
<em>grep 'somestring' `find . -name '*'`</em><br />
</code><em><code>find . | xargs grep 'somestring'</code></em></li>
<li><strong>tar doesn&#8217;t support -z option, </strong>so <em><strong>tar xfz my_archive.tar.gz</strong> </em>will fail with error &#8220;<em>tar: z: unknown function modifier</em>&#8220;. To unpack tar.gz archive on Solaris you may use this one :<br />
<code><em>gzip -dc my_archive.tar.gz | tar xvpf -</em></code></li>
<li><strong>how to set environment variables in Solaris ( i set them in \~/.bashrc, but it doesn&#8217;t works )  : </strong> to make Solaris read and apply to user environment barsh_rc file try to create file ~/.bash_profile in your home, and put in it lines listed below :<br />
<code><em> if [ -f ~/.bashrc ]; then<br />
. ~/.bashrc<br />
fi</em></code><em></em></li>
</ul>
<p>To be continued&#8230;</p>
<p>Usefull links : <a href="http://www.columbia.edu/~rtt2101/iaoq">Solaris Infrequently Asked and Obscure Questions</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/administration/solaris-common-questins-and-its-differences-from-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

