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

  Рет қаралды 174,408

Engineer Man

Engineer Man

Күн бұрын

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/eng...
Join my Discord server to chat with me:
/ discord
Check out some code on my GitHub:
github.com/ebr...
Tweet me something funny on Twitter:
/ _engineerman
Say hi over at Facebook:
/ engineermanyt
Sincerely,
Engineer Man

Пікірлер: 249
@TheHermitHacker
@TheHermitHacker 6 жыл бұрын
Been a linux user since 1995 but I still learned something. Thank you!
@EngineerMan
@EngineerMan 6 жыл бұрын
Glad I could bring you some new knowledge!
@smudgepost
@smudgepost 6 жыл бұрын
Same (1993) Still have trusty Using Linux Sixth Edition (QUE) on my desk..
@heXan
@heXan 3 жыл бұрын
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 :).
6 жыл бұрын
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 4 жыл бұрын
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 жыл бұрын
and when you go ‘set -o vi’ to enable vi mode at the bash prompt ‘ctrl-L’ does not work
@Hakusha
@Hakusha 6 жыл бұрын
these linux videos are fantastic
@zachmane2
@zachmane2 6 жыл бұрын
Always appreciate the quality of your videos. Goes in depth, but accessible to beginners
@EngineerMan
@EngineerMan 6 жыл бұрын
That's my aim :)
@Diprotic
@Diprotic 5 жыл бұрын
I'm 3 minutes in & I've learned A LOT! Thank you! You're the kind of people we need on youtube regarding linux.
@maxpolaris99
@maxpolaris99 2 жыл бұрын
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!
@bitelogger
@bitelogger 5 жыл бұрын
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!!!
@EngineerMan
@EngineerMan 5 жыл бұрын
My name is Brian :)
@MehdiShokoohi
@MehdiShokoohi 6 жыл бұрын
That was amazing Engineer; wish i could 'fg' all of my postponed tasks and "kill -20 bad-mood" !
@ShivamJha00
@ShivamJha00 6 жыл бұрын
Why not kill -9 it :D
@justChuka
@justChuka 5 жыл бұрын
U mean 9?
@kavithapriyacj4868
@kavithapriyacj4868 2 жыл бұрын
Just a wow content .. awesome man that u indirectly mentioned about difference between killed and terminated process ..love u
@aminebouaita9202
@aminebouaita9202 3 жыл бұрын
I want to thank you for the quality of your videos, not just this one. All of your videos
@EngineerMan
@EngineerMan 3 жыл бұрын
You're welcome!
@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!
@abhishekshah11
@abhishekshah11 4 жыл бұрын
I'm happy that I recognized all the commands :)
@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.
@EngineerMan
@EngineerMan 2 жыл бұрын
Glad it helped :)
@rushikmakwawna
@rushikmakwawna 4 жыл бұрын
Very well explained. Keep uploading such videos. Sound clarity is really good.
@yeeeehaaawbuddy
@yeeeehaaawbuddy 3 жыл бұрын
These are very involved processes, but you explain it all so well, and in such a good order. Thanks!!
@justchecking12
@justchecking12 3 жыл бұрын
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
@TheFarmacySeedsNetwork
@TheFarmacySeedsNetwork 6 жыл бұрын
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!
@EngineerMan
@EngineerMan 6 жыл бұрын
Thank you :)
@TheFarmacySeedsNetwork
@TheFarmacySeedsNetwork 6 жыл бұрын
Thank YOU :)
@IctioPar
@IctioPar 6 жыл бұрын
Great content! I've recently started working with linux again and it's awesome to get to know more!
@MiserableDuck95
@MiserableDuck95 6 жыл бұрын
Where was this 3 months ago during my Operating Systems course?
@diggydude5229
@diggydude5229 5 жыл бұрын
You're looking for W. Richard Stevens' books on UNIX programming, where all of this stuff is explained in detail.
@ChudLife
@ChudLife 3 жыл бұрын
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
@aayyaa1188
@aayyaa1188 4 жыл бұрын
You make the concept of these command so clear. Thank you soooo much
@freeuyghur2063
@freeuyghur2063 6 жыл бұрын
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 4 жыл бұрын
Thanks for this awesome tip! This is a game-changer!
@tigercake558
@tigercake558 5 жыл бұрын
really love these videos, I'm learning a lot. Very very accessible and clear videos, please keep up the good work.
@skyloreBOTS
@skyloreBOTS 3 жыл бұрын
Dude props on how well you explain everything!
@patrykp8460
@patrykp8460 2 жыл бұрын
after watching 15 sec I knew that this is proper and what I was actually looking for :D
@georgichelenkov4360
@georgichelenkov4360 6 жыл бұрын
Great job! Recently found these series and am fascinated! Subscribed immediately! Keep up the good work!
@somber_soul
@somber_soul 6 жыл бұрын
Very helpful. I've only ever seen htop for process management and this helps to understand the underlying signals being sent. Thanks!
@wramarante
@wramarante 6 жыл бұрын
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.
@EngineerMan
@EngineerMan 6 жыл бұрын
:) Welcome.
@ZacKoch
@ZacKoch 6 жыл бұрын
Great as usual!
@alexanderradyuk9204
@alexanderradyuk9204 6 жыл бұрын
Good job 👍🏻 The way you explain is awesome. Even knowing such things I continued watching. Keep it up!
@EngineerMan
@EngineerMan 6 жыл бұрын
Thanks for the kind words, hope I helped in some way.
@4932gb
@4932gb 4 жыл бұрын
Been using unux since 1980 and linux sice 1995. This is good stuff!
@vaibhavppandey
@vaibhavppandey 3 жыл бұрын
Wow :O
@gana706
@gana706 3 жыл бұрын
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 )
@MichaelMantion
@MichaelMantion 6 жыл бұрын
You are a life saver. You are exactly what I need right now. TY.
@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.
@josephemmanuel4089
@josephemmanuel4089 3 жыл бұрын
Thank you. This really helps me for my current project
@v0idvlr1
@v0idvlr1 2 жыл бұрын
Learned too much with this video, thanks too much man!
@tdkiran
@tdkiran 3 жыл бұрын
Thanks you for this video . Would like to see more on Linux/unix series
@naveenagarwal287
@naveenagarwal287 5 жыл бұрын
It's funny that kill can also bring a process to life as well.
@ezequiel9055
@ezequiel9055 6 жыл бұрын
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 5 жыл бұрын
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".
@prabodh11
@prabodh11 3 жыл бұрын
Great video, Informative, thanks for sharing🙏
@glikar1
@glikar1 5 жыл бұрын
Superb clarity as usual!
@qeithwreid7745
@qeithwreid7745 5 жыл бұрын
You have taught me that kernel has parent ID of zero. This is the foundational level upon which I shall build many great things.
@Diprotic
@Diprotic 5 жыл бұрын
It's a kernel like a popcorn kernel.
@qeithwreid7745
@qeithwreid7745 5 жыл бұрын
Diprotic there is a grain of truth in that.
@behruzm
@behruzm 2 жыл бұрын
Excellent explanation of the above terms
@bzielinski
@bzielinski 6 жыл бұрын
Brilliant and simple explanation about kill signals. Thank you.
@JTKroll12
@JTKroll12 3 жыл бұрын
really love your videos I learned a lot of stuff about killing
@leonardodavinci4259
@leonardodavinci4259 2 жыл бұрын
Exactly what I needed. THANKS!
@jorgediaz6730
@jorgediaz6730 6 жыл бұрын
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.
@lavellefloyd4639
@lavellefloyd4639 5 жыл бұрын
I appreciate you sharing wisdom to linux noobs like myself
@mikefdorst
@mikefdorst 6 жыл бұрын
Thanks man! You just upgraded my workflow.
@pierrebouchard4289
@pierrebouchard4289 6 жыл бұрын
Great video ... Learned a lot ... You're a gentleman and a scholar ...
@radubojica7888
@radubojica7888 6 жыл бұрын
They took yerr jobs !!! Great video man btw. I learned some things from this which my Operating Systems teacher didn't teach me. :)
@RussTeeTrombone
@RussTeeTrombone 6 жыл бұрын
Thanks so much for these videos. You’re truly a jack of all tech trades.
@frroossst4267
@frroossst4267 2 жыл бұрын
Super helpful, super concise, thanks!
@photopicker
@photopicker 4 жыл бұрын
That was amazingly clear and insightful.
@natahmad84
@natahmad84 3 жыл бұрын
Thanks dude, pretty clear and simple!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 6 жыл бұрын
3:36 specifying ps options without a dash is BSD-style syntax. Probably best avoided.
@yangzhang2303
@yangzhang2303 6 жыл бұрын
Really nice and clear. Would you like to make an video about using strace ?
@xpkareem
@xpkareem 5 жыл бұрын
I learn a lot from your videos. Thanks!
@MrSURENDRAGAMEBOY
@MrSURENDRAGAMEBOY 3 жыл бұрын
Better then my teacher :) awesome man
@bharatdoesstuff
@bharatdoesstuff 3 жыл бұрын
Also check out pstree, which lets you view processes as a tree, helps you see the forks and execs.
@MiseryFarm
@MiseryFarm 6 жыл бұрын
I'm really enjoying these videos. Thanks
@carlpilongo539
@carlpilongo539 Жыл бұрын
Thank you for teaching us Linux, Programmer Mrbeast
@hostgrady
@hostgrady 3 жыл бұрын
Very interesting, hopefully I can use these in shell scripts for something
@catorials444
@catorials444 4 жыл бұрын
I love that mr. beast takes up software engineering.
@vaibhavppandey
@vaibhavppandey 3 жыл бұрын
Hehe
@isaacvv
@isaacvv 6 жыл бұрын
Thanks for the videos. Keep them coming!
@jonassteinberg3779
@jonassteinberg3779 5 жыл бұрын
well organized and delivered
@danielmoita6151
@danielmoita6151 6 жыл бұрын
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 :)
@bludblind
@bludblind 6 жыл бұрын
Clear and concise information. Thank you!
@mango-opinions
@mango-opinions 4 жыл бұрын
I have learned something new. Thanks much.
@fontanot
@fontanot 3 жыл бұрын
great video, you just earned another subscriber
@mybean1096
@mybean1096 5 жыл бұрын
Processes are very powerful if you understand them. Theres this wonderful site called man7 that covers processes, daemons, and much much more. Theres also lots of IBM documentation on how to write a processe. Anyway thanks for the vid I haven't studied it in a while.
@unstoppable-ar3292
@unstoppable-ar3292 4 жыл бұрын
Very good. Thanks man. Legend!!!
@ag.4937
@ag.4937 5 жыл бұрын
Brilliant explanation, Thanks
@ForceHunterHD
@ForceHunterHD 6 жыл бұрын
Great linux videos. I hope more are coming cuz i rly want to learn linux
@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!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 6 жыл бұрын
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.
@MatthewStidham
@MatthewStidham 6 жыл бұрын
That was a killer video. Thanks!
@SubiqT
@SubiqT 2 жыл бұрын
Excellent explanations, thanks a lot
@roeyleon22
@roeyleon22 3 жыл бұрын
Very good explenation ! - subscribed :)
@yura979
@yura979 6 жыл бұрын
I would never expect young Che Guevara to make such good clean videos. Thanks.
@EngineerMan
@EngineerMan 6 жыл бұрын
Lmao.
@flakkanon
@flakkanon 6 жыл бұрын
Nice video for recap as a linux user
@athmikagowda6728
@athmikagowda6728 3 жыл бұрын
Awesome vedio.....All linux users should have a look
@willb.755
@willb.755 6 жыл бұрын
Great content as always! Thanks man :)
@olehbaranovskyi2219
@olehbaranovskyi2219 4 жыл бұрын
thank you, great tutorial!
@oscarceja0212
@oscarceja0212 3 жыл бұрын
Great explanation!!!
@dushyanthpeddi9690
@dushyanthpeddi9690 6 жыл бұрын
Great stuff. Thanks for this video.
@samkachar
@samkachar 3 жыл бұрын
Learned alot about killing
@stephenjames5745
@stephenjames5745 6 жыл бұрын
Awesome video! Thanks!
@nidishmodala3638
@nidishmodala3638 5 жыл бұрын
thank you so much for clear explanation
@janignacio7810
@janignacio7810 4 жыл бұрын
You are awesome! Thank you.
@travelogue7960
@travelogue7960 6 жыл бұрын
Hi Engineer Man, Have a series of videos on sed and awk commands.. Thanks in advance.. An Engineer
@manavbagai8548
@manavbagai8548 3 жыл бұрын
Very informative video.
@benjaminfowler3532
@benjaminfowler3532 4 жыл бұрын
that was beyond amazing.
@armandnouri8207
@armandnouri8207 5 жыл бұрын
Great video. Why do different jobs listings appear for different bash log-in sessions?
@Yash-gi4iq
@Yash-gi4iq 3 жыл бұрын
thanks for the wonderful explanation , can you tell us how the kill-3 command is used for taking thread dumps .. i mean i know that this command takes the java thread dump but wanted to know the working as i see kill -3 is sigquit...
@ivaylomanolov7712
@ivaylomanolov7712 5 жыл бұрын
GREAT VIDEO !
@dast6915
@dast6915 6 жыл бұрын
Well I didn't know that. Great content. I will have to look at your other videos now. And subcribe!
@ptaszor9779
@ptaszor9779 5 жыл бұрын
Nice film!
@HK-sw3vi
@HK-sw3vi 2 жыл бұрын
you sigkilled it with this video. fantastic!
@countofcounts
@countofcounts 4 жыл бұрын
very helpful video my dude
@dadda-w3c
@dadda-w3c Жыл бұрын
thanks Mr.Beast for this very good explanation 😁😅
8 super heroic Linux commands that you probably aren't using
8:38
Engineer Man
Рет қаралды 730 М.
Making Smallest Possible Linux Distro (x64)
27:43
Nir Lichtman
Рет қаралды 162 М.
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН
The fork() function in C
11:16
CodeVault
Рет қаралды 410 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 270 М.
The Tragedy of systemd
47:18
linux.conf.au
Рет қаралды 1,2 МЛН
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 1,6 МЛН
My thoughts on framework after daily driving it for 2 years
16:34
Louis Rossmann
Рет қаралды 754 М.
Linux Nice and Priority values
10:56
Engineer Man
Рет қаралды 25 М.
SysVinit vs Systemd
31:19
DJ Ware
Рет қаралды 58 М.
Malware Development: Processes, Threads, and Handles
31:29
Top 10 Linux Job Interview Questions
16:04
tutoriaLinux
Рет қаралды 2,4 МЛН
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН