On systems with, there's a good answer: use the STOP signal to stop the processes:
Stop any process you can. Then it won't be able to fork more processes. Stop them all. Then start cleaning up with kill -9.
If your system manager has set a per-user process limit on your computer, the good news is that your processes won't eventually crash the system. But the bad news is, when you try to run any command that isn't:
psNo more processes.
you can't because you're already at your limit.
If that happens, log on to another account or ask someone to run a command that will give a list of your processes. Depending on your system, the command is probably like one of these two:
yournameSystem V %
ps aux | grep
Then go back to your terminal and start stopping
If you get the
No more processes error, your shell must not have
a built-in kill command.
The C shell does.
Carefully type the next command to replace your shell with a
a mistake (if you do, you may not be able to log in again):