IT dragons tamed since 2006 (with 732 solutions and growing)

[login]
[join]

your IP[54.162.234.109]




If you thought this solution was helpfull, please login and vote. Not a member? click here

ID726
TitleDetermine the process name with the highest number of instances.
Byjohn
Keywordsprocess instance
Categoryscripts
Votes0
Views73
Score73
Date2016-10-26
Body
[root@sftp02]# ps -e| gawk '{count[$NF]++}END{for(j in count) print ""count[j]":",j}'|sort -rn|head
-n20 5: mingetty 3: udevd 3: sshd 3: kdmflush 3: ext4-dio-unwrit 3: bash 2: scxcimprovagt 2: events/0 1: watchdog/0 1: vmw_pvscsi_wq_2 1: vmtoolsd 1: vmmemctl 1: usbhid_resumer 1: sync_supers 1: sudo 1: su 1: stopper/0 1: sssd_pam 1: sssd_nss 1: sssd_be [root@sftp02]# ps -e|grep mingetty 2658 tty2 00:00:00 mingetty 2660 tty3 00:00:00 mingetty 2662 tty4 00:00:00 mingetty 2664 tty5 00:00:00 mingetty 2670 tty6 00:00:00 mingetty [root@sftp02]#
SharediggDigg this solutiondel.icio.usPost to del.icio.usSlashdotSlashdot it!email to a friend
PrintPrint This Solution Print
If you thought this solution was helpfull, please login and vote. Not a member? click here


Latest News

Thanks to Dave for hosting this site!

Paying the Rent



Advanced Search:

Choose body, keywords, title, or all to include in search 
words to include in search 
and(+)

Choose body, keywords, title, or all to include in search 
additional words to include in search 
not(-)

Choose body, keywords, title, or all to exclude in search 
words to exclude from search 


catagory
order by






diggDigg Dracko
del.icio.usPost to del.icio.us
SlashdotSlashdot us!




Don't forget to vote!
Powered by John Core
Bye!

Dracko by John Core

me

View John Core's profile on LinkedIn


Certifications
security logo saber ccsa logo ccna-logo hbss veritas

Technologies
oracle_logo
solaris_logo linux-logo openstack_logo vbox_logo splunk storagetek_logo sun_logo oraclevm_logo brocade_logo bsd_logo

Languages
c-logo bash-logo php-logo

Employers
PlanetPayment Medecision AWi PennStateHershey DISA DLA cim Sun

Consulting
KMBS PNC FBI CCS PTD Sentinel