Sunday, June 22, 2008

> /dev/null 2>&1

Seen this? You will ask either of the following question:

1) What is it?
2) I know it is input/output redirection but how is it working?

Now the answer for both of you.

In *nix world STDIN, STDOUT, STDERR are three common things that you must know.
Standard Input i.e. STDIN or 0 is something like keyboard.
Standard Output i.e. STDOUT or 1 is something like Monitor
Standard Error i.e. STDERR or 2 is something like ERROR

You can manipulate them. For eg,
Instead of typing from keyboard you can input from other medium using input redirection.
Like print < /file

Instead of displaying to monitor you can output to other medium using output redirection. Like echo something > /otherfile
You can use >> to append

Instead of displaying error to standard error you can use error redirection.
Like cat somefile 2> /dev/null
cat somefile 2> /somefile
Here /dev/null is something like dustbin. If you don't want your error to be seen then simply redirect it to the dustbin.

Now let me answer the second question

> /dev/null 2>&1 redirect both output and error to /dev/null
> /file 2>&1 redirect both output and error to /file

Explanation:
> redirects output to /dev/null
2>&1 redirect error to where > is redirected
So error also gets redirected to /dev/null

Friday, June 20, 2008

Select pattern in Nautilus

We all know that OS other than Microsoft is for productivity. Just take a case in point, today I used a data recovery software to recover data from my friend's hard disk. Well the recovery went smoothly and produced around 100 folders scattering my home folder. If it had been Windows then it would have been a pain in *** to select all those folder manually. But Windows users are habituated with it, so they wont notice that they are wasting their time in something we Linux or Mac users do in few clicks.

Go to Edit
Click select pattern



Type the pattern that you would do with ls or cmd command.
I had to select all the folders that begin with recup and having extension 01,02.
So I type recup* and Bingo all the recovered folders were selected.



I look at its size tar them and send it to my friend.

Wednesday, June 18, 2008

Planetary Roundup

Three major planets are well placed for viewing. This chart of Jupiter and the Moon and Sagittarius shows the changing view of the trio as the Moon moves across the sky the evenings of June 18 and 19. Jupiter and Sagittarius will remain in close proximity over the summer with Jupiter being the brightest beacon in the sky each night. Over the summer Jupiter will gradually become visible earlier and earlier in the evening. Saturn and Mars are slowly slipping into the evening glare but remain visible for a short while after sunset. Within the next month they will entirely fade from view, so catch a glimpse and enjoy the show of these two wanderers in the midst of Leo the Lion.

Side Orders #3

Okay, this isn't really an opening to a movie I like, but it does feature a favorite opening song of mine---I mean, it rocks, and you can't get it out of your head!! A real earworm. Anyway, this is sort of a fan vid for a movie called The Sheriff and the Satellite Kid (El sheriff y el pequeño extraterrestre in Italian!). I have an interesting little story about this movie under my belt, but for

Side Orders #3

Okay, this isn't really an opening to a movie I like, but it does feature a favorite opening song of mine---I mean, it rocks, and you can't get it out of your head!! A real earworm. Anyway, this is sort of a fan vid for a movie called The Sheriff and the Satellite Kid (El sheriff y el pequeño extraterrestre in Italian!). I have an interesting little story about this movie under my belt, but for

Tuesday, June 17, 2008

presentation on manually removing virus leftouts

Click here to get a nice presentation on manually removing virus leftouts

Temporarily removed. Please comment and I will upload it again. Sorry for the inconvenience caused.

Monday, June 16, 2008

Bet 100 on The Flaming Nose

This is the intro to a ten-part series I'm contributing to The Flaming Nose, the web's premier website devoted to television. With each of my introductory articles, I'll be covering my very personal choices for my 100 favorite TV series of all time. I'm about to post #70-61, so if you haven't checked all three previous articles out, do. And make time for everything else TV-related at The