1。strace调试
strace ls
strace -e ls 查看命令调用的systemcall
strace -e trace=open,read ls /
strace -o output.txt ls
strace -t -p pid -o output.txt 跟踪pid进程,输出到output.txt文件中,并且添加时间戳