This is an example for those who believe in saving time.
You can create your own aliases to save your time from typing long commands again and again.
# alias p_id='echo -n '\''process name:'\'';read a;ps -e | grep firefox | cut -d '\'' '\'' -f 2'
process name:[name of the running process]
[output will be the process id]