Sudo on Windows? (Spoiler: It's actually good)

preview_player
Показать описание
I can't believe this took so long but I'm hyped it happened. Microsoft's slow embrace of Unix/Linux standards is a necessary step for Windows dev to become reasonable again. One command at a time.

S/O Ph4se0n3 for the awesome edit 🙏
Рекомендации по теме
Комментарии
Автор

Babe wake up it's 2024 and Microsoft added sudo to pwsh

Malix_Labs
Автор

As a pedant, sudo actually stands for "substitute user do" it just happens that the default uid is 0, aka root. You can set any uid you want with sudo using the -u flag.

themartdog
Автор

they need to remove the Aliases for wget and curl that target Invoke-WebRequest. we need native curl and wget. the entire gnutools for windows stack being officially integrated in windows instead of being Aliases would be amazing.

joe_ferreira
Автор

cd has been cd in Windows since it was DOS, I think you might mean ls.

namewastaken
Автор

Wow, it only took them *checks notes* 39 years.

PSPCDJ
Автор

DOS and CMD have CD, I'm not sure if powershell 1.0 had a default alias binding cd to Set-Location but cd was both the 'nix and DOS world. There are other aliases that might be a better example. Which is the other thing, these are powershell aliases and not a windows terminal thing (which is great, but is not the command interpreter but a terminal emulator/console). Technically RunAs exists in cmd for elevating commands, but it is a ruddy nightmare and has so many gotchas and ways it doesn't work I doubt a lot of people know of it.

EwanMarshall
Автор

I was using gsudo for a long time, worked flawlessly! Just like many, many other missing Windows features implemented in the past by the community

mzg
Автор

Maybe I'm crazy but cd used to work even in the days of CMD, perhaps you were thinking of ls? It used to be dir in CMD but now in the Windows terminal both work. Still no handy way to create files on windows like the touch command in UNIX systems though.

EvilTim
Автор

I don’t know how many times I need to repeat this:

*Sudo is not short for “superuser do”, it’s “substitute user, do”* there is a reason you can do ‘sudo -u www-data <command>’ and it won’t run with root privileges.

And that usage even more important than elevating your privileges on Linux. Especially as a sysadmin.

Pheeef
Автор

Oh thank goodness. I hated opening cmd as an adminstrator every single time.

Ewoof
Автор

Windows developer experience has improved a lot, finally they are delivering their developers developers developers promise

hugazo
Автор

0:58 theo doesn't understand the difference between a terminal and a shell.
the new windows terminal defaults to powershell (which itself is not new), and powershell has had cd and friends as aliases for a long time

SamualN
Автор

Can't wait till windows moves to ext4 next

Rubricube
Автор

Hey! I've noticed that you are able to read technical text from a web page in a very clear manner, thanks for that

modolief
Автор

Gsudo is a project that implements sudo on windows

TheCommunistRabbit
Автор

Nice that they are bringing sudo in as a native feature, but I've been using gsudo for a while now and that works great.

nullignore
Автор

now for them to stop aliasing curl by default as something completely different. Curl is in Windows by default, but you run it as "curl.exe" to get the actual command.

NotAFanMan
Автор

1:13 I don't want to be that guy but cd has always worked in Windows.

WalnutOW
Автор

I've used gerardog/gsudo for years, bonus it works with older version of windows not just 11

jakehandsome
Автор

It is not completely open source yet. The script in GitHub repo is just a wrapper for closed-source sudo executable.

KvapuJanjalia