Ravi Sir's Cards › AWS
lsof vs strace
This comparison card contrasts lsof and strace. lsof is described as which files and ports are open. strace is described as what system calls run now. The card pairs lsof with leaks, deleted files, and strace with hangs, errors.
Read card text
What this card says
Use
lsof
Which files and ports are open.
strace
What system calls run now.
Key points
A snapshot.
Live, slows the process.
Example
lsof -p 1234
Use when
Leaks, deleted files.
Hangs, errors.