Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 5 down vote accepted

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

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.