What is the difference between Cmd, PowerShell, and Bash? | One Dev Question

Sdílet
Vložit
  • čas přidán 26. 08. 2024
  • What's the difference between Cmd, Powershell, and Bash? Hmmmmm, sounds like a good question for Rich Turner. Listen in to hear his answer. Lots more command line thoughts from Rich in his blog posts here: msft.social/uArL72

Komentáře • 92

  • @jubyjacob9669
    @jubyjacob9669 Před 3 měsíci +2

    you explain so kindly and simply for any beginner to understand.
    It shows your level of high expertise.

  • @sporeolegy
    @sporeolegy Před 8 měsíci +9

    Thanks for explaining in sign language as well, it really helped.

  • @SMC4free
    @SMC4free Před 4 lety +45

    I love this guy. Short video, very informative and helpful. Thank you :)

  • @aditya-garg
    @aditya-garg Před rokem +4

    Short ,crisp and to the point.Amazing 👌

  • @edmel144
    @edmel144 Před 3 lety +4

    Good to the point intro on 'shell' differences.

  • @amjadelhassan6967
    @amjadelhassan6967 Před 3 lety +3

    Very Well-Said. straight and to the point!

  • @dryanwarrener
    @dryanwarrener Před 4 lety +31

    Sooo...powershell is basically an updated version of CMD? If so, why not just remove CMD completely???

    • @JiggywattArt
      @JiggywattArt Před 4 lety +27

      Same reason why Windows 10 is such a mess.

    • @zoranls
      @zoranls Před 4 lety +8

      Jiggywatt still better than mac os

    • @martinfabian9856
      @martinfabian9856 Před 4 lety +3

      By the same reason you can't complety unistall candy crush game app.

    • @GreenStorm01
      @GreenStorm01 Před 4 lety +2

      PowerShell is much more than that - it is a whole script language

    • @Julietmateus
      @Julietmateus Před 4 lety +14

      @Nuvallo Removing IE entirely would kill a lot of the things you run on your PC. For instance, when you completely remove your IE it'll make League of Legends stop working due to their storefront actually using IE in client to work. Additionally, Edge now runs on Chromium and really is the exact same as Chrome without Google integration.
      We now know that they're working on an additional new Terminal called "Terminal" that is an updated PowerShell GUI. That should be replacing both. It's also worth noting that you can run BASH inside of PowerShell as well as the new Terminal.

  • @belliott88
    @belliott88 Před 3 lety +8

    Thank You, so much, for clearing this up for me. I'm currently preparing to do some serious dev work, and i'm integrating my VSCode with my GitHub Desktop, natively, and I needed to choose between these three in one of the options windows. You made choosing easy for me.

  • @chesshooligan1282
    @chesshooligan1282 Před 3 lety +2

    Great, now I need to look for "rich object."

  • @RaymondRewind
    @RaymondRewind Před rokem +1

    I swear his last line says "...and is becoming very poorly adopted." 🤣

  • @yatheshtpoonia9225
    @yatheshtpoonia9225 Před rokem

    I really love powerful shell as a linux user it didn't take me too long to get used to it

  • @moonmonoar5000
    @moonmonoar5000 Před 6 dny

    I am a long time windows user about 5 years. Yet I became families solely to the terminal and its power through WSL Ubuntu, not through windows. It's confusing, some bash like commands execute in the Terminal, while not in cmd. Some work in cmd but not in Powershell. Too confusing.

  • @Theoboeguy
    @Theoboeguy Před 2 lety +1

    can't focus on the content yet, too distracted by Rich's totally believable and cool shirt on shirt action. also two watches.

  • @abrahamalaniz3468
    @abrahamalaniz3468 Před 3 lety +1

    2006, and it was first called Monad (Powershell). Biggest difference is how it deals with the "text" in the console that's displayed. Unlike bash, and cmd, Powershell uses objects to work with instead of just text.

  • @user-vl1fg2qk4p
    @user-vl1fg2qk4p Před měsícem

    Hilarious, thanks for the guidance businessman

  • @vladislavkaras491
    @vladislavkaras491 Před 2 lety

    Short and informative.
    Thanks!

  • @darwin6984
    @darwin6984 Před rokem +1

    how CMD limited? we dont understand what he said the difference? thanks to explain

  • @rafaelh9012
    @rafaelh9012 Před 3 lety +1

    When i write a script with cmd I can easily save it as .cmd file and launch it with a double click. Why isn't that possible with powershell?

    • @mattcargile
      @mattcargile Před 2 lety

      It is just a “security” feature. You have to create another .cmd file and call the .ps1 file.

  • @raulsanchez4716
    @raulsanchez4716 Před 2 lety

    Thank you. Good info.

  • @dexterkeano
    @dexterkeano Před 3 lety +1

    Perfect, thank you!! ;)

  • @darwin6984
    @darwin6984 Před rokem +1

    Not clear, can Microsoft show how different inside the CMD, Powershell and Bash?

  • @typeer
    @typeer Před 3 měsíci

    Two watches is powerful Microsoft energy

  • @NOUSNET
    @NOUSNET Před 2 lety

    thanks !

  • @sc100200090
    @sc100200090 Před 5 lety +15

    No doubt Bash is the best! However, it's only the black terminal box that sure makes me travel back in time, making me feel as if using MS-DOS in school life!

  • @Mashael_96
    @Mashael_96 Před rokem

    Very helpful 😄👏

  • @SXZ-dev
    @SXZ-dev Před 4 měsíci

    How difficult would it be for you to just make the Cmd Shell compatible with Unix commands as opposed to MS-DOS commands that are exclusive to your ecosystem and nobody else's. Seriously it's the main reason people turn to Apple for developer equipment, we shouldn't need WSL just get the Unix commands to work on the Cmd Shell

  • @mdm8547
    @mdm8547 Před 4 lety +1

    I am using PowerShell everywhere )) In Windows and in Linux as well.

  • @fecamposano8429
    @fecamposano8429 Před 4 lety

    magkaano ang 1bttls

  • @holmzcat8493
    @holmzcat8493 Před 4 lety +2

    Two watches lol!

  • @wisteela
    @wisteela Před 4 lety

    And all can be used, and open at the same time in the excellent Windows Terminal.

  • @DeveshKumar-nb6py
    @DeveshKumar-nb6py Před rokem

    Bash is for Linux and Mac

  • @ShivamPanchbhai
    @ShivamPanchbhai Před 3 lety

    what he is wearing inside the T-shirt? another T-shirt?

  • @PythonPlusPlus
    @PythonPlusPlus Před 5 lety +47

    Bash is superior to Powershell.

    • @chezchezchezchez
      @chezchezchezchez Před 5 lety +7

      u sure?

    • @chuck5761
      @chuck5761 Před 5 lety +7

      Opinons differ. Bash commands have virtually no consistency in options so it's much more of a pain to learn. Powershell rocks consistency.

    • @externalprocess
      @externalprocess Před 5 lety +6

      They are different approaches with different strengths and weaknesses

    • @haudiweg
      @haudiweg Před 4 lety

      Chuck Wagner use powershell in linux and make with it programmes...

    • @chaminda512
      @chaminda512 Před 4 lety +1

      It would be nice if you give it a try. After that, your comment will be edited.
      Since. You gonna realize how powerful and consistent Powershell is

  • @HeenaPatel253
    @HeenaPatel253 Před 4 lety

    Cmd best

  • @Hdhdh-hk1tj
    @Hdhdh-hk1tj Před rokem

    Thanks for the explanation. I understood nothing.

  • @Mythologos
    @Mythologos Před 3 lety +9

    Bash is easy to use, anyone can learn it and opens the entire system up to you - Powershell is a torturous insane asylum that does zero out of the box and is near impossible to set up and configure and always looks ugly.

    • @r0yce
      @r0yce Před 3 lety +2

      Pretty much a Linux vs Windows thing.

    • @marredcheese
      @marredcheese Před 3 lety +8

      Weird, I had the exact opposite experience.

    • @smayansahu1070
      @smayansahu1070 Před 2 lety +1

      me who uses the fish shell

    • @sub-harmonik
      @sub-harmonik Před 2 měsíci

      you should use windows terminal with powershell rather than the terminal it comes with.
      The fact that it does less is more of an issue with the programs and paths on your computer, not the shell itself. What does it 'not do'?

    • @growtocycle6992
      @growtocycle6992 Před 17 dny

      ​​@@sub-harmonik I think the main issue is that many programmes that exist were written for Bash, and hence are not directly transferable to PowerShell which deals with processing via objects and not lines of text??
      Programs need to be heavily modified to run in PowerShell??

  • @lorapora
    @lorapora Před 4 lety +2

    anyone find his hand gestures mimicking typing funny?

  • @joelmamedov404
    @joelmamedov404 Před 5 lety +3

    Some years ago I tried to open relatively large (100M) text file with PowerShell. It struggled for a while and crashed. I had 16 GB memory in my workstation. A typical low-class Microsoft product. I never tried Powershell since then and I hope never will have to. Simple and old "vi" is smart enough not to load everything from the large file at ounce.

    • @ByronScottJones
      @ByronScottJones Před 4 lety +4

      I routinely handle files ten to twenty times that size without issue. I can't say what the issue is that you were having, but it wasn't powershell.

    • @sub-harmonik
      @sub-harmonik Před 2 měsíci

      what do you mean 'open a large text file with powershell'? powershell is not a text editor. I use powershell and open neovim from it and it works fine aside from some minor diff highlighting issues and having to configure the shell integration a little bit

  • @user-bw9wk8cc6v
    @user-bw9wk8cc6v Před 5 lety +4

    Your hand gestures are distracting lol

  • @undernightcore
    @undernightcore Před 5 lety

    Well, if a dev asks himself this idk if he's a dev at all...

    • @OrnateOwl
      @OrnateOwl Před 5 lety +23

      r/gatekeeping r/iamverysmart

    • @ErichKramer
      @ErichKramer Před 3 lety

      All knowledge has to be learned, the order rarely matters.