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

Sdílet
Vložit
  • čas přidán 22. 12. 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
  • Věda a technologie

Komentáře • 249

  • @NicholasMaietta
    @NicholasMaietta Před 5 lety +194

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

    • @EngineerMan
      @EngineerMan  Před 5 lety +15

      Glad I could bring you some new knowledge!

    • @smudgepost
      @smudgepost Před 5 lety +2

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

    • @heXan
      @heXan Před 3 lety +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 :).

  •  Před 5 lety +44

    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 Před 3 lety +11

      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 Před 3 lety +5

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

  • @justchecking2470
    @justchecking2470 Před 3 lety +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 Před 5 lety +5

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

  • @Diprotic
    @Diprotic Před 5 lety +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.

  • @georgichelenkov4360
    @georgichelenkov4360 Před 5 lety +1

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

  • @Hakusha
    @Hakusha Před 5 lety +56

    these linux videos are fantastic

  • @maxpolaris99
    @maxpolaris99 Před 2 lety +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!

  • @IctioPar
    @IctioPar Před 5 lety +2

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

  • @somber_soul
    @somber_soul Před 5 lety

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

  • @zachmane2
    @zachmane2 Před 5 lety +1

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

  • @yeeeehaaawbuddy
    @yeeeehaaawbuddy Před 2 lety

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

  • @stargentitude7154
    @stargentitude7154 Před rokem

    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!

  • @rushikmakwawna
    @rushikmakwawna Před 3 lety

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

  • @kavithapriyacj4868
    @kavithapriyacj4868 Před rokem

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

  • @zgredfryd
    @zgredfryd Před 3 lety

    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.

  • @alexanderradyuk9204
    @alexanderradyuk9204 Před 5 lety

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

    • @EngineerMan
      @EngineerMan  Před 5 lety

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

  • @aayyaa1188
    @aayyaa1188 Před 3 lety

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

  • @bitelogger
    @bitelogger Před 4 lety +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!!!

  • @MehdiShokoohi
    @MehdiShokoohi Před 5 lety +13

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

  • @bzielinski
    @bzielinski Před 5 lety

    Brilliant and simple explanation about kill signals. Thank you.

  • @skyloreBOTS
    @skyloreBOTS Před 2 lety

    Dude props on how well you explain everything!

  • @RussTeeTrombone
    @RussTeeTrombone Před 5 lety

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

  • @TheFarmacySeedsNetwork

    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!

  • @radubojica7888
    @radubojica7888 Před 5 lety

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

  • @abhishekshah11
    @abhishekshah11 Před 4 lety +1

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

  • @ZacKoch
    @ZacKoch Před 5 lety +16

    Great as usual!

  • @josephemmanuel4089
    @josephemmanuel4089 Před 2 lety

    Thank you. This really helps me for my current project

  • @mikefdorst
    @mikefdorst Před 5 lety

    Thanks man! You just upgraded my workflow.

  • @tdkiran
    @tdkiran Před 2 lety

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

  • @MichaelMantion
    @MichaelMantion Před 5 lety +1

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

  • @isaacvv
    @isaacvv Před 5 lety

    Thanks for the videos. Keep them coming!

  • @aminebouaita9202
    @aminebouaita9202 Před 3 lety

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

  • @freeuyghur2063
    @freeuyghur2063 Před 5 lety +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 Před 3 lety

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

  • @kurtmedley1187
    @kurtmedley1187 Před 5 lety

    Clear and concise information. Thank you!

  • @photopicker
    @photopicker Před 4 lety

    That was amazingly clear and insightful.

  • @glikar1
    @glikar1 Před 5 lety

    Superb clarity as usual!

  • @MiseryFarm
    @MiseryFarm Před 5 lety

    I'm really enjoying these videos. Thanks

  • @nox5718
    @nox5718 Před 2 lety

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

  • @prabodh11
    @prabodh11 Před 2 lety +1

    Great video, Informative, thanks for sharing🙏

  • @xpkareem
    @xpkareem Před 5 lety

    I learn a lot from your videos. Thanks!

  • @JTKroll12
    @JTKroll12 Před 3 lety

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

  • @yangzhang2303
    @yangzhang2303 Před 5 lety +3

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

  • @danielmoita6151
    @danielmoita6151 Před 5 lety +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 :)

  • @pierrebouchard4289
    @pierrebouchard4289 Před 5 lety

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

  • @willb.755
    @willb.755 Před 5 lety

    Great content as always! Thanks man :)

  • @natahmad84
    @natahmad84 Před 2 lety

    Thanks dude, pretty clear and simple!

  • @ForceHunterHD
    @ForceHunterHD Před 5 lety

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

  • @patrykp8460
    @patrykp8460 Před 2 lety

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

  • @fruitygranulizer540
    @fruitygranulizer540 Před 2 lety +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.

  • @behruzm
    @behruzm Před rokem

    Excellent explanation of the above terms

  • @jorgediaz6730
    @jorgediaz6730 Před 5 lety

    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.

  • @frroossst4267
    @frroossst4267 Před rokem

    Super helpful, super concise, thanks!

  • @leonardodavinci4259
    @leonardodavinci4259 Před rokem

    Exactly what I needed. THANKS!

  • @dast6915
    @dast6915 Před 5 lety

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

  • @roeyleon22
    @roeyleon22 Před 3 lety

    Very good explenation ! - subscribed :)

  • @MiserableDuck95
    @MiserableDuck95 Před 5 lety +94

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

    • @diggydude5229
      @diggydude5229 Před 4 lety +4

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

    • @ChudLife
      @ChudLife Před 3 lety

      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

  • @ezequiel9055
    @ezequiel9055 Před 5 lety +4

    I wonder what distro are you using since your 'kill -l' output is so different than mine. Yours is more complete and is numbered while mine is just a list of signals, completely useless.
    As usual great video, very well prepared and organized, and your communication skills are superb ;) you are a very good teacher. I've been a linux user since 1998 and still learning things.
    Very much appreciated.

    • @tpaq
      @tpaq Před 5 lety +2

      Most shells supply a "builtin" version of kill, try: "type kill". The presenter uses the Bash shell. I use Z-Shell, and its builtin is quite terse. try "/bin/kill -L".

  • @kapilsonyt
    @kapilsonyt Před 3 lety

    I have learned something new. Thanks much.

  • @dushyanthpeddi9690
    @dushyanthpeddi9690 Před 5 lety

    Great stuff. Thanks for this video.

  • @MatthewStidham
    @MatthewStidham Před 5 lety

    That was a killer video. Thanks!

  • @SubiqT
    @SubiqT Před 2 lety

    Excellent explanations, thanks a lot

  • @jonassteinberg3779
    @jonassteinberg3779 Před 5 lety

    well organized and delivered

  • @fontanot
    @fontanot Před 3 lety

    great video, you just earned another subscriber

  • @lavellefloyd4639
    @lavellefloyd4639 Před 5 lety

    I appreciate you sharing wisdom to linux noobs like myself

  • @gana706
    @gana706 Před 3 lety

    Ctrl c sends a SIGINT signal.
    Init is the first process pid = 1
    Bash first fork (copies ) the process and than exec (replaces ) the process as child process.
    T = stopped state
    S = Interuptable sleep state ( Running in bg)
    Kill -15
    Kill -2
    Kill -1
    Kill -9 ( my fav )

  • @unstoppable-ar3292
    @unstoppable-ar3292 Před 3 lety

    Very good. Thanks man. Legend!!!

  • @Cray2TheZ
    @Cray2TheZ Před 4 lety

    Brilliant video! Thanks!

  • @4932gb
    @4932gb Před 3 lety

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

  • @trashpandalife
    @trashpandalife Před 5 lety

    Great videos, thanks!

  • @nidishmodala3638
    @nidishmodala3638 Před 4 lety

    thank you so much for clear explanation

  • @wramarante
    @wramarante Před 5 lety

    UNBELIEVABLE !!!...why??? Personally I have the habit to check the ratio dislike/like of all videos I intend to watch. I don't go around looking for higher or lower ratios, I just do it before watching it. That said, most of excelent videos I have watched has a ratio score between 1% and 3%. This video of yours has the impressively amazing ratio of 0.35% (5/1400)... You got a new susbscriber and a big fan on a 20 years linux admin.

  • @stephenjames5745
    @stephenjames5745 Před 5 lety

    Awesome video! Thanks!

  • @oscarceja0212
    @oscarceja0212 Před 2 lety

    Great explanation!!!

  • @MrSURENDRAGAMEBOY
    @MrSURENDRAGAMEBOY Před 3 lety

    Better then my teacher :) awesome man

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

    Great explanation, thanks

  • @olehbaranovskyi2219
    @olehbaranovskyi2219 Před 3 lety

    thank you, great tutorial!

  • @hostgrady
    @hostgrady Před 2 lety

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

  • @shamilcarela1699
    @shamilcarela1699 Před 5 lety

    Fantastic video, appreciate.

  • @manavbagai8548
    @manavbagai8548 Před 3 lety

    Very informative video.

  • @fatemepourghaemi2587
    @fatemepourghaemi2587 Před 3 lety

    amazing job thanks man

  • @astronautis1674
    @astronautis1674 Před 4 lety

    Very helpful, thanks

  • @janignacio7810
    @janignacio7810 Před 4 lety

    You are awesome! Thank you.

  • @abenezerabraham9524
    @abenezerabraham9524 Před rokem

    Really helpful!

  • @countofcounts
    @countofcounts Před 3 lety

    very helpful video my dude

  • @ptaszor9779
    @ptaszor9779 Před 5 lety

    Nice film!

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 Před 5 lety +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.

  • @carlpilongo539
    @carlpilongo539 Před rokem

    Thank you for teaching us Linux, Programmer Mrbeast

  • @Aemilindore
    @Aemilindore Před 5 lety

    Lovely video!!

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 Před 5 lety +7

    3:36 specifying ps options without a dash is BSD-style syntax. Probably best avoided.

  • @peacemaker42069
    @peacemaker42069 Před 5 lety

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

  • @bharatsnair
    @bharatsnair Před 3 lety

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

  • @bendover4728
    @bendover4728 Před 5 lety

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

  • @ivaylomanolov7712
    @ivaylomanolov7712 Před 4 lety

    GREAT VIDEO !

  • @flakkanon
    @flakkanon Před 5 lety

    Nice video for recap as a linux user

  • @benjaminfowler3532
    @benjaminfowler3532 Před 3 lety

    that was beyond amazing.

  • @0xssff
    @0xssff Před 3 lety

    THANKS A LOT

  • @samkachar
    @samkachar Před 3 lety

    Learned alot about killing

  • @madarovsky2188
    @madarovsky2188 Před rokem

    perfect video thx!!

  • @Didanihaaaa
    @Didanihaaaa Před 5 lety +2

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