And that's why I'm proud of myself... I never think I know everything. I'm a linux administrator as part of my day job and I think I got a good amount of experience with the command line but reading the title of the video made me think "Maybe I'll learn something new about stdout and stderr". I wasn't wrong. "find /etc -type f > ~/results.txt 2> ~/errors.txt" Never knew or thought about splitting the streams. THANK YOU FOR THAT! So useful.
When I am introducing someone to the command line this is my go to example of where the command line interface still wins out over a graphical program. The beauty is the application(s) being used don't need to be changed in any way as it is the shell that handles it all for you (providing the applications output to stdout and stderr properly). I once worked with someone that was very "ugh I hate the command line, it's not the 1980s anymore, GUI is always better" so I asked then to do just what you did. Output valid results to one file and errors to another. The only way he could do it was manually and by actually looking then copy/paste the errors to a separate file as none of his graphical tools could filter output (they would just save everything to a single file) so would require the application itself be updated to include such functionality. It didn't totally win him over but it at least shut him up as he knew I would always bring that example up if he ever went on a "GUI is better" rant again 😂Truth is you use the right tool for the job, sometimes that *is* a GUI application but sometimes it's a CLI one so knowing how to best use the tools available is important. Great video 👍
I was expecting you to talk about how to output both stdout AND stderr to a file. For anyone wondering we do it like this: find /etc -type f > combined.txt 2>&1
You are teaching style is amazing brother ✨✨✨ one love from Tanzania, thanks for sharing, your tutorial are highly recommended to anyone interested with learning Linux.
Yeah it’s really detrimental for people looking for high quality content like this. For example, I can still see dislikes right now (due to gradual rollout), and this video has only 1 dislike with 412 likes.
Could do your testing while using a live cd, nothing to break (do not mount the installed system) expect a follow up about what todo with $? in scripts ...
I noticed that running `find /etc/ -type f 2> /dev/null` still prompts 1 when running `echo $?` As always, awsome content! These tutorials are on my top-list!
Hey, Love your topic but here is an advice for you, Don't get mad, it's up to you to take it. Please don't make you videos like a lecture in a class room, make then light and make it fun for other to learn, Don't be a teacher from year 1890, be cool.
I actually like Jay the way he is, direct and to the point (No clowning around) plus he is very clear, to me is really fun... Perhaps you might like the arrogance of Luke Smith videos... I don't.
@@AriannaEuryaleMusic never heard of Luke Smith... let's see...No you are not getting the point... he's been to formal....I never said that I don't like this content or I didn't understand the point... he's good in explaining but All I am saying is that he should be a little less formal, Read a script in way you are are talking to a person in front of you not like a robot.
@@AbdulRafay-vi6hz Why "Should he"? You don't have the right to say how Jay "should" run his channel Just because you don't like the format, and you are the one missing the Point, This channel is about LEARNING, if you don't like it, just go somewhere else, there are many Linux channels, and YOU SHOULD be thankful, This Channel is teaching all this stuff for free. I repeat, if you don't like it, don't watch this channel.
@@AriannaEuryaleMusic chill out...mad man.... It's social Media and it's my right to give advice it's up to Him to take or not . I'm forcing him... second the advice is for Jay not for you..so buzz off.
I've been using linux for years and never really understood this. Thank you so much!
Same here - I was grappling with it just a couple of days ago, but Jay explains it perfectly.
And that's why I'm proud of myself...
I never think I know everything.
I'm a linux administrator as part of my day job and I think I got a good amount of experience with the command line but reading the title of the video made me think "Maybe I'll learn something new about stdout and stderr".
I wasn't wrong.
"find /etc -type f > ~/results.txt 2> ~/errors.txt"
Never knew or thought about splitting the streams.
THANK YOU FOR THAT!
So useful.
When I am introducing someone to the command line this is my go to example of where the command line interface still wins out over a graphical program. The beauty is the application(s) being used don't need to be changed in any way as it is the shell that handles it all for you (providing the applications output to stdout and stderr properly).
I once worked with someone that was very "ugh I hate the command line, it's not the 1980s anymore, GUI is always better" so I asked then to do just what you did. Output valid results to one file and errors to another. The only way he could do it was manually and by actually looking then copy/paste the errors to a separate file as none of his graphical tools could filter output (they would just save everything to a single file) so would require the application itself be updated to include such functionality.
It didn't totally win him over but it at least shut him up as he knew I would always bring that example up if he ever went on a "GUI is better" rant again 😂Truth is you use the right tool for the job, sometimes that *is* a GUI application but sometimes it's a CLI one so knowing how to best use the tools available is important.
Great video 👍
I was expecting you to talk about how to output both stdout AND stderr to a file.
For anyone wondering we do it like this: find /etc -type f > combined.txt 2>&1
not working on raspberry pi, "> combined.txt 2>&1" does work.
@@jyvben1520 yeah it's possible some shells parse it differently, and I suppose that is the correct way of doing it. I'll edit my original comment.
I'm here because of the bandit7 game from OverTheWire. I never thought learning Linux would be so interesting. Great video.
You are teaching style is amazing brother ✨✨✨ one love from Tanzania, thanks for sharing, your tutorial are highly recommended to anyone interested with learning Linux.
Very nice explanation. Thank you for your teaching method in the simplest way.
Another awesome video Jay, you are a great teacher. I would love to see a beginners guide to regular expressions. Thanks!
This was incredibly clear. Thank you for the content!
Great vid as usual. Any chance of a video on bash special params: $*, $@, $#, $$, $!, $?, $-, $_ And how they are used?
You miss 2>&1 to redirect both output (stdout) and errors (stderr) to same file like find /etc/ -type f > ~/all_results.txt 2>&1
Thank you! I needed clarification on this!
YOUR EXPELTAION WAS SO CLEAR AND GOOD.WAS EASY TO UNDERSTAND !THANKS
Thank you >> GREAT TUTORIAL
Awesome as always Jay! Thanks!
Love these vids that teach me some of the basics we keep forgetting well done and thank you
Great tutorial again. Thank you! Your videos have helped me with work on a daily bases
thank you !
Although I know most of what you're talking about, I enjoy watching the explanation
Very good explanation ,really very good teacher
Very good video. More details about standard input would be great.
Great information. Thank you, Jay.
This is amazing🔥
you are a godsend
You’re amazing Jay. Thank you for all of your videos. It’s really the best
No. YOU are amazing.
Great video, but why disable dislikes? -- Update: nevermind I see youtube did it.
Yeah it’s really detrimental for people looking for high quality content like this. For example, I can still see dislikes right now (due to gradual rollout), and this video has only 1 dislike with 412 likes.
it's because UA-cam is run by incompetent fools
@@fullstack_journey Like u
They did it because of the massive amount of dislikes from a Biden speech... Js..
Awesome! Thank u!
Thank you very much for this wonderful lesson.
Nice and clear explain, thank you so much! :))
Thank you so much
Thanks for a great clarification!
Excellent, as always!
Amazing!
Thank you so so much !!!!
Great work! Thank you
thx
This topic is seriously useful 👏.
I always saw and don't understand 1> 2> in GitHub repo sh file 😂
Could do your testing while using a live cd, nothing to break (do not mount the installed system)
expect a follow up about what todo with $? in scripts ...
Is there any way to catch stdin 0 and place it into a file like stdout 1 and stderr 2?
I can't thank you enough for these videos sir.
I am very interested in Linux. while seeing the > /dev/null i am very confusing what is it ? Now i am fully understand . Thank you
Hello Jay, can you make a series based on real-time project you have worked with? That would be really great.
Thank you.
so how do i actually use `stdin`?
Its useful thank you so much
0:38 how do I add a splash screen
as you mentioned about writing a script for sending an email for error or success. How do we do that ,where can I find such script? kindly help
magnificent videoo!! thxx
This man is smart. He knows some physics.
Does Linode have training modules ?
There's some being created right now, some of which by me :) Stay tuned...
@@LearnLinuxTV got it. Do you know what other websites have training modules ?
And what if you want to send stout and stderr at the same time to the same file without repeating the file twice in the command line?
See NJUL's comment.
find /etc -type f > combined.txt 2>&1
I am your subscriber / fan from Pakistan 🇵🇰
I noticed that running `find /etc/ -type f 2> /dev/null` still prompts 1 when running `echo $?`
As always, awsome content! These tutorials are on my top-list!
Jai shri ram sir i like your indepth technical skills. 🚩🇮🇳
$ Thanks
im one of the first
Comment
Are you doing meditation? i saw Buddha statue ...
Hey, Love your topic but here is an advice for you, Don't get mad, it's up to you to take it.
Please don't make you videos like a lecture in a class room, make then light and make it fun for other to learn, Don't be a teacher from year 1890, be cool.
I actually like Jay the way he is, direct and to the point (No clowning around) plus he is very clear, to me is really fun... Perhaps you might like the arrogance of Luke Smith videos... I don't.
@@AriannaEuryaleMusic never heard of Luke Smith... let's see...No you are not getting the point... he's been to formal....I never said that I don't like this content or I didn't understand the point... he's good in explaining but All I am saying is that he should be a little less formal, Read a script in way you are are talking to a person in front of you not like a robot.
@@AbdulRafay-vi6hz Why "Should he"? You don't have the right to say how Jay "should" run his channel Just because you don't like the format, and you are the one missing the Point, This channel is about LEARNING, if you don't like it, just go somewhere else, there are many Linux channels, and YOU SHOULD be thankful, This Channel is teaching all this stuff for free. I repeat, if you don't like it, don't watch this channel.
@@AriannaEuryaleMusic chill out...mad man.... It's social Media and it's my right to give advice it's up to Him to take or not . I'm forcing him... second the advice is for Jay not for you..so buzz off.
@@AbdulRafay-vi6hz I repeat, if you don't like it, GTFOH. period.
Thanks a lot
Many thanks.