Logging out other users from the command line

How to Terminate Stuck or Unwanted User Sessions in Linux

Today I've learned the difference between "killall" (which kills all processes by a name) and "pkill" (which sends a signal processes based on name).

They both use SIGTERM.

However, and this is verified by "pkill xxxx" where xxxx is the process name which I can use as a parameter for killall and me printing the exit code for pkill which is always 1, I have not managed to kill the process xxxx with pkill.

Thanks to me giving the command "pkill xxxx" to a support engineer and them giving it to the customer, I'll have to sit on a troubleshooting call tonight as last night their attempt yesterday didn't show the expected results as pkill didn't find the process I wanted it to kill.

Thanks pkill!

#thalesfromthesupportdesk
#linux #pkill #killall

Annoyances fixed (3) slapstick mode

With too many things to do (and no time to waste in this chaos world rat race in outer space) I tried a new idea today.

Imagine this annoyance : Desktop running Debian (with surname GNU/Linux if you prefer) with a desktop environment which is not KDE, GNOME or does not depend on fvwm95. After logging out, when going out or going to sleep I’ve been furious that lots of commands keeping running in the background.  And I was currently too impatient to search for a really really long time for logout session files options where this could be worked around.

So today I tried a new idea before … (cough) … NOT logging out :

pkill -u my_desktop_username_here

Works great! Can recommend! 🙂

btw

/me faithful fan of pkill since long long time.

/leave

/join #happiness

 

#happiness #linux #opensource #pkill

pkill - Wikipedia

The broad lines of the move from #Chrome to #Firefox are done.

Interesting. I closed all my Chrome windows. Then I do a check with `ps` and I still find Chrome processes running.

Bug?

"Feature?" (Yep, the quotes are deliberate.)

I had to use `pkill chrome` twice to kill the stragglers.

#ps #processes #bug #feature #pkill

Trabalhando com processos no Linux
Saber como parar, colocar em segundo plano e até saber qual processo está exaurindo os recursos do host são importantes para qualquer administrador.

Tarefas como verificar os processos que estão a executar, mudar a prioridade de execução e terminar os processos são exigidas para qua
https://www.certificacaolinux.com.br/trabalhando-com-processos-no-linux/
#HUP #kill #killall #pgrep #pkill #Processos #ps #pstree #signals #sinais #TERM #top #TSTP

Trabalhando com processos no Linux - Certificação Linux

Saber como parar, colocar em segundo plano e até saber qual processo está exaurindo os recursos do host são importantes para qualquer administrador.

Certificação Linux