What is stdout, stderr, /dev/null and redirection? | #4 Practical Bash

Sdílet
Vložit

Komentáře • 27

  • @tayeenhossain945
    @tayeenhossain945 Před rokem +1

    How did I not stumble into your channel years ago is beyond me. Amazingly explained!!

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

    Great and simple as always :)

  • @Joshikha
    @Joshikha Před 3 lety

    Explanation was superb! Thank you so much :)

  • @Mado44555
    @Mado44555 Před 2 měsíci

    man that s a diamond explanation

  • @soufianta8374
    @soufianta8374 Před 9 měsíci

    Hi. Why redirecting 2>&1 if stream 2 is echoed on the screen anyway?

  • @soufianta8374
    @soufianta8374 Před 4 měsíci

    Hi, why does the echo command of your script (that outputs the function) isn’t the first thing echoed to screen even if functions body redirects to stream 2?

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

    I really liked your theme. Can you make a video about it?

  • @piratevv
    @piratevv Před 2 lety

    great teaching!

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

    Why is echo "the current version of foo is $(get_latest_version 2>&1 1>/dev/null)" print out "Resolving Host" etc instead of nothing? Isn't that they are redirected to stderr inside the function by 1>&2 and then they are redirected to stdout and discarded by 2>&1 1>/dev/null? or I am getting the order wrong here? Thanks

    • @anuragshukla8905
      @anuragshukla8905 Před rokem

      I think the commands are running one by one in command substitution so during the redirect 2>&1 the output is redirected and printed and then the next command runs which is whatever is left in stdout is to be discarded.

  • @momo-dm3rw
    @momo-dm3rw Před 3 lety

    That terminal emulator palette is beautiful. Powerlevel makes it extra sophisticated.

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

      Thanks it’s „Solarized“ in case you were wondering. Should be available for all common terminal emulators.

  • @example101
    @example101 Před 2 lety

    Tx. Leveled up :)

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

    Great videos! Thank for making these, are you on Twitter?

    • @kubucation
      @kubucation  Před 4 lety

      Thanks! So far only with my personal account (@etiennedi), but if this channel keeps growing I might also add one for kubucation ;-)

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

    when you say /dev/null at 3:09 you sound like Gru from despicable me

  • @grim.reaper
    @grim.reaper Před 4 lety +2

    Can you please link to your vim/powerline/bash configs, they look pretty neat 🤩

    • @kubucation
      @kubucation  Před 4 lety

      Thanks! Sure you can find them all in here: github.com/etiennedi/dotfiles

    • @kamalchan9756
      @kamalchan9756 Před 2 lety

      looks amazing

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

    i think this video should've come after you explained curl

  • @pushqrdx
    @pushqrdx Před 3 lety

    0:50 an Indian scammer writing a windoz wirus

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

    dislike for light theme in editor