Start a process with a name Start a process with a name linux linux

Start a process with a name


How can I start a process with a different name?

bash -c "exec -a <MyProcessName> <Command>"

Then you can kill the process with:

pkill -f MyProcessName