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

preview_player
Показать описание
Surely you've heard other talk about stderr or "Standard Error". Similarly there is "stdout" or "Standard Out". But what do they mean. What are those numbers and what is redirection? Ever heard of /dev/null? This video is all about the different output streams in bash and how you can manipulate them to your advantage
Рекомендации по теме
Комментарии
Автор

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

tayeenhossain
Автор

Explanation was superb! Thank you so much :)

Joshikha
Автор

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

momo-dmrw
Автор

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

SeadoooRider
Автор

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

lilbob
Автор

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

soufianta
Автор

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

beaupersoon
Автор

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

kAht
Автор

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

grim.reaper
Автор

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?

soufianta
Автор

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

RELANDREL
Автор

0:50 an Indian scammer writing a windoz wirus

pushqrdx