Friday, October 26, 2012

kill a process id (pid)


How to kill a process in linux

when you open a file or it it is not opening or any trouble with its process then you can simple kill the process in linux
to see the current running process in linux
#ps -aux
it will show the process like this

to kill the process simple kill the pid ( process id)
#kill pid
means if would like to kill a process runing on 2049 means do like this
#kill  -9 2049
here it will kills the 2049 pid

No comments:

Post a Comment