How do I list currently running shell scripts?

Solution 1:

ps -ef will show you list of the currently running processes. Last field is the process name and parameters. Find the process you are looking for, and look at the 2nd column. 2nd column is process id or pid.

Then do kill -9 <pid> to kill that particular process.

Solution 2:

If you want a more stripped down version with better ASCII art (in my opinion I suppose) you can do

pstree -p