Linux processes, init, fork/exec, ps, kill, fg, bg, jobs

Поделиться
HTML-код
  • Опубликовано: 22 дек 2018
  • Delve into the Linux process management system and see how everything fits together.
    Hope you enjoyed the video!
    Check out this code here:
    github.com/engineer-man/youtu...
    Join my Discord server to chat with me:
    / discord
    Check out some code on my GitHub:
    github.com/ebrian/engineerman
    Tweet me something funny on Twitter:
    / _engineerman
    Say hi over at Facebook:
    / engineermanyt
    Sincerely,
    Engineer Man
  • НаукаНаука

Комментарии • 255

  • @NicholasMaietta
    @NicholasMaietta 5 лет назад +192

    Been a linux user since 1995 but I still learned something. Thank you!

    • @EngineerMan
      @EngineerMan  5 лет назад +15

      Glad I could bring you some new knowledge!

    • @smudgepost
      @smudgepost 5 лет назад +2

      Same (1993) Still have trusty Using Linux Sixth Edition (QUE) on my desk..

    • @heXan
      @heXan 3 года назад +1

      Same here since 1999... Only used kill with -1, -2, -9... fg and bg were new to me. But as a lazy dev I've used it from' top' (even better 'htop') or directly with 'xkill' - point and click style :).

  • @MesmerBaas
    @MesmerBaas 5 лет назад +24

    Thanks Engineer Man. Really cool video. One addition that could help people and is closely related to your video: If you use disown %jobid after putting something in the background, you can now quit your terminal and the process will keep running. Very handy. So what happens is, disown will prevent that a sighup is send to the process when you exit your terminal. Normally a sighup is sent when your terminal is closed.

    • @braulioramirez3463
      @braulioramirez3463 5 лет назад

      @MesmerBaas I guess you missed the video when EM explained this in detail...

    • @MesmerBaas
      @MesmerBaas 5 лет назад +13

      @@braulioramirez3463 Ah ok, you expect me to be aware of the man's video history. I hope to help at least some other people who stumble upon this video without being aware of Engineer Man's body of work.

    • @justChuka
      @justChuka 4 года назад

      Linux makes people fight.

    • @coffeemaddan
      @coffeemaddan 2 года назад +2

      @@MesmerBaas Very grateful for the 'disown' tip. Thanks for the comment.

  • @Hakusha
    @Hakusha 5 лет назад +55

    these linux videos are fantastic

  • @SebastianGreco1981
    @SebastianGreco1981 5 лет назад +42

    I don't think I ever hear such clear explanations. Thank you very much!
    Instead of using 'clear', you could use 'CTRL+L'.

    • @AbhishekBM
      @AbhishekBM 3 года назад +10

      But it's not the same as clear. It just scrolls the current prompt to the top, you can still see the older commands when scrolling back up

    • @poorgirl9458
      @poorgirl9458 3 года назад +5

      and when you go ‘set -o vi’ to enable vi mode at the bash prompt ‘ctrl-L’ does not work

  • @Diprotic
    @Diprotic 4 года назад +4

    I'm 3 minutes in & I've learned A LOT!
    Thank you! You're the kind of people we need on youtube regarding linux.

  • @IctioPar
    @IctioPar 5 лет назад +2

    Great content! I've recently started working with linux again and it's awesome to get to know more!

  • @justchecking2470
    @justchecking2470 2 года назад +1

    your content is neat and tidy I can't be grateful more for what you've done on this channel. your contribution for linux learning community is huge

  • @tigercake558
    @tigercake558 5 лет назад +5

    really love these videos, I'm learning a lot. Very very accessible and clear videos, please keep up the good work.

  • @georgichelenkov4360
    @georgichelenkov4360 5 лет назад +1

    Great job! Recently found these series and am fascinated! Subscribed immediately! Keep up the good work!

  • @somber_soul
    @somber_soul 5 лет назад

    Very helpful. I've only ever seen htop for process management and this helps to understand the underlying signals being sent. Thanks!

  • @maxpolaris99
    @maxpolaris99 2 года назад +3

    This was an excellent video that got me up to speed in a hurry.
    Very well organized and nicely explained.
    A great jumping off point for my own exploration.
    Thank you!

  • @yeeeehaaawbuddy
    @yeeeehaaawbuddy 2 года назад

    These are very involved processes, but you explain it all so well, and in such a good order. Thanks!!

  • @bzielinski
    @bzielinski 5 лет назад

    Brilliant and simple explanation about kill signals. Thank you.

  • @zachmane2
    @zachmane2 5 лет назад +1

    Always appreciate the quality of your videos. Goes in depth, but accessible to beginners

  • @skyloreBOTS
    @skyloreBOTS 2 года назад

    Dude props on how well you explain everything!

  • @rushikmakwawna
    @rushikmakwawna 3 года назад

    Very well explained. Keep uploading such videos. Sound clarity is really good.

  • @kavithapriyacj4868
    @kavithapriyacj4868 Год назад

    Just a wow content .. awesome man that u indirectly mentioned about difference between killed and terminated process ..love u

  • @ZacKoch
    @ZacKoch 5 лет назад +16

    Great as usual!

  • @aayyaa1188
    @aayyaa1188 3 года назад

    You make the concept of these command so clear. Thank you soooo much

  • @josephemmanuel4089
    @josephemmanuel4089 2 года назад

    Thank you. This really helps me for my current project

  • @stargentitude7154
    @stargentitude7154 Год назад

    I am learning this at college, but everyone one is struggling due to our harsh teacher making the most hardest test questions. He does not give good material to study, but thank God I came across your channel. I finally understand the real purposes of these commands and enjoy this now!

  • @mikefdorst
    @mikefdorst 5 лет назад

    Thanks man! You just upgraded my workflow.

  • @abhishekshah11
    @abhishekshah11 3 года назад +1

    I'm happy that I recognized all the commands :)

  • @isaacvv
    @isaacvv 5 лет назад

    Thanks for the videos. Keep them coming!

  • @fapking747
    @fapking747 5 лет назад

    Thanks so much for these videos. You’re truly a jack of all tech trades.

  • @kurtmedley1187
    @kurtmedley1187 5 лет назад

    Clear and concise information. Thank you!

  • @tdkiran
    @tdkiran 2 года назад

    Thanks you for this video . Would like to see more on Linux/unix series

  • @prabodh11
    @prabodh11 2 года назад +1

    Great video, Informative, thanks for sharing🙏

  • @photopicker
    @photopicker 3 года назад

    That was amazingly clear and insightful.

  • @MehdiShokoohi
    @MehdiShokoohi 5 лет назад +13

    That was amazing Engineer; wish i could 'fg' all of my postponed tasks and "kill -20 bad-mood" !

  • @MichaelMantion
    @MichaelMantion 5 лет назад +1

    You are a life saver. You are exactly what I need right now. TY.

  • @behruzm
    @behruzm Год назад

    Excellent explanation of the above terms

  • @glikar1
    @glikar1 5 лет назад

    Superb clarity as usual!

  • @willb.755
    @willb.755 5 лет назад

    Great content as always! Thanks man :)

  • @leonardodavinci4259
    @leonardodavinci4259 Год назад

    Exactly what I needed. THANKS!

  • @zgredfryd
    @zgredfryd 3 года назад

    Thank You man! I really like your videos. I know what those commands do, but Your explanation of what is really happening in Linux is golden! Yo have a gift to explain things and teach people. Great, great stuff. It's helping me a lot.

  • @MiseryFarm
    @MiseryFarm 5 лет назад

    I'm really enjoying these videos. Thanks

  • @JTKroll12
    @JTKroll12 2 года назад

    really love your videos I learned a lot of stuff about killing

  • @alexanderradyuk9204
    @alexanderradyuk9204 5 лет назад

    Good job 👍🏻 The way you explain is awesome. Even knowing such things I continued watching. Keep it up!

    • @EngineerMan
      @EngineerMan  5 лет назад

      Thanks for the kind words, hope I helped in some way.

  • @frroossst4267
    @frroossst4267 Год назад

    Super helpful, super concise, thanks!

  • @natahmad84
    @natahmad84 2 года назад

    Thanks dude, pretty clear and simple!

  • @radubojica7888
    @radubojica7888 5 лет назад

    They took yerr jobs !!! Great video man btw. I learned some things from this which my Operating Systems teacher didn't teach me. :)

  • @xpkareem
    @xpkareem 4 года назад

    I learn a lot from your videos. Thanks!

  • @bitelogger
    @bitelogger 4 года назад +1

    I wish knew your name to properly address my thanks to you and this great video...The quality f your explanation but also the goodwill to share it with the community, my deep respect!!!

  • @jonassteinberg3779
    @jonassteinberg3779 5 лет назад

    well organized and delivered

  • @TheFarmacySeedsNetwork
    @TheFarmacySeedsNetwork 5 лет назад

    The few videos of yours I've seen are excellent and simple explanations! I will be sharing these with my friends (who are learning) and also my users from my Raspberry Pi series. cheers!

  • @yangzhang2303
    @yangzhang2303 5 лет назад +3

    Really nice and clear. Would you like to make an video about using strace ?

  • @nox5718
    @nox5718 Год назад

    Learned too much with this video, thanks too much man!

  • @pierrebouchard4289
    @pierrebouchard4289 5 лет назад

    Great video ... Learned a lot ... You're a gentleman and a scholar ...

  • @dushyanthpeddi9690
    @dushyanthpeddi9690 5 лет назад

    Great stuff. Thanks for this video.

  • @ag.4937
    @ag.4937 4 года назад

    Brilliant explanation, Thanks

  • @danielmoita6151
    @danielmoita6151 5 лет назад +4

    hey just started watching your videos and they have helped me a lot. i like they way you explain. Would you be willing to do a video explaining named pipes for server-client, using multithreading or select() for parallel requests? Thank your for your videos, and keep up the great work :)

  • @jorgediaz6730
    @jorgediaz6730 5 лет назад

    One thing I find very useful is having a process run outside of their parent process So For example if i run a long running process on the bash terminal I can exit the terminal and check on the process later on. You can do this with the screen command.

  • @ForceHunterHD
    @ForceHunterHD 5 лет назад

    Great linux videos. I hope more are coming cuz i rly want to learn linux

  • @nidishmodala3638
    @nidishmodala3638 4 года назад

    thank you so much for clear explanation

  • @aminebouaita9202
    @aminebouaita9202 2 года назад

    I want to thank you for the quality of your videos, not just this one. All of your videos

  • @lavellefloyd4639
    @lavellefloyd4639 4 года назад

    I appreciate you sharing wisdom to linux noobs like myself

  • @olehbaranovskyi2219
    @olehbaranovskyi2219 3 года назад

    thank you, great tutorial!

  • @austinmallar5430
    @austinmallar5430 5 лет назад +94

    Where was this 3 months ago during my Operating Systems course?

    • @diggydude5229
      @diggydude5229 4 года назад +4

      You're looking for W. Richard Stevens' books on UNIX programming, where all of this stuff is explained in detail.

    • @ChudLife
      @ChudLife 2 года назад

      going through it right now in OS course and it is kicking my ass
      I feel like I am watching the Rockwell Retro Encabulator video

  • @kapilsonyt
    @kapilsonyt 3 года назад

    I have learned something new. Thanks much.

  • @unstoppable-ar3292
    @unstoppable-ar3292 3 года назад

    Very good. Thanks man. Legend!!!

  • @fruitygranulizer540
    @fruitygranulizer540 Год назад +2

    this was so incredibly well explained. my prof was making a shit show out of this chapter by just throwing a bunch of words at us. going back and reading his lecture notes, i can understand it now, and i furthur can see how poorly written his lecture was. thank so much for this.

  • @Cray2TheZ
    @Cray2TheZ 4 года назад

    Brilliant video! Thanks!

  • @Fernando-wz6no
    @Fernando-wz6no 2 года назад

    Kill -15 was really useful. Thanks.

  • @MatthewStidham
    @MatthewStidham 5 лет назад

    That was a killer video. Thanks!

  • @oscarceja0212
    @oscarceja0212 2 года назад

    Great explanation!!!

  • @patrykp8460
    @patrykp8460 2 года назад

    after watching 15 sec I knew that this is proper and what I was actually looking for :D

  • @roeyleon22
    @roeyleon22 3 года назад

    Very good explenation ! - subscribed :)

  • @fatemepourghaemi2587
    @fatemepourghaemi2587 3 года назад

    amazing job thanks man

  • @fontanot
    @fontanot 3 года назад

    great video, you just earned another subscriber

  • @stephenjames5745
    @stephenjames5745 5 лет назад

    Awesome video! Thanks!

  • @trashpandalife
    @trashpandalife 5 лет назад

    Great videos, thanks!

  • @dast6915
    @dast6915 5 лет назад

    Well I didn't know that. Great content. I will have to look at your other videos now. And subcribe!

  • @freeuyghur2063
    @freeuyghur2063 5 лет назад +5

    11:54 We can use `watch -n 2 jobs` to monitor jobs command every 2 seconds.
    so we can show the realtime result from pane 1 when the process killed at pane 2.
    some energy efficiency and fun than manually type a repetitive command.

    • @brandon.duffany
      @brandon.duffany 3 года назад

      Thanks for this awesome tip! This is a game-changer!

  • @shamilcarela1699
    @shamilcarela1699 5 лет назад

    Fantastic video, appreciate.

  • @bharatsnair
    @bharatsnair 2 года назад

    Also check out pstree, which lets you view processes as a tree, helps you see the forks and execs.

  • @abenezerabraham9524
    @abenezerabraham9524 Год назад

    Really helpful!

  • @hostgrady
    @hostgrady 2 года назад

    Very interesting, hopefully I can use these in shell scripts for something

  • @flakkanon
    @flakkanon 5 лет назад

    Nice video for recap as a linux user

  • @countofcounts
    @countofcounts 3 года назад

    very helpful video my dude

  • @manavbagai8548
    @manavbagai8548 2 года назад

    Very informative video.

  • @4932gb
    @4932gb 3 года назад

    Been using unux since 1980 and linux sice 1995. This is good stuff!

  • @astronautis1674
    @astronautis1674 4 года назад

    Very helpful, thanks

  • @benjaminfowler3532
    @benjaminfowler3532 3 года назад

    that was beyond amazing.

  • @madarovsky2188
    @madarovsky2188 Год назад

    perfect video thx!!

  • @janignacio7810
    @janignacio7810 3 года назад

    You are awesome! Thank you.

  • @carlpilongo539
    @carlpilongo539 11 месяцев назад

    Thank you for teaching us Linux, Programmer Mrbeast

  • @peacemaker42069
    @peacemaker42069 5 лет назад

    hey man, great video,can you recommend any books or websites for learning linux/unix

  • @davidrmcmahon
    @davidrmcmahon 3 года назад

    I just like getting the uptime of my pi-hole and Jellyfin server Pi. Two weeks so far, hoping no power blackouts!

  • @samkachar
    @samkachar 2 года назад

    Learned alot about killing

  • @MrSURENDRAGAMEBOY
    @MrSURENDRAGAMEBOY 2 года назад

    Better then my teacher :) awesome man

  • @nancyj3042
    @nancyj3042 4 года назад

    Thank you man

  • @Didanihaaaa
    @Didanihaaaa 4 года назад +2

    thanks for such a great channel. I heard about parallel computing on Linux. could you please teach us some parallel computing stuff? bests

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 5 лет назад +2

    3:05 Perhaps make it clearer by pointing out that the “exec” command is a bash builtin which tells it to skip the fork() call before running the rest of the line as the actual command.

  • @0xssff
    @0xssff 3 года назад

    THANKS A LOT

  • @mmobini1803
    @mmobini1803 3 года назад

    Thank you!

  • @ajiththiyar7609
    @ajiththiyar7609 5 лет назад +2

    This is so helpful thank you man, keep it up.

  • @bendover4728
    @bendover4728 5 лет назад

    Awesome! Where can I find more information like this? I wish to learn and have deep understanding of Linux functioning, commands, etc

  • @ptaszor9779
    @ptaszor9779 5 лет назад

    Nice film!

  • @Jonathan-rm6kt
    @Jonathan-rm6kt 5 лет назад

    Thanks for the video engineer man! Do you have (or could you make) a video about properly removing packages? Ie how to make sure pkg mgr removes all misc files