That life could be as simple as shell commands.
Thought processes out of control and using up too much memory $sudo top -o mem see what might be out of control, then $sudo kill PID to stop the process. Oh wait still running $sudo kill -9 PID should do the trick. Maybe it is not a memory issue put a processor overrun, no problem change the sort $sudo top -o cpu and away you go.
Need to locate something use the find command. No idea where to start, search from root and grep it.
Maybe you just need to completely get away and separate yourself from a situation, no problem chroot and when you are done and ready to come back exit.
Best of all would it not be great to just sleep 2d