Posts about

making things

do other things

What happens when I run netstat?

I wanted to do a deep dive into each step of a common command I use, and I use netstat quite a bit. I will attempt to break down each step into syscalls as detailed by strace. So what happens when I type netstat -ntpl? To figure this out I’m going to run strace -f netstat -ntpl Strace will attach to the process, and show me all of the system calls that are being run under the hood, when we run that target command.