strace Command – Exclude Specified System Calls

stracesystem-calls

How can I run strace, and record all of syscall , but not read and not write?

Best Answer

Use:

strace -e '!read,write' your-command and args

If you want to learn more about a command, best it to read its documentation. The strace documentation is available in man format, so it's just a matter of running man strace. In there, you'll find a section about Filtering which describes the syntax of -e operands.

Related Question