Ubuntu: Can I run PowerShell on Ubuntu?



Question:

I have been assigned a project to be done in Windows PowerShell. I am familiar with shell scripting but it's a new technology. I was told that its similar to shell except few syntax changes.

I have one week time to learn and understand the basics.

I tried looking for an emulator but couldn't find one. I don't have a dual system on my laptop. Help me out here.

Do I need to install Windows on my laptop so that I could practice those commands at home or there is a solution available in Ubuntu without making changes to my operating system.


Solution:1

Posting this here is likely to get a thousand beardies running at you with "BASH IS BETTER THAN POWARSHELL!" If I could grow a beard, I would probably be one of them.

But if you have an assignment that involves Windows Powershell, there's little choice. There are some shells (and even modifiers existing shells like zsh) that aim to pull in some of the PowerShell features but even if they're syntactially identical, the underlying data you're using just won't be the same.

In short: if you need to use Windows, use Windows. And you do.

That said, that doesn't mean you have to reinstall Windows properly. It could temporarily languish in a virtual machine (see VirtualBox). Easy to install, easier to remove, can't touch your existing setup. It'll be a bit slower than a native install but given you're just playing around with a command line, that doesn't seem like an issue at all.


Solution:2

for those who still needs it - MS made a move: https://azure.microsoft.com/en-us/blog/powershell-is-open-sourced-and-is-available-on-linux/

PowerShell on Linux, SSH to Windows box, the Dream...


Solution:3

PowerShell is available on Linux.

https://github.com/PowerShell/PowerShell

There's even a beginners guide:

https://github.com/PowerShell/PowerShell/blob/master/docs/learning-powershell/powershell-beginners-guide.md


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »