<?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>Raskas' blog &#187; Uncategorized</title>
	<atom:link href="http://www.raskas.be/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raskas.be/blog</link>
	<description>Everything is possible... You only have to find out how.</description>
	<lastBuildDate>Wed, 22 Jun 2011 15:14:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SUID flag of a file magically disappeared</title>
		<link>http://www.raskas.be/blog/2011/06/22/suid-flag-of-a-file-magically-disappeared/</link>
		<comments>http://www.raskas.be/blog/2011/06/22/suid-flag-of-a-file-magically-disappeared/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 15:14:41 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/?p=137</guid>
		<description><![CDATA[If you set a SUID flag on a file, this flag will disappear when the ownership (user or group) is changed of that file!
Let me show you:
[root@raskas ~]# touch test
[root@raskas ~]# ll test
-rw-r--r-- 1 root root 0 2011-06-22 17:10 test
[root@raskas ~]# chmod u+s test
[root@raskas ~]# ll test
-rwSr--r-- 1 root root 0 2011-06-22 17:10 test
[root@raskas ~]# [...]]]></description>
			<content:encoded><![CDATA[<p>If you set a SUID flag on a file, this flag will disappear when the ownership (user or group) is changed of that file!</p>
<p>Let me show you:</p>
<p><code>[root@raskas ~]# touch test<br />
[root@raskas ~]# ll test<br />
-rw-r--r-- 1 root root 0 2011-06-22 17:10 test<br />
[root@raskas ~]# chmod u+s test<br />
[root@raskas ~]# ll test<br />
-rwSr--r-- 1 root root 0 2011-06-22 17:10 test<br />
[root@raskas ~]# chown johan:johan test<br />
[root@raskas ~]# ll test<br />
-rw-r--r-- 1 johan johan 0 2011-06-22 17:10 test<br />
[root@raskas ~]# chmod u+s test<br />
[root@raskas ~]# ll test<br />
-rwSr--r-- 1 johan johan 0 2011-06-22 17:10 test<br />
[root@raskas ~]# chown root:root test<br />
[root@raskas ~]# ll test<br />
-rw-r--r-- 1 root root 0 2011-06-22 17:10 test<br />
[root@raskas ~]#</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2011/06/22/suid-flag-of-a-file-magically-disappeared/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 10 used commands</title>
		<link>http://www.raskas.be/blog/2006/09/25/top-10-used-commands/</link>
		<comments>http://www.raskas.be/blog/2006/09/25/top-10-used-commands/#comments</comments>
		<pubDate>Mon, 25 Sep 2006 12:27:44 +0000</pubDate>
		<dc:creator>Johan Huysmans</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.raskas.be/blog/2006/09/25/top-10-used-commands/</guid>
		<description><![CDATA[Kris has posted his top 10 here is mine&#8230; 

[johan@raskas ~]$ history&#124;awk '{print $2}'&#124;awk 'BEGIN {FS="&#124;"} {print $1}uniq -c&#124;sort -rn&#124;head -10
    248 ls
    189 cd
     88 cvs
     71 rm
     55 ssh
     54 ll
 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.x-tend.be/~kb/blog/index.php?2006/09/25/258-top-10-used-commands">Kris</a> has posted his top 10 here is mine&#8230; </p>
<pre>
[johan@raskas ~]$ history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}uniq -c|sort -rn|head -10
    248 ls
    189 cd
     88 cvs
     71 rm
     55 ssh
     54 ll
     41 vi
     30 host
     27 cp
     24 scp
</pre>
<p>All basic commands nothing special. But my &#8216;ls&#8217; habit shows up.<br />
Every time I open a console I type &#8216;ls&#8217; sometimes multiple times, or if I don&#8217;t know what I was doing I just type &#8216;ls&#8217;.<br />
But it seems I&#8217;m <a href="http://www.grep.be/blog/2006/09/25/#command_frequency">not the only one</a> with that habit.</p>
<p>Now for the root-user</p>
<pre>
[root@raskas ~]# history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
    227 ls
    209 cd
     96 vi
     66 ll
     49 minicom
     37 /etc/init.d/network
     21 exit
     20 cat
     17 yum
     17 scp
</pre>
<p>Here are 2 &#8220;strange&#8221; things.<br />
The first is the minicom, I don&#8217;t really use it much. But when you have the only laptop with a serial connector at the office &#8230;. (I guess this is from a couple of weeks ago when there where some cisco-switch-problems)<br />
The /etc/init.d/network stuff is obvious&#8230; when I leave the office I suspend my laptop, I resume at home within an other network so a restart of the network is required.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raskas.be/blog/2006/09/25/top-10-used-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

