CentOS7でPowerShellを実行する
さて、別にPowerShellを日頃からばりばり使っているわけではありません。
コマンドじゃないとめんどくさいときに、やっとPowerShell出てきてやっと使うレベルです。
あとは、Vagrant立ち上げるとき。。。
なぜ、CentOS7でPoserShellなのかというと、ついにWindowsから「コマンドプロンプト」が消えるらしいです。
そもそも、自分は開発OS自体はWindowsなので、使えた方がいろいろと効率がいいはずです。きっと。。。たぶん。。。
とりあえずトライ!
http://business.newsln.jp/news/201612072350480000.html
インストール
yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.13/powershell-6.0.0_alpha.13-1.el7.centos.x86_64.rpm
実行
powershell
で実行できます。
powershell PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved. PS /root>
とりあえずコマンドレットの数を計測してみる
必要かは別として、Windows10 と CentOS7 を比較すると2500くらいは差がありますね。。。
# CentOS 7 Get-Command | measure | select count Count ----- 349
# Windows10 Get-Command | measure | select count Count ----- 2725