Ubuntu – How to find still running processes in a terminal


When I try to close a tab in Gnome Terminal, it says:

Close this terminal? There is still a process running in this terminal. Closing the terminal will kill it.

How can I find out what is still running? Note that there is nothing in the output of jobs. Thanks.

Best Answer

ps T

Selects all processes associated with the terminal.