Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-10 00:21:37 +00:00
parent 15848b0938
commit 9420175cb8
27 changed files with 159 additions and 74 deletions

View File

@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
- Start tracing a specific process by its PID:
`strace {{[-p|--attach]}} {{pid}}`
`sudo strace {{[-p|--attach]}} {{pid}}`
- Trace a process and filter output by system call [e]xpression:
`strace {{[-p|--attach]}} {{pid}} -e {{system_call,system_call2,...}}`
`sudo strace {{[-p|--attach]}} {{pid}} -e {{system_call,system_call2,...}}`
- Count time, calls, and errors for each system call and report a summary on program exit:
`strace {{[-p|--attach]}} {{pid}} {{[-c|--summary-only]}}`
`sudo strace {{[-p|--attach]}} {{pid}} {{[-c|--summary-only]}}`
- Show the time spent in every system call and specify the maximum string size to print:
`strace {{[-p|--attach]}} {{pid}} {{[-T|--syscall-times]}} {{[-s|--string-limit]}} {{32}}`
`sudo strace {{[-p|--attach]}} {{pid}} {{[-T|--syscall-times]}} {{[-s|--string-limit]}} {{32}}`
- Start tracing a program by executing it: