Microsoft PowerShell Core 6.0 in Linux

preview_player
Показать описание
Looking at #Microsoft #PowerShell running in #Linux using #Ubuntu 17.10.
Perhaps useful for an MS Sysadmin who has to maintain Linux virtual server.

Like my channel? Please help support it:

Follow me on Social Media
Рекомендации по теме
Комментарии
Автор

Powershell is object-based, not text-based like bash. It is supposedly more powerful but harder to learn.
The advantage of Powershell is that you do not need to keep track of the text position as it passes around objects. In Bash you select parameters from multiple commands piped together using text position often using cut, awk and that can sometimes be difficult if the text rows has different number of arguments such as iptables logs for example.

SuperiorBeen
Автор

I think there's too much hate for PowerShell.... It's actually quite powerful... <runs away while being pelted with rocks>

Nebukadnezzer
Автор

I know it's a silly thing, but I liked that you read "pwd" as "print working directory". All these years I never knew what it stood for. I guess it would help people remember commands more easily if every youtuber made a conscious effort to do that.

Scorch
Автор

At this point relearning all the commands would be a tremendous effort for no gain. This is only useful for existing powershell users.

UKcuber
Автор

This has been around for a good two years or so, PSCore was released around the same time as DotnetCore. As someone who deals with IIS, AD, MSSQL and Exchange a fair bit I found it really useful for running PS scripts from my laptop without having to dual boot or fire up a VM.

I also had PS scripts for zipping up DB backups and offloading into SFTP saved me having to re-write them for bash.

xellanox
Автор

Verb-noun is infinitely easier to lean than learning a whole new vocabulary. If you already know bash, of course you’re not going to switch. You know the vocab already. But if someone is new to it, if there is ever parity in capability...powershell can take off

JoeyDee
Автор

How come you know powershell so well ? I'm getting worried here :)

nir
Автор

Admit it, you just installed powershell for linux to run that free -m command on MS powershell. You love that free -m command! You're going to mary that free -m command one day.

momashi
Автор

@2:08 echo is an alias of Write-Output (on Windows), so you can use them both. See Get-Alias.

IgnoreMyChan
Автор

I love how disgusted you are by it. So much so that you can't bare installing it on bare metal. I can relate.

jacobnoori
Автор

Another possible use case: A Linux dev who has to maintain a ps1 script.

HebaruSan
Автор

One advantage I can think of access to Powershell modules or libraries or whatever they're called. API calls to Azure or SQL Server would be handy,

AvailableUsernameTed
Автор

Does this mean in the near future we can install windows application ? maybe MS will pick up flatpack/Snap or make Ubuntu run .exe natively.

rexevan
Автор

You know that meme of the black guy who's going "wtf"? That is an accurate representation of me right now.

hellishinc
Автор

You are all missing the point. As a Windows Server administrator who knows powershell well and Linux a bit, Microsoft is changing. It is becoming much more like Linux. You can also run bash on windows now too. Microsoft are also creating "run levels" like in Linux and package managers like yum or apt (Google chocolatey). I can even use VIM on Windows too!

The biggest restriction on Windows right now is no native SSH. Powershell uses WinRM which is awful. OpenSSH is currently being trialed. If that happens it will allow for tools like puppet, chef etc to easily automate windows too.

This will allow windows admins to become Linux admins and vice versa. I like this a lot :)

You don't NEED to use it, but you CAN. That's the beauty of open source.

crizzlevideos
Автор

why are some unhappy? i thought linux loved having options.

jonmahashintina
Автор

>not sure how it does help them
Consistency means you can use one tool to automate all platforms using orchestration.

Nobody is going to drop bash as their interactive shell in an enterprise, that seems ridiculous! The point is using PowerShell to manage everything on a very large scale, and automated. It means we don't have to drop semantics and syntax consistency, like having to bring in external scripts, or even worse, include a huge Bash-blurp as a multiline string and having to parse the output *shudders*. We can filter and sort data the same way on all platforms, meaning no more text parsing.

Basically, Microsoft fails at marketing to the right audience. They *would* like it if you, regular Linux user used it, but why in the world would you, if you don't already know the shell? As you said, it's verbose, which most Linux people hate, it's object-oriented instead of text, which most Linux people hate.
You have been confused by Microsoft and I understand your confusion, but you are truly not the target audience. The creator of PowerShell even says "if you don't like it, don't use it. use the tools that you like and gets the job done".

Thewho
Автор

I had the powershell appimage somewhere around 2016 already. Didn't find any use for it

patentlypaul
Автор

@1:46 that IS the same result. Your Memory.ps1 showed the 'Available' memory as 15361MB, which is only 1MB more than the available memory 'free -m' gave you. 'Free' is not the same as 'Available' ;-)

IgnoreMyChan
Автор

On windows 10 powershell you also get a lot of Linux commands

oCMSo
visit shbcf.ru