Why do we add the script in /tmp

Hi there,

oday I’ve tried “Oopsie” and there’s one step that i could not understand. It is when you have to assign /bin/sh to cat
I dont really understand why it has to be in the dir /tmp, and why “the one and only” cat has been replaced.

I would appreciate if you can shine a light on this.

Thank you!