What is stdout, stderr, /dev/null and redirection? | #4 Practical Bash
Вставка
- Опубліковано 4 лют 2025
- 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!!
That terminal emulator palette is beautiful. Powerlevel makes it extra sophisticated.
Thanks it’s „Solarized“ in case you were wondering. Should be available for all common terminal emulators.
Explanation was superb! Thank you so much :)
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
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.
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?
man that s a diamond explanation
I really liked your theme. Can you make a video about it?
Hi. Why redirecting 2>&1 if stream 2 is echoed on the screen anyway?
i understand standin stdout and std error, but still dont understand why >&2
Can you please link to your vim/powerline/bash configs, they look pretty neat 🤩
Thanks! Sure you can find them all in here: github.com/etiennedi/dotfiles
looks amazing
when you say /dev/null at 3:09 you sound like Gru from despicable me
great teaching!
Great videos! Thank for making these, are you on Twitter?
Thanks! So far only with my personal account (@etiennedi), but if this channel keeps growing I might also add one for kubucation ;-)
Tx. Leveled up :)
i think this video should've come after you explained curl
Fair point, curl will come soon!
0:50 an Indian scammer writing a windoz wirus
dislike for light theme in editor
Upvote for very strong feelings about color themes
@@kubucation That made my day.
@@kubucation lmao