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.
  • Наука та технологія

КОМЕНТАРІ • 35

  • @inwx
    @inwx  3 роки тому +6

    ¿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.

  • @emmanuellazarte8904
    @emmanuellazarte8904 3 роки тому +2

    Sos un capo, me re sirve para la universidad, gracias! :D

  • @alfoom6922
    @alfoom6922 3 роки тому +2

    24:25
    Gran advertencia, sí señor

  • @kalimansalazar8607
    @kalimansalazar8607 Рік тому

    Buen trabajo .. Che de investigación... felicito tu sencilles y cortesía...Abrazos.. Tienes un Amigo en mexico..

  • @ronalddarwin3519
    @ronalddarwin3519 3 роки тому +1

    Excelente explicación, gracias!!!

  • @alfoorego8380
    @alfoorego8380 3 роки тому +1

    Gran, gran vídeo. Realmente ilustrativo. Bravo

    • @inwx
      @inwx  3 роки тому

      Gracias Alfo!!!!

    • @alfoorego8380
      @alfoorego8380 3 роки тому

      @@inwx waiting for your next video. Don't give it up. Ilústranos!

  • @alexiscortes4478
    @alexiscortes4478 3 роки тому +1

    Gracias Brother, me gusta tu explicacion, gracias por tu tiempo. un Saludo

    • @inwx
      @inwx  3 роки тому

      Gracias Alexis por el comentario! Un abrazo!

  • @JuanFernandez-lg2pd
    @JuanFernandez-lg2pd Рік тому

    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

  • @abelromeroruiz5702
    @abelromeroruiz5702 3 роки тому +4

    Muy buen contenido

    • @inwx
      @inwx  3 роки тому

      Gracias Abel, un abrazo!

  • @wfmc202
    @wfmc202 3 роки тому +2

    Gracias por compartir el conocimiento hermano saludos

  • @andremarin8575
    @andremarin8575 3 роки тому +2

    ¡Crack!

  • @ortigoleeeee33
    @ortigoleeeee33 3 роки тому +4

    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

    • @inwx
      @inwx  3 роки тому +1

      Hola Agus, genial que estés aprendiendo! Si te encuentras con algún problema, me avisas. Saludos!

  • @calebadonay6358
    @calebadonay6358 Рік тому

    esto es oro!!!,muchas graciasss!!!

  • @trafalgard.andrade7936
    @trafalgard.andrade7936 3 роки тому +1

    muy bueno !!

  • @alfoom6922
    @alfoom6922 3 роки тому +3

    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

    • @inwx
      @inwx  3 роки тому

      ¡Qué bueno que hayas encontrado la respuesta Alfo! Muchas gracias por tu comentario, ya vendrán más. Abrazo grande!

  • @alfoom6922
    @alfoom6922 3 роки тому +2

    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)

  • @gravitypapa
    @gravitypapa 3 роки тому +2

    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

    • @inwx
      @inwx  3 роки тому +1

      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!!!

  • @montesdeocaaldo8604
    @montesdeocaaldo8604 3 роки тому

    No dejas ver el comando tecleado

  • @adrian64_13
    @adrian64_13 3 роки тому +1

    Tengo una PC antigua tiene 2 ram y un dual core , en Windows 10 , si le pongo Linux funcionara mejor con 2 de ram ?

    • @inwx
      @inwx  3 роки тому

      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

    • @adrian64_13
      @adrian64_13 3 роки тому

      Como me perdí soy un aprendiz como la hago , gracias por ver mi comentario

    • @adrian64_13
      @adrian64_13 3 роки тому

      Gestor de ventanas xfdc que

    • @inwx
      @inwx  3 роки тому

      @@adrian64_13 Hola Adrián, mira este video: ua-cam.com/video/QBqUqDYgqyI/v-deo.html

  • @alfoom6922
    @alfoom6922 3 роки тому +1

    "disown" es parecido a "nohup"?
    Ok, lo vi en 21:40 jajaja, perdón

    • @inwx
      @inwx  3 роки тому

      Jaja, te autorespondiste de nuevo. Un abrazo!

  • @PulpoensalsA
    @PulpoensalsA 2 роки тому

    Madre mía, cuantos millones de cortes tienes en el video, muchacho. Te merece la pena tanto trabajo?

    • @inwx
      @inwx  2 роки тому

      Por supuesto que vale la pena, tan sólo mira a cuanta gente le ha servido.

  • @victorjoaquin4
    @victorjoaquin4 2 роки тому

    no entendi nada