Tuesday, February 5, 2008

Powershell for Linux

Unless you have been living under a rock you will have heard about Powershell. Powershell is basically M$' answer to the obvious superiority of the Unix shell, it is basically a .Net based environment in which you execute so called commandlets (which are basically little .Net apps).

You can do most of what you can do in a Unix shell, for example you can pipe output from one commandlet to another. However Powershell is "more powerfull" because instead of piping horrid byte streams from one process to another you actually pipe .Net objects. Furthermore you have access to the full .Net api.

I must admit, Powershell is actually pretty cool and I thought about an equivalent set up in Linux and as i turns out it's actually pretty simple.

Getting powershell on Linux simply requires a few simple steps:

1. type "apt-get ruby"
2. type "irb"

You now have a feature complete Linux equivalent of Powershell.

No comments: