coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Saturday February 6, 2016


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 23 guests online

Newest Member

nbewwmbxog

Hit Counter
17305445 Visitors

cool Statistics
coolcommands:1346
Categories:83
Total queries:655555
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: mcopy - how to copy MSDOS files to/from Unix
Example: mcopy a:foo.exe
[show me the details]
coolcommand: how to make the permission of a file the same as another reference file in Linux
Example: chmod --reference file1 file2
[show me the details]
coolcommand: one-liner to kill all of your httpd processes
Example: kill -9 `lsof -t -i TCP:80`
[show me the details]
coolcommand: mkhmcusr command will create a user on the Hardware Management Console
Example: mkhmcusr -u < user-name > -a < access-name > [-d "description" ] [ —help ]
[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 UNIX57764
Category AIX54328
Category Solaris54036
solaris23970
aix23384

Terms of Use
Privacy
Contact


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