How to check process id for services?

You can check the process id for specific service by using following command from your command prompt.

root@admin[]#pidof service_name

For example we need to check process id for mysql service

root@admin[]#pidof mysql

16140

About Anant 384 Articles
Senior technical writer