I can see the background process using ps. But Is there a way to view the foreground process? For example, $nohup process1 & then ps -ef | grep "process1" would display the process ...
How can I find out who executed a particular command and which terminal was used to run it? Original: how can i know particular cmd is executed by whom and to know about my terminal