Linux
Getting the list of IOCTLS in the kernel.
2010/06/25
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 …
Hurray crossed 1000 visits for the day..
2010/06/25
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" …
5-reasons-i-like-linux-and-5-why-i-dislike-it
2010/06/25
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. …
Nice Link on Linux.
2010/06/25
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
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 …
Magic space on the current command line
2010/06/25
# 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 …
rpmsave and rpmnew files.
2010/06/25
When upgrading an rpm based Linux System, all of us would have seen ”*.rpmsave” or ”*rpmnew” files being created. These are the config files in the rpm that rpm …
bash one liner to change/remove test pattern from config file or text file.
2010/06/25
Problem: I had a directory with a lot of config files in the ini file format, i.e. name and value separated by equals. Some/all of these contained some directory names and other values which had to be …
Visualizing system performance data
2010/06/25
<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category […] $ vmstat 2 10 | awk 'NR > 2 {print NR, $13}' | gnuplot -e “set terminal png;set …
Using PHP to search a MySQL database and return paged results
2010/06/25
<a href="http://www.designplace.org/scripts.php?page=1amp;c_id=25">Using PHP to search a MySQL database and return paged results Link above to the article. I am using this as base to …
Quick one liner bash function to navigate parent directories quickly
2010/06/25
up () { for i in $(seq 1 $1) ; do cd ..; pushd +1 ; done; } — if you like the popd and pushd way .. up () { for i in $(seq 1 $1) ; do cd ..; done; } — otherwise .. <div …
A Unix/Linux cheatsheet complete in most respects.
2010/06/25
Find <a href="http://cb.vu/unixtoolbox.xhtml" target="_blank">here. This is a very nice tutorial all in one page and browsable. It covers : […] 1. System 2. Processes …