How does strace connect to an already running process?
strace -p <PID> —-> To attach a process to strace. “-p” option is for PID of the process. strace -e trace=read,write -p <PID> –> By this you can also trace a process/program for an event, like read and write (in this example). So here it will print all such events that include read and write … Read more