Are there any command to see how processes are working?
Solution 1:
strace
will show system calls made by a process. It won't give you an instruction-by-instruction view of what happens, but it will give the calls into the kernel performed.
Solution 2:
Just like strace
traces the system calls, you can use ltrace
to trace library calls.