|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620176 | | Members: | 22813 | |
|
|
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
kill all the processes of a particular user |
Description
To kill all the processes of a particular user:
To see what you will do first (print only):
# ps -fU username | awk '{ print ("kill "$2)}'
Now, do the kill:
# ps -fU username | awk '{ system ("kill "$2)}' |
Example
ps -fU username | awk '{ system ("kill "$2)}' |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: bootinfo - display boot disk in IBM AIX
Example: bootinfo -b
[show me the details] |
coolcommand: dircount.sh - script to count number of files in all subdirectories of a given directory
Example: dircount.sh /usr/local
[show me the details] |
coolcommand: lsmod - list loadable kernel modules in linux
Example: lsmod
[show me the details] |
coolcommand: lssysconn - how to list connection info for systems and frames managed by IBM HMC
Example: lssysconn -r all
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51943 |
| Category AIX | 49009 |
| Category General UNIX | 47532 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|