Linux Pipes Explained in 3 Minutes

Sdílet
Vložit

Komentáře • 20

  • @dvoraklovelace2801
    @dvoraklovelace2801 Před 7 měsíci +25

    You summarized my 4 two-hour operating system classes in 4 minutes. Thanks

  • @lucasschneider-dev
    @lucasschneider-dev Před 7 měsíci +8

    Stumbling upon your channel is one of the greatest things that happened to me in 2023. Keep up the great work!
    Also, can you do one on grep? XD

    • @nirlichtman
      @nirlichtman  Před 7 měsíci +2

      Thanks :)
      Yes, grep is a good idea, very powerful and useful command

  • @yaSSeraitnaSSer
    @yaSSeraitnaSSer Před měsícem

    question : what happens when the parent process dies first? does it not create a zombie process? and if so how did the program work after killing the parent process?
    thank you for the content sir keep it up!

  • @yasithpiyarathna6950
    @yasithpiyarathna6950 Před 4 měsíci +1

    your content is just amazing!
    =

  • @DragonSlayer22740
    @DragonSlayer22740 Před měsícem

    writing code in vim is so difficult - big respect

  • @phatboislym
    @phatboislym Před 7 měsíci +3

    mind blown, hopefully one day I'll actually understand stuff like this

    • @nirlichtman
      @nirlichtman  Před 7 měsíci +4

      Pipe is an example of a Linux system call which is a service that the operating system provides that applications can call, for example there are also system calls for opening files and writing to files and much more. Check out my video about Linux System Calls for a more basic example.

    • @phatboislym
      @phatboislym Před 7 měsíci

      @@nirlichtman oh, I mostly understand that part
      it's the actual low-level magic in the code I don't get

    • @nirlichtman
      @nirlichtman  Před 7 měsíci

      @@phatboislym what specific part of the code? I can help explain

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

    Perfect explanation!

  • @tank_man98
    @tank_man98 Před 7 měsíci +1

    Well, I thought I know pipes. Almost didn't watch the video. Turns out I didn't

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

    How would this work on Windows?

  • @Bearded_Dragon_Sir
    @Bearded_Dragon_Sir Před 7 měsíci

    I'm watching these videos in the background while I do other things lol

  • @kuijaye
    @kuijaye Před 7 měsíci +1

    Can child process continue when main has returned (does return means parent process is terminated?)?

    • @nirlichtman
      @nirlichtman  Před 7 měsíci +2

      After the fork both processes continue from the same line but are independent of each other so if one finishes it does not affect the other

    • @kuijaye
      @kuijaye Před 7 měsíci

      @@nirlichtman but i thought in linux if parent terminates, then child will be terminated as well..

    • @nirlichtman
      @nirlichtman  Před 7 měsíci +8

      if the parent terminates and the child is still not finished, the child will continue as usual but will become an orphan process: en.wikipedia.org/wiki/Orphan_process

  • @DecoyBBQCam
    @DecoyBBQCam Před 7 měsíci

    i see.

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

    This made no sense 😹