this post was submitted on 09 Feb 2024
112 points (94.4% liked)

Programming

17270 readers
39 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 9 months ago* (last edited 9 months ago) (2 children)

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. (Temporary and migrating off already!)

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).

[–] [email protected] 6 points 9 months ago (2 children)

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

Get-Command service

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.

[–] [email protected] 4 points 9 months ago* (last edited 9 months ago) (1 children)

If you dig the structured output of powershell, you might want to check out Nushell. It’s a cross-platform shell that builds on powershell’s structured data approach but is much less verbose and, in my opinion, more intuitive than both powershell and Posix shells.

[–] [email protected] 2 points 9 months ago

Thanks, will check that out.

[–] [email protected] 3 points 9 months ago

You could do it, you just had to run your terminal as administrator.
Just right click the terminal, and "Run As Administrator".