Trace linux system function calls

MOnitor chdir system call

strace -F -f -echdir -p PID

Open sys call

strace -F -f -eopen -p PID

Log output to a file

strace -F -f -eopen -p PID -o log_strace.txt