How to kill a process like opened new file in Linux
[ivreddy@localhost practice]$ ps -ef | grep new
ivreddy 3072 1 3 23:00 ? 00:00:00 gedit
/home/ivreddy/Desktop/new file
ivreddy 3076 2901 1 23:00 pts/0 00:00:00 grep new
[ivreddy@localhost practice]$ kill -9 3072
[ivreddy@localhost practice]$ ps -ef | grep new
ivreddy 3099 2901 0 23:01 pts/0 00:00:00 grep new
[ivreddy@localhost practice]$
How to kill a browser in Linux
[ivreddy@localhost ~]$ ps -ef | grep firefox
ivreddy 26674 1 3 12:49 ? 00:00:10 /usr/lib/firefox-3.6/firefox
ivreddy 26832 26298 0 12:54 pts/1 00:00:00 grep firefox
[ivreddy@localhost ~]$ kill -9 26674
[ivreddy@localhost ~]$ ps -ef | grep firefox
ivreddy 26837 26298 0 12:54 pts/1 00:00:00 grep firefox
Note : Use kill -9 <process id> to kill forcely
[ivreddy@localhost practice]$ ps -ef | grep new
ivreddy 3072 1 3 23:00 ? 00:00:00 gedit
/home/ivreddy/Desktop/new file
ivreddy 3076 2901 1 23:00 pts/0 00:00:00 grep new
[ivreddy@localhost practice]$ kill -9 3072
[ivreddy@localhost practice]$ ps -ef | grep new
ivreddy 3099 2901 0 23:01 pts/0 00:00:00 grep new
[ivreddy@localhost practice]$
How to kill a browser in Linux
[ivreddy@localhost ~]$ ps -ef | grep firefox
ivreddy 26674 1 3 12:49 ? 00:00:10 /usr/lib/firefox-3.6/firefox
ivreddy 26832 26298 0 12:54 pts/1 00:00:00 grep firefox
[ivreddy@localhost ~]$ kill -9 26674
[ivreddy@localhost ~]$ ps -ef | grep firefox
ivreddy 26837 26298 0 12:54 pts/1 00:00:00 grep firefox
Note : Use kill -9 <process id> to kill forcely
No comments:
Post a Comment