Cygwin in Windows Terminal? Linux on Windows? Shells != Consoles != Terminals, WTF M$FT WINDOZE

Поделиться
HTML-код
  • Опубликовано: 23 авг 2024
  • Cygwin in Windows Terminal? Linux on Windows? Shells != Consoles != Terminals, WTF M$FT WINDOZE. It's confusing! Let's make it not confusing.

Комментарии • 68

  • @cyrusgracias4556
    @cyrusgracias4556 4 года назад +59

    Man thanks for that shift copy as path trick

    • @strandloper
      @strandloper 4 года назад +1

      I've been using DOS and Windows as long, or maybe longer than Scott but never spotted this, though I know about shift revealing more menu items. It's probably because I have, for a long time, used xplorer² and it has copy path bound to Alt-C and I use that quite often.

    • @blackjackjackson777
      @blackjackjackson777 4 года назад

      Yep that really cool and helpful trick,
      Thank you Scott,
      But the thing that i can't understand it's why Microsoft is hidden it there. 😕

    • @strandloper
      @strandloper 4 года назад

      If you're keyboard centric then Shift-F10,A should get you there quicker than going to the mouse.

  • @mandoschMUh
    @mandoschMUh 4 года назад +3

    It's funny how one can feel happy just by knowing some of the tricks you show in your videos already :D Thank you for sharing this bit of information.
    I was quite perplexed by seeing the title of your video, as I'm struggeling with Cygwin at the moment. As interesting as this video is, it didn't help me with my struggle. But I've won a little bit of other knowledge, which is in itself a good thing. So thank you again for this.

    • @shanselman
      @shanselman  4 года назад +1

      What’s your struggle

    • @mandoschMUh
      @mandoschMUh 4 года назад +1

      @@shanselman I struggled connecting to a machine, or rather displaying a VirtualBox running there on my machine. Turned out that the DISPLAY variable wasn't set correctly.
      Asked a colleague of mine, and we came a little bit further, but aren't quite there yet. But then he showed my how to start the VMs in headless mode, and all my problems were solved, as starting the VMs was my main goal, and doing it via the terminal was even quicker for me. Hadn't to use Cygwin, neither. Now I'm using the Git Bash console and I'm happy :)
      Thank you for asking!

  • @daniribeiro826
    @daniribeiro826 Год назад

    I hardly ever comment on a video, but I just want you to know how helpful that video was! Running the Cygwin and Windows PowerShell side by side was exactly what I needed! Thank you very much for the content, Scott!!

  • @armaandhanji2112
    @armaandhanji2112 4 года назад +2

    Awesome video Scott. By the way, your computer stuff they didn't teach you series is my favorite thing on RUclips!

  • @abulaith4485
    @abulaith4485 4 года назад +2

    WOW! 2 videos of great technical info. Thank you Scott. Suddenly I feel there are so many gaps in my knowledge!!

  • @gambarimas
    @gambarimas 3 месяца назад

    This video clarified a lot of things to me. Thank you. Subscribed!

  • @als1023
    @als1023 Год назад

    1st video on this channel, subbed immediately !
    Learning linux, tired of being slagged in forums for calling Win cmd prompt shell ,, DOS,,, needed this explanation !
    Thank you ! Older folks get no respect, ahem, considering we were around when DOS was king. We just wanted to use software, not become ' expert programmers '
    The word Win terminus went by fast, , don't know what that is ?
    Been running Cygwin for 2 months , love it ! And Kali linux,,, favourite version.
    Thanks for posting !

  • @hooktest8101
    @hooktest8101 4 года назад +7

    Your videos are amazing ... I would like if you make a video about different web servers ( apache , ngnix , iis )

  • @opentrail
    @opentrail 4 года назад +2

    Very clear description. Thanks for posting.

  • @bonezit6853
    @bonezit6853 Год назад

    It probably wasn't your original intention with this video but I have been trying to get Cygwin to run 'within' the Terminal for about an hour and no text tutorial I found could tell me how. I was trying to point to bash.exe or mintty with parameters, etc. You showing to use the bat file as the launcher worked perfectly. Thanks!

  • @sarcasmasaservice
    @sarcasmasaservice 4 года назад

    Another great video Scott, thanks! I believe this will do a better job of explaining the differences between a shell, a console, and a terminal than I ever did. My students will thank you.

    • @yash1152
      @yash1152 2 года назад

      😅 please dont separately put terminal and console 'cz they are same things in software sense.

  • @jayhu6075
    @jayhu6075 4 года назад

    All the streamings that you make is so understandable. Many thanks.

  • @irvlennert3674
    @irvlennert3674 4 года назад +1

    Thanks Scott! I knew the difference but your words were better!

  • @ArielErlijman
    @ArielErlijman 4 года назад +1

    thanks for sharing! as always... I really enjoy how you explain stuff. We want more!

  • @willoyd
    @willoyd 4 года назад +6

    Excellent video, as always, Scott. Thank you. Please tell us how you got your wallpaper to automatically change colors and your terminal to be transparent? That combo looks really cool.

    • @shanselman
      @shanselman  4 года назад +3

      Ctrl shift scroll in terminal to be transparent with useAcrylic = true. Settings in Windows under backgrounds and change background every 1 min

  • @alfonsobaqueiro
    @alfonsobaqueiro 9 месяцев назад

    Lovely, that terminal is great work! The tabs are really needed and mintty is lacking of it.

  • @yash1152
    @yash1152 2 года назад

    8:02 ohhhhh, i have seen this before, but i forgot it. thanks for reminder. "shift + rmb" for option "copy as path" too
    alongwith "open PS here" though i wish they did "open here with..." and showed different terminals

  • @yash1152
    @yash1152 2 года назад

    8:13 ohhhw, yet another tip. thanks for sharing. i'd go with linux way of putting forward slash.

  • @ci7alex1
    @ci7alex1 4 года назад +1

    Excellent demo and explanation. Thank you, Scott!

  • @user-li6vw3gp2x
    @user-li6vw3gp2x 2 месяца назад

    great video thank you. subbed

  • @ericpa06
    @ericpa06 3 года назад

    I don't know if you'll read that, but I would like to ask if it's possible to associate, let's a say, a shell script to open as a tab in the new windows terminal when you double click it? I've been searching all around and I simply didn't find a way to solve this issue. I was able to associate shell script to WSL.exe itself, but it doesn't open in the new windows terminal. Is there anyway to solve this? Anyway, thank you very much.

  • @haydees1158
    @haydees1158 2 года назад

    I love when he says 'it all has $$$$$$ symbols' overall excellent video tho 10/10

  • @_Firebert
    @_Firebert 3 года назад

    Informative and engaging, good video.

  • @sabarinathg5704
    @sabarinathg5704 3 года назад

    Glad to see you started using new Edge browser. :)

  • @TheAliakbarazad
    @TheAliakbarazad 3 года назад +1

    You Sir should be a teacher! Thank you!

  • @konstantinospascal1892
    @konstantinospascal1892 3 года назад

    Great explanation, very important to differentiate between a shell and a terminal. If anyone wants to answer, are console and terminal terms used Interchangeably? While there might have been differences historically, long time ago, are they pretty much used as synonyms nowadays?

  • @yash1152
    @yash1152 2 года назад

    3:39 "windows terminal - OSS"
    hey, umh, would u suggest using it? i mean from data collection perspective or such? i dont know, just wanted to ask this.... my lack of trust on MS 😅

  • @dazecm
    @dazecm 3 года назад

    Being a newcomer to all this I was hoping that using Windows Terminal I'd be able to configure a toolchain to monitor serial port activity without having to resort to PuTTY and hopefully remain in VS Code integrated terminal land. After much searching, I cannot find a solution and wondering if I still do not quite get all this terminal, console and shell business :)
    The impetus for this is I'm currently fooling around with the MXChip and I was hoping to get around the current bugs in the VS Code Arduino extension that prevent me from selecting a serial port (I have to manually edit Arduino.json) and the errors I get when trying to use Arduino extension's 'Open Serial Monitor' feature. These bugs make following the MXChip tutorials on Microsoft IoT Docs quite frustrating for a noob. I usually end up back in PuTTY or alternatively using Azur IoT CLI commands to see the telemetry coming from the MXChip.
    I stumbled across this ConPTY discussion below and was hoping that this is being worked on to bring interactively monitoring of serial ports to Windows Terminal. Any thoughts on this?
    devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/

  • @tims.227
    @tims.227 4 года назад

    Hi Scott, thank you for your Videos, especially the video about git helped a lot. Is there a way that you could explain make and makefiles and how to set up bigger C/C++ projects?

  • @ludwig9601
    @ludwig9601 4 года назад +1

    Very cool channel!
    I got an error. "Found a profile with an invalid "icon". Defaulting that profile to have no icon. Make sure that when setting an "icon", the value is a valid file path to an image."
    Workaround for me was to copy the icon image to pictures folder and referencing to that one instead.

    • @strandloper
      @strandloper 4 года назад +2

      I use a background image for my Ubuntu shell and put the image in the %LOCALAPPDATA%/Packages/Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe/RoamingState folder. I found that somewhere with a search.

  • @lemurza5236
    @lemurza5236 2 года назад +1

    I though WSL was great, it actually made Windows usable. Until I changed to a corporate company that requires us to be behind a VPN. WSL2 just does not work at all behind a VPN. Windows just isn't it.

  • @xenocampanoli815
    @xenocampanoli815 4 года назад +1

    Wow! I used to use a Z19!

  • @ptu15
    @ptu15 4 года назад +1

    can you put links from your blog into description? ;)

  • @strandloper
    @strandloper 4 года назад

    I never got into Cygwin; tried it but it never took. Instead I have used a few of the tools from the UnxUtils collections for many years. In my Windows terminal I have created profiles that let me open tails of log files I often monitor in tabs using the following (tail is tail.exe from UnxUtils).
    "commandline": "cmd /c tail -f C:/logs/sample.log"

  • @ianpan0102
    @ianpan0102 4 года назад +1

    Please explain the wallpaper Scott!! (btw great video :-) )

    • @shanselman
      @shanselman  4 года назад

      Go to settings and backgrounds. You can set it to change every 1 min

    • @ianpan0102
      @ianpan0102 4 года назад

      @@shanselman gotcha, cheers!

    • @strandloper
      @strandloper 4 года назад

      @@shanselman I never even noticed the changing backgrounds; had to re-watch to see what they're talking about. I guess it's because I don't care what's on the desktop; for years one of the first things I did after installing was making the background solid black, but these days I don't even bother. If I can see the desktop it just means I don't have enough windows open. I don't put files on the desktop and my only interaction is to periodically clear off the shortcuts that installers have put there.

  • @hemanthkotagiri8865
    @hemanthkotagiri8865 4 года назад

    I've commented on the previous video as well, please improve the volume of your voice. It's quite low. Other than that, this video is perfect!

    • @shanselman
      @shanselman  4 года назад +1

      Hemanth Kotagiri weird. I turned this one up very high. I’ll check again.

    • @strandloper
      @strandloper 4 года назад

      @@shanselman Watching a lot of RUclips has made me used to adjusting volume for different videos; yours tend to be on the quieter side, though this one is no quieter than usual. Quiet is better than ear blastingly loud; I hate it when you start a video and get blasted.

    • @hemanthkotagiri8865
      @hemanthkotagiri8865 4 года назад

      @@shanselman I think it's okay. There's a difference from the previous videos, but quite subtle to notice. This is better as Steve says.

  • @embbov85
    @embbov85 3 года назад

    How do I get multiple tabs in PowerShell like he has? Also: Does for example Ubuntu or Cygwin work with the text editor in Visual Studio Code? For example Python. (I'm on Windows)

    • @yash1152
      @yash1152 2 года назад

      u dont get multple tabs in powershell 😅. rewatch the video

  • @wingedrhino33
    @wingedrhino33 4 года назад

    None of these various linux-like-environment-for-windows tools let you run regular GUI apps do they? My mom has a windows laptop (unfortunately, I'm her designated sysadmin) and I'd like to get Kexi on WSL2. There doesn't seem to be a simple way of doing it! There isn't systemd either.

    • @shanselman
      @shanselman  4 года назад

      Yes, we have GUI support coming in WSL2 (Google it) but you can hack it Today!

    • @wingedrhino33
      @wingedrhino33 4 года назад

      @@shanselman nice! And also a systemd based init I hope?

  • @TeamJetstreamJess
    @TeamJetstreamJess 4 года назад +1

    Is there any Windows Terminal equivalent of typing cmd in the address bar of Windows Explorer? That would be very nice...

    • @shanselman
      @shanselman  4 года назад

      Yes “wt” from the run dialogs.

    • @TeamJetstreamJess
      @TeamJetstreamJess 4 года назад

      @@shanselman Thanks for that! However whilst typing wt in the address bar of Windows Explorer does indeed open Windows Terminal, the path isn't set to the address bar path. However, this blog post has the answer: www.meziantou.net/opening-windows-terminal-from-the-explorer.htm.

  • @spuriustadius5034
    @spuriustadius5034 3 года назад

    I really like windows terminal, but now I wonder... is there any reason to ever bother again with cygwin or git-bash now that we have WSL/WSL2? We literally have a linux distro at our fingertips, we can apt-get stuff and don't need to use that awkward package manager from Cygwin anymore. Is there any reason to use Cygwin still ? Same with git-bash, why use that when you can apt-get git on ubuntu and just use that?

    • @duykynguyen7278
      @duykynguyen7278 Год назад

      I'been using CW since 2000 in 2+ decades and also trried WSL and found CW is behave better than WSL or I probablytreat WSL as CW ??

  • @yash1152
    @yash1152 2 года назад

    0:21 TTY = TeleTYpewriter

  • @divukman
    @divukman 4 года назад +1

    I just installed cygwin on my win machine, screen, and few other apps. Using it instead of cmd or Powershell.

  • @jazzochannel
    @jazzochannel 9 месяцев назад

    click like if you learned nothing but still watched the whole video!

  • @SuperTuNiX
    @SuperTuNiX 4 года назад

    Scott where do you find the time man.

    • @shanselman
      @shanselman  4 года назад +4

      When the kids are asleep!

  • @vg-hg3vz
    @vg-hg3vz 4 года назад

    How did you got those wallpapers can you please share the link

    • @shanselman
      @shanselman  4 года назад +2

      Sure it’s this theme www.microsoft.com/en-us/p/pride-2020-flags/9pk6dd3shc26?rtc=1&activetab=pivot:overviewtab