You could do it, you just had to run your terminal as administrator.
Just right click the terminal, and “Run As Administrator”.
Comment on Introducing Sudo for Windows
ApathyTree@lemmy.dbzer0.com 8 months ago
Legit didn’t realize until this news came out that windows didn’t have that same sort of “lawl, yes, I know what I’m doing and accept it might break my shit if I’m wrong” override access… but then I stopped using windows at 7 and only started again with 11 when my Linux beast died.
I never really used cmd on windows, everything was gui… but I prefer terminal to gui on Linux (idk why, maybe just because it’s different and feels more in control. Also verbose logs are sexy).
Kuinox@lemmy.world 8 months ago
DV8@lemmy.world 8 months ago
Command line stuff on Windows (server) is in a pretty decent state now, imo. It’s not perfect but more and more is manageable with powershell. It took some time to really grok that you’re basically always working with objects but I’m a big fan and now quite dislike having to deal with just “text” output when I do something in Linux. (Probably also because I need to do a lot less in it so I’m not used to it as much)
Personally again I also like the naming scheme much more than how it’s done in bash. If I need to do something I don’t know I can search the command by using logical words. E.g. I want to change the properties of a service but don’t know the command by heart I can use
And I’ll get a list of all commands that contain the word service.
When it comes to admin privileges you simply have the privileges of the account you used to start the session, which has its’ own dangers I suppose since it requires you to maintain account hygiene yourself.
LPThinker@lemmy.world 8 months ago
If you dig the structured output of powershell, you might want to check out Nushell. It’s a cross-platform shell that bulls on powershell’s structured data approach but is much less verbose and, in my opinion, more intuitive than both powershell and Posix shells.
DV8@lemmy.world 8 months ago
Thanks, will check that out.
Aatube@kbin.social 8 months ago
There's also nushell which displays a ton of stuff with tables and also outputs objects with its builtins