kill command works under both Linux and UNIX/BSD like operating systems. Use ps command or pidof command to find out process ID (PID). Syntax: For example if process name is lighttpd, you can use any one of the following command to obtain process ID: OR use pidof command which is use to find the process ID of a running program: Above command tell you PID (3486) of lighttpd process. Now kill process using this PID: DO NOT USE killall command on UNIX system (Linux only command). You can also use killall command. The killall command kill processes by name (no need to find PID):Kill process using kill command under Linux/UNIX
Step #1: First, you need to find out process PID (process id)
ps aux | grep processname
pidof processname# ps aux | grep lighttpd
Output:lighttpd 3486 0.0 0.1 4248 1432 ? S Jul31 0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
lighttpd 3492 0.0 0.5 13752 3936 ? Ss Jul31 0:00 /usr/bin/php5-cg# pidof lighttpd
Output:3486
Step #2: kill process using PID (process id)
# kill 3486
OR# kill -9 3486
Where,killall command examples
# killall -9 lighttpd
Kill Firefox process:# killall -9 firefox-bin
As I said earlier killall on UNIX system does something else. It kills all process and not just specific process. Do not use killall on UNIX system (use kill -9).
Kill process using kill command under Linux/UNIX
Post a Comment
Bannerad
Artikel Terpopuler
-
Despite that at the end of this post you will find a filtered and somehow manually edited list of Pligg-based social bookmarking sites, this...
-
2016-08-09 18:38:19.0 Guangzhou Int'l Parcel Center received 2016-08-09 18:38:25.0 Guangzhou Int'l Parcel Center customs scan 20...
-
It seems the method for us to use is far simpler than my initial impressions - we need only add two small sections of code to our templates ...
-
Disaat-saat tertentu untuk menghilangkan kejenuhan kadang kala entertain (kesenangan) harus kita upayakan, demikian pula ketika kita berkuta...
-
Last month we showed you some of the more popular and useful Adobe AIR applications (see " 6 Adobe AIR Apps to Check Out ...
-
PicPick is an all-in-one software for software developers, graphic designers and home user. It has an intuitive interface and simple, elega...
-
About the author henkhei is man in the mirror where you can find everywhere henkhei . he specializes in topics of interest to techno gee...
-
Twitter pages have their own google page rank too in Google, so it is important to do that 5 mins drill better utilize your Twitter page.Thi...
-
A tablet PC is a wireless, portable personal computer with a touch screen interface. The tablet form factor is typically smaller than ...
-
Bio-Linux is an ideal system for scientists handling and analysing biological data. Bio-Linux 6.0 is a fully featured, powerful, config...
Tags
Blogumulus by Roy Tanck and Amanda Fazani