Pid of process by their own name on Linux

Process pid by name:

1Command:

pidof <process-name>

2Usage example:

pidof apache2