Kory@lemmy.ml to linuxmemes@lemmy.world · 16 days agoTerminating a processlemmy.mlimagemessage-square98fedilinkarrow-up1805arrow-down144file-text
arrow-up1761arrow-down1imageTerminating a processlemmy.mlKory@lemmy.ml to linuxmemes@lemmy.world · 16 days agomessage-square98fedilinkfile-text
minus-squarekekmacska@lemmy.ziplinkfedilinkEnglisharrow-up2·16 days agops aux | grep <process>. kill <pid>
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up5·16 days agokillall works great for this.
minus-squareBonerMan@ani.sociallinkfedilinkarrow-up7arrow-down1·16 days agoAt that point you can just hard restart as well. Most motherboards accept 10 to 15 seconds of power button as “my OS is fucked please help” and restart the machine for you.
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up6·16 days agoThey also accept pulling the power cord out as “oh no” and shutdown for you!
minus-squareBonerMan@ani.sociallinkfedilinkarrow-up1·15 days agoThe most I work with restart, but I think you can configure it in the bios.
minus-squareWhyJiffie@sh.itjust.workslinkfedilinkEnglisharrow-up2·edit-216 days agokillall just kills all instances of a program, not everything. and also, long pressing the power button should just shut it down, no?
ps aux | grep <process>. kill <pid>
killall
works great for this.At that point you can just hard restart as well. Most motherboards accept 10 to 15 seconds of power button as “my OS is fucked please help” and restart the machine for you.
They also accept pulling the power cord out as “oh no” and shutdown for you!
The most I work with restart, but I think you can configure it in the bios.
killall just kills all instances of a program, not everything.
and also, long pressing the power button should just shut it down, no?
kill -9 $(pidof <process>)