Below strace command can be used to capture the strace command output into a file.
In above command we are capturing strace on "ls" command. We can replace "ls" command with the command or proess against which we are running strace. In above example strace output is being redirected to /tmp/output.out file. The output filename can be changed accordingly.
strace -o /tmp/outfile.out ls
In above command we are capturing strace on "ls" command. We can replace "ls" command with the command or proess against which we are running strace. In above example strace output is being redirected to /tmp/output.out file. The output filename can be changed accordingly.
Products to which Article Applies
All Linux and UNIX environments
No comments:
Post a Comment