Task locked
In Linux how can I see and kill a locked task (...in Windows ...CNTRL+ALT+CANC ...) ?
Thanks. |
I don't know what you mean by "locked". If you mean hanged, you can use `ps' to get a list of processes (I suggest you either grep it, or page it w. `less' or $PAGER), and `kill' to kill them by pid, or `killall' to kill them by name.
hth --Jonas |
Code:
ps aux | grep <process> Code:
kill <process_ID (pid)>p |
Quote:
...now I cannot find the meanings in the field "STAT" .........how is when a task is "hanged" ? USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.2 0.1 1580 516 ? S 15:23 0:02 init [5] root 2 0.0 0.0 0 0 ? SWN 15:23 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? SW< 15:23 0:00 [events/0] root 4 0.0 0.0 0 0 ? SW< 15:23 0:00 [kblockd/0] root 5 0.0 0.0 0 0 ? SW 15:23 0:00 [kapmd] |
Quote:
I'm not sure if it's as universal as grep, but IIRC it's been on most every system I've used. Oh, and in one of the window managers, Ctrl-Shift-Esc brings up a graphical task manager, like in Windows. I forget which though (not Fluxbox :))... anyone able to confirm? Quote:
Code:
PROCESS STATE CODES HTH, Andrzej |
Quote:
Thanks a lot. |
If its an X graphical task, xkill is perfect. You click on the window and you kill it.
Another way for doing pkill without pkill: Code:
kill $(pidof <app_name>) |
All times are GMT -5. The time now is 02:16 PM. |