Bash exit codes & command chaining | #1 Practical Bash

Sdílet
Vložit
  • čas přidán 10. 07. 2019
  • Ever wondered what exit code 0 or exit code 255 means in the terminal? This first video of the brand new "Practical Bash Scripting" series will teach you all you need to know about exit codes. Having understood bash exit codes you can make use of command chaining using the && and || operator. And - as with every Practical Bash video - I'll show you a real-life example of where this comes in handy!
  • Věda a technologie

Komentáře • 23

  • @nctram
    @nctram Před 4 lety +7

    The most underrated YT channel. You are doing a great job, Sir. Thank you so much.

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

      Thanks a lot. The Channel is still tiny, yes ... but it’s also growing. Interesting times ahead.

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

    love it ! very clear YT, I was led from your "how Https work? ", the best ssl/https YT so far? thanks a lot ! keep going !

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

    For the off chance that anyone reads the comments; the reason 0 means success and anything else means failure is because generally things can work in One Way, but not work in Infinitely Many Ways - and it may be interesting to know which one it is this time.

    • @kubucation
      @kubucation  Před 4 lety

      Great comment. I read it, I’m sure others will too :-)

  • @anushams4196
    @anushams4196 Před 2 lety

    neat explanation, helpful, thanks!!

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

    lots of claps to you man ... Keep going and yes keep it short and sweet

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

    Very usefull ternary operator bash like this
    # test -f text.txt && cat text.txt || echo "there is no text.txt"

  • @108ahah
    @108ahah Před 3 lety +1

    i like your videos.

  • @theowl2
    @theowl2 Před 3 lety

    Thanks ❤️

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

    You just "KISS"ed (Kept It Short and Sweet) it.....😉

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

      Thanks! This series will have plenty of short videos, usually between 5 and 8 minutes that focus on bash or terminal related topics. In the beginning there are some essentials of course, but who knows where the journey will lead us to. So far I have planned the first 5 videos, but I don't think there's an upper limit to this series.

  • @amoh96
    @amoh96 Před rokem

    is this coruse bash for noob ? can i study this in 2022 ?

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

    How do i exit bash?

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

    Holla holla get dolla question mark
    Great video thank you

  • @KrishnaDasPC
    @KrishnaDasPC Před 4 lety

    Is bash development dead?

    • @kubucation
      @kubucation  Před 4 lety

      How do you mean that? Why would it be dead?

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

      @@kubucation I mean the development of bash. New features. Like php 5 to 7 now. I use bash for backup scripts but couldn't find inbuilt support for associative arrays json and many other modern features.

  • @johnny-mnemonic13
    @johnny-mnemonic13 Před 3 lety

    this video sucked,, didn't get into using exit codes in depth. Started off right but then veered into operators. Fail.

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

      Thanks for your feedback. Feel free to list exit-code related topics you were missing. I can always add an additional more in-depth video later on.

    • @johnny-mnemonic13
      @johnny-mnemonic13 Před 3 lety

      @@kubucation well what I was really confused is why use exit codes within bash script. Then when and where to use them within the script as well. I did some more searching and I think I got it, so I'm good with that. Now I just learned that the RHCSA exam got updated to include containers? I'm like geezer, there's hardly any good material covering these so I'm f'd if I don't find something soon as I am like 80% ready for the exam. If you can cover this to the exam requirements you got yourself a subscriber and likes.