Tuesday, May 6, 2008

Solaris tip web sites

The following web pages contain very good stuff for Solaris tips.

http://www.pcnetcom.net/solaris.htm: Solaris tips

http://www.columbia.edu/~rtt2101/iaoq/: Solaris Infrequently Asked and Obscure Questions

http://www.bolthole.com/solaris/solaris_hints.html: Solaris hints

/dev/null 2>&1

In UNIX environment, the following situation happens frequently:
script.sh > /dev/null 2>&1

What is this for?

"> /dev/null" means send standard output to the 'bit bucket" or in other words, throw it away.

"2>&1" means "redirect standard error (2) to the same place as standard output (1.)