Linux Process Management - Part 1 (ps, kill, jobs, fg, bg, disown and others)
Вставка
- Опубліковано 1 сер 2024
- In this video we begin to explore process management in Linux. It is a fairly complex issue if we want to face it well and understand all the concepts involved. For this reason, we begin with a brief description of computer architecture by commenting on some historical facts about the development of computing in recent decades.
We then jumped into the world of process management on Linux and started by identifying the system and user processes. Then we continue with a topic that has been largely neglected, the work in the terminals and the interrelationship between processes according to their hierarchy. We are also going to review the & symbol to launch background processes, the jobs command to display jobs in the terminal, and then play around with bg and fg. Next we mention the default behavior of a console: SIGHUP to processes when the session is closed. We elaborated two mechanisms to prevent the processes from being killed: with the disown command and with the nohup. Next, we do a weird kind of experiment with two "tail -f" nested over an apache2 log file.
We finish again with some concepts, in this case the signals that the linux kernel sends to the processes: SIGHUP, SIGTERM, SIGINT, SIGSTOP, SIGKILL, etc. We describe how to use each one and in which cases it is used. Before finishing the video we review the man command and another command that helps us explore the system manual: apropos.
************************
I hope the concepts we saw in this video serve you. I was left with a lot of issues but the truth is that I prefer to go slower and in detail instead of going fast and losing some along the way.
************************
You can also join the Discord channel to make inquiries:
/ discord
************************
Index
0:00 Introduction to processes
6:10 Processes in Linux
8:50 Command tty and ps
11:00 Attached / detached processes
13:00 Command jobs, Ctrl + Z, bg, fg
17:01 Command kill% JOB_ID
17:40 Command disown
21:41 Command killall
22:02 Command nohup
23:46 Bash options, shopt option
24:42 Kernel signals: SIGHUP, SIGTERM, SIGINT, etc.
26:46 Bonus tip for man, apropos command
28:53 Bonus tip Ctrl + Z vs Ctrl + C
29:14 Farewell
************************
These basic commands for managing processes in Linux are useful for any distribution such as ubuntu, debian, fedora, centos, red hat linux, arch linux, amazon linux, etc. - Наука та технологія
¿Tienes algún truco para gestionar procesos? Me quedaron afuera muchas cosas en esta primera parte sobre este tema que vendrán en un segundo video. Recibo recomendaciones para los próximos videos. Si tienes algún comando o consulta en particular comenta y lo resolvemos.
Sos un capo, me re sirve para la universidad, gracias! :D
24:25
Gran advertencia, sí señor
Buen trabajo .. Che de investigación... felicito tu sencilles y cortesía...Abrazos.. Tienes un Amigo en mexico..
Excelente explicación, gracias!!!
Gran, gran vídeo. Realmente ilustrativo. Bravo
Gracias Alfo!!!!
@@inwx waiting for your next video. Don't give it up. Ilústranos!
Gracias Brother, me gusta tu explicacion, gracias por tu tiempo. un Saludo
Gracias Alexis por el comentario! Un abrazo!
Hola. Muy buen video! Y muy claro...
Te comento me compré un curso de Linux en Udemy (LPIC1) y NO es tan claro cómo tus vídeos, ni explica tanto como vos... La verdad muy bueno tu laburo.
Saludos
Muy buen contenido
Gracias Abel, un abrazo!
Gracias por compartir el conocimiento hermano saludos
¡Crack!
Hola amigo soy nuevo buen video. No conozco mucho de linux pero tks videos me sirven porque planeo hacer un dual boot e ir aprendiendo
Hola Agus, genial que estés aprendiendo! Si te encuentras con algún problema, me avisas. Saludos!
esto es oro!!!,muchas graciasss!!!
muy bueno !!
Y si tengo varios en bg? Cómo elijo uno concreto para traerlo al fg?
Ok, ya lo explicas en 16:40
Gracias! Gran vídeo. Magníficas explicaciones. Me suscribo con gusto, e ilusionado x ver más
¡Qué bueno que hayas encontrado la respuesta Alfo! Muchas gracias por tu comentario, ya vendrán más. Abrazo grande!
Magníficos todos tus vídeos.
Propongo:
Puedes hacer uno sobre túneles SSH?
Todos los que encuentro en español me parecen malos. Saludos desde España.
(Te voy a escribir esto en todos tus vídeos a ver si logro convencerte, jaja)
Che, antes que nada felicitaciones por el canal de verdad esta buenisimo y estos videos me estan salvando mil..
Te queria decir que fijate el link del discord porque se invalida la invitacion. No se bien como es la cosa con eso pero se que hay diferentes tipos de links para compartir. Un saludo crack
Hola Joaquín! Gracias por el comentario y por avisarme lo del Discord. Aparentemente el link anterior expiró así que acá te paso uno que no expira: discord.com/invite/vJgV6sh3bw. Lo voy a actualizar en las descripciones de los videos. Gracias y saludos!!!
No dejas ver el comando tecleado
Tengo una PC antigua tiene 2 ram y un dual core , en Windows 10 , si le pongo Linux funcionara mejor con 2 de ram ?
Hola Adrián, funcionar te va a funcionar pero deberías hacer una instalación mínima e instalar un gestor de ventanas liviano como xfce. Saludos
Como me perdí soy un aprendiz como la hago , gracias por ver mi comentario
Gestor de ventanas xfdc que
@@adrian64_13 Hola Adrián, mira este video: ua-cam.com/video/QBqUqDYgqyI/v-deo.html
"disown" es parecido a "nohup"?
Ok, lo vi en 21:40 jajaja, perdón
Jaja, te autorespondiste de nuevo. Un abrazo!
Madre mía, cuantos millones de cortes tienes en el video, muchacho. Te merece la pena tanto trabajo?
Por supuesto que vale la pena, tan sólo mira a cuanta gente le ha servido.
no entendi nada