coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Tuesday July 29, 2014


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 48 guests online

Newest Member

nbewwmbxog

Hit Counter
13740262 Visitors

cool Statistics
coolcommands:1345
Categories:83
Total queries:638072
Members:22813





Category Search coolcommands.com
Select Category:


coolcommand

pgrep and pkill - how to terminate processes
Description

You can use the pgrep and pkill commands to identify and stop command processes that you no longer want to run. These commands are useful when you mistakenly start a process that takes a long time to run.

To terminate a process:

a. pgrep - to find out the PID(s) for the process(es).

b. pkill - followed by the PID(s).

The following example illustrates how to find all the processes with a specific name (xterm) and terminate the xterm process that was started last.

# pgrep xterm
17818
17828
17758
18210
# pkill -n 18210

Note: If you need to forcibly terminate a process, use the -9 option to the pkill command.
Example

pkill -9 -n xterm

Return to search results

Random coolcommands

coolcommand: how to show extended interface info, collisions, errors, framing issues in Sun Solaris
Example: netstat -k hme0
[show me the details]
coolcommand: how to delete all arp entries in Linux
Example: for i in $(sed '1d' /proc/net/arp | awk '{print $1 }'); do arp -d $i; done
[show me the details]
coolcommand: conv.pl - script to convert text to binary and vice versa
Example: conv.pl -b "Convert this"
[show me the details]
coolcommand: dlnkmgr - Hitachi SAN HDLM software
Example: dnlkmgr view -path
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1166
audet37
kah00na32
Mariom24
lebjf00015

Top 5 Searches

Category Solaris53104
Category General UNIX52680
Category AIX51641
solaris23799
aix23176

Terms of Use
Privacy
Contact


 
coolcommands.com © 2014. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum