~andreicek


Output strace of a bin to a file

I’ve needed to grep on a strace for a file. Here is how to pipe it out to a file:

strace ./bin 1>output.txt 2>&1

or if you wanna use less:

strace ./bin 2>&1 | less

Go back to homepage