trace
Linux: Everything is a file; peekfd: peek write/read of every file
· β˜• 2 min read
Most of the data flows in Linux, including inter-process communication, sockets, etc., are implemented through file descriptors (fd) reading and writing. When troubleshooting, if you can peek at the fd traffic, many problems can be quickly proved/falsified. This article introduces an old tool peekfd, which can accomplish this task in a certain environment.