No video

Linux Command Line Pipes and Redirection

  Рет қаралды 26,472

Engineer Man

Engineer Man

Күн бұрын

Pipes and Redirection is probably something you see a lot of people do a bunch and that's because it's a very common and essential thing in Linux. It's easier than you think to learn and master.
Hope you enjoyed the video!
Check out this code here:
github.com/eng...
Join my Discord server to chat with me:
/ discord
Check out some code on my GitHub:
github.com/rea...
github.com/eng...
Come visit us on Reddit:
/ engineerman
Other Social:
/ _engineerman
/ engineermanyt

Пікірлер: 66
@gbuwally6326
@gbuwally6326 4 жыл бұрын
I’ve been doing Unix for 30+ years and went into this thinking “what could he teach me?” Thank you for always high quality content.
@thingsiplay
@thingsiplay 4 жыл бұрын
I wonder how fast the redirection works with The new 128 core Intel Core i14-9942KX?
@isjav08
@isjav08 4 жыл бұрын
Great explanations! Some extra stuff &>/dev/null And being able to just write it fully 2>/dev/stdout 1>/dev/stderr
@trevorkruse449
@trevorkruse449 4 жыл бұрын
Great video man. One thing I would like to see more of is real world examples. But, that's just how I learn.
@ScottSteely
@ScottSteely 4 жыл бұрын
Thanks, Engineer Man. Pipes are really usefully for trying to chase down some of those pesky errors that only appear for a second then disappear.
@HadToChangeMyName_YoutubeSucks
@HadToChangeMyName_YoutubeSucks 4 жыл бұрын
Another example of redirect would be program1 1> out.result 2> out.err, which would give you the results and any errors in two different files.
@RichardBronosky
@RichardBronosky 4 жыл бұрын
I have been using everything you described here and I’m still glad I watched it.
@hitk002cloudfull8
@hitk002cloudfull8 3 жыл бұрын
you can also use prog1 &> file.txt to redirect both stdout and stderr to file.txt
@amarboldbatzorig7313
@amarboldbatzorig7313 2 ай бұрын
Great video. Straight to the point and clear examples.
@therealmaku
@therealmaku 3 жыл бұрын
great vids, pls do a video suggesting linux learning resources like books, courses, videos, etc. videos are well done and no bs, no fluff, this is much appreciated
@DailyBeatings
@DailyBeatings 4 жыл бұрын
Pipes and redirections are my favorite things about linux and *.nix in general.
@jumanjiwarlord
@jumanjiwarlord 3 жыл бұрын
🤯 aaaaaahhhh! I’ve been “aware” of pipes and grep for a long time but never understood them... this helped.
@sasakanjuh7660
@sasakanjuh7660 4 жыл бұрын
Hey EM, great video, as usual! I was hoping you will also touch on redirections with exec, I alway had a difficult time wrapping my head around that, for some reason :D
@kamildobrowolski143
@kamildobrowolski143 4 жыл бұрын
Hi Engineer Man - can you explain why the following piping doesn't print anything to the terminal? echo 'hello' | echo
@EngineerMan
@EngineerMan 4 жыл бұрын
This doesn't work because echo isn't designed to read from stdin. It's function is take a string supplied as arguments and output it to stdout.
@youssefelamrani7905
@youssefelamrani7905 4 жыл бұрын
I'm a big fan amazing video thank you, can you please do a video about graph theory in python using the Dijkstra algorithms like how to define a graph in python etc .. much appreciated
@Codester145
@Codester145 4 жыл бұрын
Great video, love the Linux and Python content!
@brainplot
@brainplot 4 жыл бұрын
Great video as always! I have a question though. Why would I use named pipes over anonymous pipes? Do they offer any convenience or are they useful in particular and rare occasions where anonymous pipes cannot be used? Asking because although I knew about their existence I've never had a chance to use them :)
@gbuwally6326
@gbuwally6326 4 жыл бұрын
Gianluca Recchia .signature was a common use of named pipes back in the day. An email program would take the content of ~/.signature and append it to the bottom of new emails. But say you wanted a random quote added to each new email? NAMED PIPES FIX THIS. You can write a program that takes a random quote and fits it into a signature block and then have it feed to a named pipe you happen to name ~/.signature. Now each new email has a fancy random snippet.
@DS-rd8ud
@DS-rd8ud 4 жыл бұрын
Have you done a video on process substitution, here docs and here strings? On a sidenote, I just discovered your channel and this is really interesting stuff. Keep is going, man!
@EngineerMan
@EngineerMan 4 жыл бұрын
Hey David, welcome.
@kickflipz
@kickflipz 3 жыл бұрын
Great reference video
@robc3129
@robc3129 4 жыл бұрын
Really informative and to-the-point video. Well explained too.
@SeamusHarper1234
@SeamusHarper1234 4 жыл бұрын
Really nice. Something made "klick" this time in my head.
@petehinch3871
@petehinch3871 4 жыл бұрын
Great tutorial as always. Thanks EngineerMan
@RichardGreco
@RichardGreco 3 жыл бұрын
How did you select only the carets in the text file when you added the additional caret at the end of the video? Great video!
@urugulu1656
@urugulu1656 4 жыл бұрын
but can i use named pipes to send the output of a command to two programs at the same time?
@linux_in_urdu486
@linux_in_urdu486 4 жыл бұрын
You are legend mate, thank you for such a great video content!!!
@johnm8358
@johnm8358 3 жыл бұрын
clear 2&>1 concise!
@electricow1
@electricow1 3 жыл бұрын
Is it true that piping a command to another is sometimes takes time to process, just like piping a watch command and awk it to filter the output, which is literally takes seconds to display. I found this case when i tried to make a monitoring script for my network devices by using fping to each of the hosts,
@tobortine
@tobortine 4 жыл бұрын
Why do you use the shebang "/usr/bin/env bash" rather than "/bin/bash" ? _(I'm genuinely interested to know if there's some advantage)_
@EngineerMan
@EngineerMan 4 жыл бұрын
What he said.
@ehcaning
@ehcaning 4 жыл бұрын
That was perfect. Thanks for this great content!
@Javier-ue5nt
@Javier-ue5nt Жыл бұрын
very good video, keep it up :)
@hobartspitz1029
@hobartspitz1029 2 жыл бұрын
Great video. Could you explain why commands with large files and many filters (> 10) bog down? In my case, the filters don't reduce the number of characters flowing thru the pipes. Is this because of how the filters are dispatched? How large are the intra-filter buffers? When I do the same thing on CMS/TSO Pipelines, it's hundreds or thousands of times faster. And it doesn't matter if I have 100s or 1000s of stages. What gives?
@MaartenVanDamme81
@MaartenVanDamme81 4 жыл бұрын
great refresher, thank you sir.
@oyaraouf
@oyaraouf 4 жыл бұрын
That was super helpful. Thank you so much.
@IND_Abhi
@IND_Abhi 4 жыл бұрын
how are your 128 cores performing i wonder it might have finished cinebench is 1 sec
@RichardBronosky
@RichardBronosky 4 жыл бұрын
Abhi Sec yes please!
@eritert
@eritert 4 жыл бұрын
I wish this was the first video on linux i watched
@SeamusHarper1234
@SeamusHarper1234 4 жыл бұрын
You probably would have been like: "What the hell is he talking about, i'll look for another vid that teaches me how to change the folder i'm in."
@eritert
@eritert 4 жыл бұрын
SeamusHarper1234 hahaha probably true
@cubodebits7721
@cubodebits7721 4 жыл бұрын
Hi E-Man!! I think it would be very interesting talking about centralised authentication/authentication solutions. SAML, Kerberos, etc
@user-nx8tz5tw3d
@user-nx8tz5tw3d 7 ай бұрын
good shares
@marcello4258
@marcello4258 3 жыл бұрын
Are you sure > is truncating instead of just making a new file and changing the link to the file?
@ElliyahuRosha
@ElliyahuRosha 4 жыл бұрын
Great explanation
@MsSoroar
@MsSoroar 2 жыл бұрын
Fantastic
@N0thingFR89
@N0thingFR89 4 жыл бұрын
and again : echo "You're the boss" > brian.engineerMan
@dawid_dahl
@dawid_dahl 3 жыл бұрын
Thanks a lot!
@jeanhirata1485
@jeanhirata1485 4 жыл бұрын
Really usefull thank u very much
@n3r0z3r0
@n3r0z3r0 4 жыл бұрын
More !!!!! :)
@ashantharindu8915
@ashantharindu8915 3 жыл бұрын
Hey, the lessons are great. Can you please speak a bit slower?
@jameshibbs6506
@jameshibbs6506 4 жыл бұрын
Code Link give a 404
@EngineerMan
@EngineerMan 4 жыл бұрын
Sorry about that, please try again.
How to use systemd to keep programs running
7:53
Engineer Man
Рет қаралды 27 М.
What is the Command Line? (Linux Zero to Hero 2022)
17:33
Engineer Man
Рет қаралды 13 М.
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 37 МЛН
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 13 МЛН
Кадр сыртындағы қызықтар | Келінжан
00:16
18 Commands That Will Change The Way You Use Linux Forever
29:50
Akamai Developer
Рет қаралды 1,2 МЛН
EVERYONE Needs to Learn a Little Bit of AWK!
16:29
Gary Explains
Рет қаралды 396 М.
How to Redirect Text Input/Output in Linux (cat, tee)
9:45
Cyberspatial
Рет қаралды 15 М.
Linux File Permissions and Attributes
8:30
Engineer Man
Рет қаралды 15 М.
Linux and macOS Command Line Basics
15:43
Engineer Man
Рет қаралды 29 М.
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
11:06
10 things you can do with Linux that you can't do with Windows
9:05
How to build a Linux loadable kernel module that Rickrolls people
11:46
Unix Pipeline (Brian Kernighan) - Computerphile
5:16
Computerphile
Рет қаралды 216 М.