{"repo":"JakWai01/lurk","free":true,"listed":false,"github":"https://github.com/JakWai01/lurk","clone":"git clone https://github.com/JakWai01/lurk.git","description":"A pretty (simple) alternative to strace.","language":"Rust","stars":1147,"topics":["rust","strace","cli","command-line-tool","terminal"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"lurk lurk is a simple and pretty alternative to strace . It allows the user to trace system calls of a process or of a command. In contrast to strace , lurk focuses on a simple, yet pretty, user experience while implementing the most important use cases of strace . Demo Features - Supports an opinionated subset of strace flags. - Supports JSON output for further processing via e.g. jq - Uses colorized, formatted output ;-). Installation cURL Cargo Arch Linux Usage To get a quick overview, you can run lurk --help : Basic trace Basically, there are two ways of tracing system calls. You can either execute a command directly or attach to a running process by providing the process ID (PID) via --attach . In the latter case, the command has to be run with escalated privileges ( sudo ). Executing a command Attaching to a running process Filtering with --expr Unlike in strace , lurk only supports --expr trace . Since this flag behaves almost exactly like in strace , here a short, slightly changed, excerpt of the strace manpage on how to use lurk --expr trace : Note : When negating a statement with ! , make sure to escape it ( \\! ) when using bash. Filtering for system calls not containing the letter o Filtering only for all system calls taking a file as an argument Suppress error for prctl system call Only output openat , close and mmap system calls Using as a Rust library See the tracer example. Acknowledgements - sharkdp/fd as an inspiration on how to structure a Rust CLI and its R","default_branch":null,"files":null,"tree":[],"storefront":"/r/JakWai01","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JakWai01/lurk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}