Unix Shell: The Art of I/O Redirection

One of the primary tricks in my sysadmin bag-o-tricks is Input/Output Redirection; I have found that while many people use Shell I/O Redirection throughout their day not everyone fully understands why and how it works. The Input and Output In the Unix environment there is always 3 streams open stdin, stdout, & stderr; these special streams are used for interacting with the user input and program output within the Unix/Linux shell environment....

 · 4 min · Benjamin Cane

Sysadmin Tools: Managing Linux from a Windows Desktop

While it is getting more common for companies to allow their IT staff to choose their own OS not every company allows this. In fact most companies require their IT staff to use Windows, as Windows has historically been the dominate OS for the business world. While I personally believe it is easier to administer Linux/Unix servers using a Linux desktop this doesn't mean that I get to be the exception to the rule; sometimes I have had to use a Windows desktop....

 · 5 min · Benjamin Cane

SMF: Enable apache [Solaris]

As of Solaris 9, Sun introduced a new utility called Service Management Facility. This utility is now (Solaris 11) the preferred method of managing your services. While the /etc/rc.X/ directories are still around and work they are considered legacy. Here is a quick example of enabling apache to get you started. # svcs -a | grep http disabled 10:23:11 svc:/network/http:apache22 # svcadm enable http # svcs -a | grep http online 10:30:23 svc:/network/http:apache22 This will enable apache for not only your live session but will also enable it for boot as well....

 · 1 min · Benjamin Cane