Skip to main content
mention OSX, Solaris and AIX
Source Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k

In Linux, you have strace:

strace -f sh -c 'grep word1 file > file.txt' 

Here we use -f to tell strace to trace child process.

In *BSD, you have dtruss (which use dtrace underlying):

dtruss -f sh -c 'grep word1 file > file.txt' 

OSX has trace. Historical Unix systems have truss (Solaris, AIX, etc.).

In Linux, you have strace:

strace -f sh -c 'grep word1 file > file.txt' 

Here we use -f to tell strace to trace child process.

In *BSD, you have dtruss (which use dtrace underlying):

dtruss -f sh -c 'grep word1 file > file.txt' 

In Linux, you have strace:

strace -f sh -c 'grep word1 file > file.txt' 

Here we use -f to tell strace to trace child process.

In *BSD, you have dtruss (which use dtrace underlying):

dtruss -f sh -c 'grep word1 file > file.txt' 

OSX has trace. Historical Unix systems have truss (Solaris, AIX, etc.).

deleted 3 characters in body
Source Link
cuonglm
  • 158.2k
  • 41
  • 342
  • 420

In Linux, you have strace:

strace -f sh -c 'grep word1 word2file > file.txt' 

Here we use -f to tell strace to trace child process.

In *BSD, you have dtruss (which use dtrace underlying):

dtruss -f sh -c 'grep word1 word2file > file.txt' 

In Linux, you have strace:

strace -f sh -c 'grep word1 word2 > file.txt' 

Here we use -f to tell strace to trace child process.

In *BSD, you have dtruss (which use dtrace underlying):

dtruss -f sh -c 'grep word1 word2 > file.txt' 

In Linux, you have strace:

strace -f sh -c 'grep word1 file > file.txt' 

Here we use -f to tell strace to trace child process.

In *BSD, you have dtruss (which use dtrace underlying):

dtruss -f sh -c 'grep word1 file > file.txt' 
Source Link
cuonglm
  • 158.2k
  • 41
  • 342
  • 420

In Linux, you have strace:

strace -f sh -c 'grep word1 word2 > file.txt' 

Here we use -f to tell strace to trace child process.

In *BSD, you have dtruss (which use dtrace underlying):

dtruss -f sh -c 'grep word1 word2 > file.txt'