How do you use the Command line? PowerShell, cmd, bash? - Computer Stuff They Didn't Teach You #13

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • How do you use the Command line? PowerShell, cmd, bash? - Computer Stuff They Didn't Teach You #13
    This gentle 101 video explains the command line in THREE SHELLS at the same time. The DOS/Windows Command prompt (cmd.exe), PowerShell, and bash on Ubuntu Linux.
    Thanks to www.powershellmagazine.com/ for the use of their PowerShell Logo!
    computerstufftheydidntteachyou... for the whole playlist
    00:00 Introduction
    01:00 The Four Shells, DOS, PowerShell, Bash/Ubuntu
    02:00 Stuff! Command not found
    04:45 Alias
    09:00 Prompts
    10:30 cd and moving around
    13:00 ls and dir
    13:15 touch
    13:50 man pages
    15:00 history
    17:00 wildcards
    20:40 cat and type
    21:15 echo
    23:30 shell differences and quotes
    25:10 grep and findstr
    28:00 tasklist, ps, get-process
    31:20 sudo
    32:45 Conclusion
  • НаукаНаука

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

  • @shivakumarpendem7871
    @shivakumarpendem7871 3 года назад +61

    I really really Like this series Scott . I Learned a lot from these videos Please keep this going !!! 💚

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

      I really really REALLY like this, its an amazing idea.

  • @shreyasjejurkar1233
    @shreyasjejurkar1233 3 года назад +30

    Pro tip - Use Ctrl + L to clear the terminal!
    For new people, not for you Scott, as you might already know it! 😅😅😅

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

    just want to say you Scott, that software developers with 10 years of experience also watch your video series "Computer Stuff They Didn't Teach You" and also found it usefull. Don't think it's only for beginners :)

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

    Best thing I stumbled across is in Powershell, the 'up arrow' for previous commands is remembered even through shutdowns!

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

    I really appreciate how you don't assume the viewers to know a lot of stuff. You either explain it, or tell what to Google, which makes it really easy to follow along. Thank you very much, Scott!

  • @Visiontunnel
    @Visiontunnel 3 года назад +3

    Dude, I love your content. It's like the father I never had patiently and nicely explaining technical subjects in a way that doesn't make it feel like I need 30 years of experience to understand.
    Keep it up!

  • @henry.favela
    @henry.favela 3 года назад +1

    I just want to say how much I appreciate this series, it has helped me a lot. Got pulled in with the miniseries about git and now I'm eagerly waiting for these gems. Thank you Scott!

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

    Early on in my career one of the devs I looked up to followed your blog, and now here I am watching your videos many years later [even if I already know the material being covered]. It's oddly relaxing.

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

    What an incredibly thoughtful series of tutorials. I must say incredible job Scott!

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

    I can't get enough of Scott's terminal/console/shell content. I often found these topics a bit of mystery.

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

    I love those "Hanselman friendly neighbourhood" videos, they are well done and open minded, very inclusive! This is a quality we rarely see in IT world! Keep it up! Refreshing! And even though I tought I wouldn't learn anything new on shells and command WIndows (35+ years of experience on computer) I did learn a few tricks! Thanks!

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

    I really enjoy your videos. You display a great depth of technical confidence. I have learned a great deal watching and re-watching your videos! Great work Scott and keep em coming!

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

    Thank you Mr. Scott Hanselman for this Series. i learned a lot of things.

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

    Learned a lot of new things from this series of videos. Please keep uploading videos in this series, they're super useful! Thanks.

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

    I've just find your channel, but I already love how you explain things. I must deep-dive more of your videos. Great job!

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

    Really cool Scott! Randomly stumbled upon these, will definitely stay for more

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

    Great series Scott. I've been working as a developer for 30 years and you're covering stuff I've never come across.

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

    Absolutely love this series Scott. Major help for my last year of CS! Keep up the good work :)

  • @gonzalocorchon6509
    @gonzalocorchon6509 3 года назад +2

    Hi Scott, thanks for all these videos. Could you make a video about multithreading the right way in C#?

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

    Thank you scott. Loving the series. Want more !!

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

    Do more of these hands-on videos, thank you Scott!

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

    It's a really good series and I enjoy every single episode. It helps me a lot. Thank you

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

    Thanks Scott! Keep it going - excellent training videos! 😃

  • @sayednaser
    @sayednaser 3 года назад +2

    Even if I has some experience with the topics, I always learn something new from your vids, Thank you sir.
    Suggestion : the realm of environment variables.

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

    You are awesome Henson. You do great stuffs. Information you give on youtube is what 99% computer science aspirants miss. Than you so much Henson. Stay Safe, Stay Blessed.

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

    Using a CLI is an important computing skill to learn and it's really not that hard. By the way, I love how soft spoken and calming this video is!

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

    Love this series Scott. Please keep making them ;)

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

    Hey Scott, great series. For someone who first dipped their toe into programming when MS-DOS was the OS for PC's and Windows V1.0 was something quirky that you found on a 5.25" floppy the command line was pretty much all you had between you and "Assembly" for getting things to happen on a personal computer. It's great to see the command line getting a little love. For future episodes how about de-mystifying RegEx? or maybe "Fun things to do with grep" When I was at school we didn't have computers so all of this fits the brief 🙄

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

    omg this tutorial is flawless. you are incredible sir.

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

    I really liked this video, thanks. Good touch with carnac.

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

    Really useful stuff Scott. Some suggestions for topic, maybe you already have it in your pipeline:
    1. Code editors v/s IDE - Code, Visual Studio, etc. etc.
    2. How does build work - writing build tasks etc.

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

    This is the perfect solution to a problem I was having, I appreciate the effort put into this series, Ive recommended it to other students in the same degree path as I as they dont teach us all of this in university! ha

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

    Finally, there is a mess in that room :) I've been very jealous of your workspace mainly because it's very large and the sort of space I'd kill to have, I've always admired how tidy and ordered the room is (I appreciate the bench may not always be), but there is a slight mess (like a normal person) down by your bookcase. Having said all that I'm a long time viewer of your content I try to watch it all even if I know what you are talking about as there is always something small to learn. Keep on keeping on as this series is so valuable, you are an example to us all.

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

      ;) I'm upgrading my network and I have a lot of packages.

  • @patrickc.6183
    @patrickc.6183 3 года назад

    Great videos, we love your channel!

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

    Love this series :)

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

    Great learning sir.... You are intellectual

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

    Awesome! Like every time! Great work scott.
    Love from planet earth.

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

    loved this. Scott could you break down the shell language with all the hyphens acronyms and what not such that it becomes more natural to use this weird terminal stuff more casually and maybe be help us finding out what options and commands to look out for.

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

    You are the Bob Ross of command line.

  • @scotto-robotto
    @scotto-robotto 3 года назад

    Great video. Could you do a follow-up that takes a closer look at bash, perhaps? Or, in keeping with the theme of this video, the various switches and their meanings in each shell.

  • @Thewoxter
    @Thewoxter 3 года назад +8

    You are the Bob Ross of code.

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

    You rock Scott. Keep going.

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

    This series is very cool

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

    What a great video!

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

    And one of the few people who make powershell interesting!

  • @geoaxis
    @geoaxis 3 года назад +2

    Thanks Scott for making this great tutorial. Love this series. I would like to point out a correction for your followers both oh-my-zsh and starship are not really shells but tools that work with shells (oh-my-zsh or or oh-my-fish for themes etc in zsh/fish and starship for prompts). I bet you already know that. I currently use powershell with oh-my-posh and posh-git following your other tutorials.

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

      Indeed. I do try to simplify but this is a good point!

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

    Hi Scott, greetings from Switzerland! I came across your channel not a week ago and it's helped me a ton. This might be out of scope compared to your other content, but I was wondering if you would ever do a video about composition and inheritance OOP. I just came across composition today and I'm completely overwhelmed! I've been so stuck on inheritance (I'm a beginner), I can't understand composition at all. It seems like there's some conflict online when I read about it, too (people alledgedly misrepresenting composition as multiple inheritance, for example). I think with your teaching style, you could really break down in a clear way. Anyway, I wish you a great day.

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

    Hey Scott great content in this series, I really like the way you explain things! You are an awesome educator!
    I would like to suggest a video about a recommended development workflow with WSL 2 based engine for Docker instead of Hyper-V backend. Where should I keep my code, on the windows file system or on the Linux filesystem? I tried to use it once but because I wasn't quite sure what was happening under the hood and my docker container took a really long time to build I switched back to Hyper-V. I would also like to know what are the pros as well as if there are some limitations on using WSL 2 based engine for Docker instead of Hyper-V.
    Keep up the good work! Just subscribed :)

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

    FYI: cls works in the command prompt too (aka DOS). Thanks for the series!

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

    Scott can you please do a video on Log Parser 2.2 and how to write a log parser query?

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

    Basic stuff but well explained! keep going. What about something related to Ram usage? I keep dealing with my 8gb laptop trying to survive with Edge, Visual Studio and node running...and that´s too much for it. Something like what I can disable in my windows 10 while I program. thx!!!

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

    Great video, missed most of the stream because I got the alert to late. Something that I have been struggling with is creating batch FOR loop script to do things like moving files with similar names into folder or zipping them up. I always want to go back to VBscript to do this however it annoys me that I can completely understand how it works in DOS/Windows command line.

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

    Sometimes I think I might one day reach the levels of Hanselman.. then stuff like 10:15 happens. Brilliant.

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

    Having myself db type 1 you could imagine my surprise when you told about having your blood sugar in your command prompt ! 😱 wow

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

    That was pretty cool as typical. I am s Windows guy but sometimes drop into Ubuntu to unzip and a few free tools not available on Windows.
    I would really like you to do a session on the Linux (or Ubuntu) file system for beginners and Windows users. I really struggle to get my head around understand and navigate with .etc, home ,mnt, use. What is a mount point? I know there are many guides on the web but you are good at explains conceptual models.

  • @IgorGuerrero
    @IgorGuerrero 3 года назад +5

    Funny I'm teaching my girlfriend how to code and she got stuck in an appendix cause she felt the command line was very important to continue...
    Now why isn't they chapter 1 of programming? It also reminds me I didn't get that knowledge in college either, many of my classmates were very lost on the terminal.

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

    Hello @ScottHanselman good morning,
    Is there a good book you could recommend for CICD with AZ DevOps? The MS docs are good but too superficial

  • @QckSGaming
    @QckSGaming 3 года назад +3

    hey we "learned" that in school! actually they were presented as mysterious incantations that just do shit that we should memorize so ehh

  • @Sagar_Singh.
    @Sagar_Singh. 3 года назад

    This series is great. Now, how do we create a new file in command prompt?
    like an alternative of touch or ni commands in bash and powershell .
    i mean you can use command notepad filename.txt(in cmd) but then it opens gui, so is there a way?
    Thank you

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

      You can type “copy con foo.txt” then press Ctrl-z

  • @SO-dl2pv
    @SO-dl2pv 3 года назад

    Hi Scott, actually in win command line, you can use doskey to create aliases instead of writing bat files, e.g:
    doskey clear=ls
    You can also make that permanent by adding some stuff to register.

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

      Oh! Lovely. I forgot that was still around! Good stuff.

    • @SO-dl2pv
      @SO-dl2pv 3 года назад

      @@shanselman Thank you for the reply. Sorry, I wrote that comment on bed, it has some spelling mistakes, if edit it I will lose you heart :D .

  •  3 года назад

    I'm very used to command lines (iterm2 in particular), but one thing I haven't found yet is how to edit a command. So let's say i type in a looooong command and I press enter, and I realize I have a typo in the middle of the command. I press UP to re-enter it, and then I press Escape+B, Escape+B, and so on, until I reach the word that I want to edit, and then I just move right to hit the right character. Is this the most efficient way?

  • @user-gs2rh1ch7e
    @user-gs2rh1ch7e 3 года назад

    I had Linux and cmd courses at my uni

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

    petition for Scott to say "And as the kids say - Smash that Like button" in every video.

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

      PLEASE LET'S MAKE IT HAPPEN

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

      This is way more useful and entertaining than the screaming, pretentious millennials :D

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

      lol deal

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

    How can you show what you are typ on terminal? Is a kind of plugin or app you just used?

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

    7:00 Indeed, and indeed... Although I would like to learn more about PS...

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

    Im a new developer and love watching these in bed. Thanks Scott.

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

    This should have been the first video of the series..

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

      True! Maybe I can renumber them

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

    What program do you use for putting windows into 4 frames?😌

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

      That’s the Windows Terminal and I use it’s window panes feature!

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

      @@shanselman oh thx! I was also inspired on your video about fancy zones, but I am getting an error when installing on my windows machine. Is it not supported on windows?😊

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

    Maybe it is an issue with my headphones, but I heard DISTORTION several times, despite your voice is so calm .

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

      Thanks, I'll check my mike. I have some challenges with my levels, perhaps I was overdriving the mic.

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

    Sir one session on zip gzip bzip brottoli and compressions please.

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

    As always I'm sharing those videos both linkedin and twitter. I have one request i don't know it is relevant or not. Could you please explain how computers work, including XOR, AND gates, processors, memory to assembly or machine code, compilers, C and high level programming languages in one video. I mean the flow of hierarchy. I hope I am clear. :( Another suggesion is about best coding practices that improves performance of app. It is so wide but suggestion is suggestion! thank you man, you're great. I will do my best to take you to 100K subscribe. I learn a lot !

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

      www.agner.org/optimize/instruction_tables.pdf
      instlatx64.atw.hu/

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

    This should make it to Netflix. @scott. xD

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

    u remind me of Terry Davis, just without the mental health issues. Very Smart Individual

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

    So there is no alias in Command prompt.

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

    This is minority report in 2020. No Kinect UI, but this, video editing skills, for learning.

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

    Don't want to be that guy hehe, ignore this. Just one thing, Oh My Zsh is a plugin framework for zsh and starship is a prompt, just like Oh my Posh

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

    He's right and all that religious jazz about which shell is the best is kind of unnecessary but you should learn Powershell.

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

    I work in UNIX and I don't have a $ prompt, I have a # prompt.
    # rm -r /* can just ruin your day!

  • @suriyas1456
    @suriyas1456 3 года назад +7

    r/unintentionalASMR

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

    Hey I'm the 1000 person who liked your video. Do I get a cookie now and please not 01 type of cookie lol