Explorar o código

[strace] Add example of tracing file operations

Adam Dobrawy %!s(int64=7) %!d(string=hai) anos
pai
achega
911b777839
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      pages/linux/strace.md

+ 5 - 1
pages/linux/strace.md

@@ -18,6 +18,10 @@
 
 `strace -p {{pid}} -T`
 
-- Start tracing a program by executing it:
+-- Start tracing a program by executing it:
 
 `strace {{program}}`
+
+- Start tracing file operations of a program:
+
+`strace -e trace=file {{program}}`