mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 00:47:05 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user