Getting Started with PowerShell 6.0 in Linux [Beginner Guide]

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Hosting referral link if you planning to start your blog ($3.82/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

13 Responses

  1. Martin R.A. says:

    @Eddie – Virtualization , Cloud computing :

    In my opinion Azure must be the main reason for Microsoft to embrace Linux and make SqlServer and powershell available on Linux. Looking on the rising percentage of Linux instances deployed into the different cloud offers, Microsoft MUST make this move to stay in the market.

    I have been doing Unix/Linux myself for many years and we should be glad to see the possibilities to compute without a Graphic head to operate since Windows server 2012.
    Microsoft windows have gone back to its ancestor VMS/OpenVMS and is enabling us to build test environments on Linux as well.

    Regards Martin R.A. – DK

    • Eddie G. says:

      @Martin R.A. – I’ve no doubt there’s an actual business case for this, from the cloud and Azure to containers and database manipulation. I was merely trying to point out that just because MS is giving “bits and pieces” of itself away, does NOT make them some holistic, and benevolent corporation that has the best interests of open source in mind.

      I agree with you that they’re jumping on this bandwagon to gain financial supremacy. And that’s the caveat, while the devs and sysadmins can “play” with this all they want, they should be remembering that MS has a “bad habit” of warming up to a company an then when everything is “champagne & roses” they literally wipe that company / IP / corporation out.

      Or else they just buy it and then dump it somewhere in the woods so it can die.Better to reject this “blending” for production environments….and keep it in the world of virtualizations and “not quite real” servers.

    • Aaron Kili says:


      According to what you have explained here- “In my opinion Azure must be the main reason for Microsoft to embrace Linux and make SqlServer and powershell available on Linux. Looking on the rising percentage of Linux instances deployed into the different cloud offers, Microsoft MUST make this move to stay in the market.”

      Surely, Azure the popular cloud computing platform and services with 38 Azure regions, more than any cloud provider is perhaps the main reason why Microsoft Loves Linux.

      Many thanks for the feedback.

  2. Eddie G. says:

    Being a longtime user of Linux, there’s no logical reason for this to even happen. I for one don’t use Powershell, and I have already mastered the Linux Command line. Why on Earth would I want to get this intertwined on my Linux systems that run so smoothly now? Nope.

    Leave this for those who might want to tinker with it and (possibly) break something that might require a complete re-install. The pro’s who “know”?….will avoid this like the Black Plague.

    Not Related….The Again….Maybe It Is?

    Its amazing to me that years ago, people who used Linux were reviled, shunned and made fun of. That is you didn’t have some sort of Microsoft certification you were “nobody”. That you were considered a Master if you could do things using the “cmd.exe” program.

    There was a time when if you tried to introduce Linux to your Windows systems you were blocked at every turn. You’d see articles and forums where people would ridicule you, call you names, and there would be all manner of arguments about why that “trash” called Linux should stay in it’s own backyard, and leave the “professionals” to do REAL work with Windows.

    Times have changed, to the point where the one company that was trying to stomp Linux out is embracing it as a friend!?. (be careful where that may lead!) I don’t need Powershell or anything else MS has to offer.

    We tried to play nice back then and the refused to, and that kind of forced the various developers to design their own work-arounds for things. Now that Linux is a self-contained, fully functional, OS that can hold its own….NOW you want to come over and act nice? Not buying it or falling for that. We here in Linux-land are ok….take your Powershell and go home. We don’t have any problems with that.

  3. Sparsh Gupta says:

    I have been following Tecmint blogs since past few months now. Although the articles and blogs help me learn new things and master my skills, I always get disappointed because ther’s no pdf’s for the same to download and print it or to keep it for later use. :(

  4. Joseph C Pietras says:

    Did not work for me on Ubuntu 16.04. First steps worked but then got this,

    nas:~ root# apt-get install install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package install`
    • Aaron Kili says:


      You have used a wrong command, instead type the following after adding the repositories and updating packages’ sources list:

      apt-get install powershell
      apt-get install -y powershell to answer yes, automatically while installing.

      • Joseph C Pietras says:

        Ouch! Aaron you are correct and changing the command to “apt-get” instead of “apt” worked. Not sure why. In fact, when I ran the apt-get command to install powershell the output said to run “apt autoremove” in order to clean up some no longer needed packages.

        Also the apt documentation (apt –help; man apt) says it is a better front end to apt-get. I have not drilled into all the differences between the two commands.

  5. Elio Panting says:

    Well, you’ll need to understand that powershell for Linux, still in alpha version and as you pointed out, still a lot of work when compared to other Linux shells, powershell offers work with different platforms, the same code and scripts, works across, Linux, windows, OSX and powershell its an object-oriented programming language.

    If you try powershell on windows (full version) you’ll feel that its by far better, more exciting and productive features to operate a machine from the command line and importantly, for programming (scripting) purposes as well than it Linux counterparts.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 202,035
  2. 9,267
  3. 38,621

Are you subscribed?