coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday April 19, 2015


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 31 guests online

Newest Member

nbewwmbxog

Hit Counter
15696398 Visitors

cool Statistics
coolcommands:1346
Categories:83
Total queries:647242
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: mpio_get_config - display MPIO and hdisk info associated with a DS3000/DS4000 SAN storage
Example: /usr/bin/mpio_get_config -Av
[show me the details]
coolcommand: pkgadd - how to install software packages on a Sun Solaris server
Example: pkgadd -d /cdrom/cdrom0/s0/Solaris_2.6 SUNWaccr
[show me the details]
coolcommand: how to view attached scsi devices in Linux
Example: cat /proc/scsi/scsi
[show me the details]
coolcommand: oslevel - how to show the filesets above a specific maintenance level in IBM AIX
Example: oslevel -rg 5200-03
[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

lvo1167
audet37
kah00na32
Mariom24
lebjf00015

Top 5 Searches

Category General UNIX54846
Category Solaris53614
Category AIX53420
solaris23822
aix23300

Terms of Use
Privacy
Contact


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