Close libreoffice Writer via terminal on Ubuntu

Asked

Viewed 395 times

0

what command can I use to close the libreoffice Writer via terminal in Ubuntu? Thank you.

  • kill -9 <ID-DO-PROCESSO>. To capture id use ps aux | grep libre. Or use killall <Nome-do-processo>

  • @Valdeirpsr for this command ps aux | grep libre that passed me I managed to find the path of libreoffice and used the following command killall /usr/lib/libreoffice/program/soffice.bin to close and it worked, Thank you

1 answer

3


Try using the following command

ps aux | grep -i office | awk {'print $2'} | xargs kill -9

Or the shorter version

kill -9 `pgrep -lf soffice.bin | awk {'print $1'}`

Browser other questions tagged

You are not signed in. Login or sign up in order to post.