In my example, I am running a command that takes very long to be executed (several hours).
I don't really remember if I entered make or make -j4.
Of course I could stop it and press up key or check history to know it, but that would stop the process and I don't want that to happen (in case it is already doing make -j4).
Is there any way to know which command is being executed without stopping the process?
pgrep -a make– John1024 Dec 05 '18 at 08:48makeyou can stop and restart it and it should pick up where it left off. – Stack Exchange Broke The Law Dec 06 '18 at 05:42