Command-Line – How to See How Processes Are Working

command lineprocess

I'm very new to Ubuntu. If I do this sort of command say:

cp file1 file2

The shell creates a child process and that child process will call cp, which in turn call exec system call of operating system.

Are there any command to visualize this process from my terminal?

Best Answer

Just like strace traces the system calls, you can use ltrace to trace library calls.

Related Question