shellspells beta

truss

truss [ -fcaeildD ]  [  -  [ tTvx ]  [ ! ]  syscall   ,  ...
      ]   [  -  [ sS ]  [ ! ]  signal  , ...  ]  [  -  [ mM ]  [ !
      ]  fault  , ...  ]  [  -  [ rw ]  [ ! ]  fd  , ...  ]  [   -
      [  uU  ]  [ ! ]  lib  , ...  :  [ : ]  [ ! ]  func  , ...  ]
      [ -o outfile ]  command | -p pid ...

Trace the system calls of a command

The Solaris version of strace. A useful debugging tool. Sometimes this is the only way to trace and debug what a task is doing in certain situations.

Available on: Solaris

Examples

Trace a running task (PID 12910)

# truss -aef -wall -rall -p 12910

Run a command and trace it, writing trace information to a file

$ truss -aef -wall -rall -o truss.out date