Can I assign a Command to a specific PID so I can kill a predetermined PID
I have a specific process or command that I would like to kill but it appears PIDs are assigned randomly (or in an order I don't understand)to processes. At times I would like to kill a specific Command or process based on what the command line topreports it as. Example if I want to kill gedit I have to type the specific assiged PID (typing kill gedit does not work).
Is there a command line string I can enter that says assign or reserve this command to PID Number XXX? As another option can I type a command that says kill this specific process which is always predetermined to be assigned to a process number? Is there a different approach I'm not considering?
A million thanks,