Getting the list of IOCTLS in the kernel.

2010-06-25 1 min read Linux

Sometime back I was helping one of my friends in looking for all the IOCTLs supported by the kernel. Well we did not find the info we were looking for and thus thought to write a perl script to get all the IOCTLS supported by the kernel. Here it is, simple script to scan through the code and give you a list:

#!/usr/bin/perl —

@files = `grep -r ” _IO” /usr/src/redhat/SOURCES/linux-2.6.20/* |grep define ioctls_grep`;
open (DAT, ”ioctls_grep”) ||die ”could not open ioctls_grep”;
@files = DAT;
close(DAT);
my %ioctls_numbers;
print ”Grep completed..\n”;
open (DAT, ”ioctls_numbers_found”);

Continue reading

Hurray crossed 1000 visits for the day..

2010-06-25 1 min read Linux

A picture is worth thousand words..

<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/stats.jpg" alt="stats" title="stats" width="414" height="30" class="alignnone size-full wp-image-650" />

Thanks to all of you..

5-reasons-i-like-linux-and-5-why-i-dislike-it

2010-06-25 1 min read Linux

Last couple of days I was quite busy and thus could not catch up with my bloglines account. Today finally I got some time so am catching up on them and found some interesting things to share with you. Actually wanted to write them myself long time back but still thinking about it. And since someone has already done that, I will link to them. The first one for today is <a href="http://tech.shantanugoel.com/2008/04/20/5-reasons-i-like-linux-and-5-why-i-dislike-it.html" target="_blank">5-reasons-i-like-linux-and-5-why-i-dislike-it. This was not in the list that I was planning to write but some thing similar in line was pending after the distro comparisions I did some time back.

Continue reading

Nice Link on Linux.

2010-06-25 1 min read Linux

Lot of good humour and nice articles of linux.

Find  <a href="http://www.geocities.com/CapeCanaveral/Lab/5735/1/">here

Linux Advertisement – So linux finally decides to do some marketing.

2010-06-25 1 min read Linux

Its been quite some time that people started saying that this is the year of linux, and Linux (like in the Turtle and Hare story) has been growing steadily. There are advocates and critics for the Linux. I sometime think what are the advocates or critics thinking when they are commenting. But let me not get into that. There are circumstances where you would have to stick with windows wheather you like it or not and similar is the case with Linux in this corporate world. Anyway, here is the link to the advertisements:

Continue reading

Magic space on the current command line

2010-06-25 1 min read Bash Fedora Linux

# For how to set up magic space for Bash see:
# – http://www.ukuug.org/events/linux2003/papers/bash_tips/#slide15
# – http://codesnippets.joyent.com/posts/show/1690

man bash 2>/dev/null | less -p &#8217;magic-space&#8217;

man bash 2>/dev/null | less -p &#8217;Event Designators&#8217;

man bash 2>/dev/null | less -p &#8217;\!#&#8217; # &#8221;The entire <a class="zem_slink" title="Command-line interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Command-line_interface">command line typed so far.&#8221;

<a href="http://snippets.dzone.com/posts/show/10265">Read more :<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.makeuseof.com/tag/trigger-wake-lan-mac-address/">How To Trigger Wake On LAN Using The MAC Address (makeuseof.com) <li class="zemanta-article-ul-li"><a href="http://smarterware.org/4271/projectview-lists-your-todo-txt-by-project">Projectview Lists Your Todo.txt by Project (smarterware.org) <li class="zemanta-article-ul-li"><a href="http://helpdeskgeek.com/linux-tips/shell-script-backup-directory-linux/">Back Up a Directory in Linux using a Shell Script (helpdeskgeek.com) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/038d79c3-59e6-41ad-a8ad-31d1af669509/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_e39.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related pretty-attribution">

Continue reading

rpmsave and rpmnew files.

2010-06-25 1 min read Linux

When upgrading an rpm based Linux System, all of us would have seen &#8221;*.rpmsave&#8221; or &#8221;*rpmnew&#8221; files being created. These are the config files in the rpm that rpm utility thinks should be overwritten (creates a *.rpmsave for the earlier file) or should not be overwritten (create *.rpmnew with the new file).

If you ever wondered what to do with these files then you can use this small script that would show the diff between the two files and you can decided which to keep or which to delete.

Continue reading
Older posts Newer posts