lsof (list open files) will show you a process’s open files.Not everything on Unix is a file, but lots of things are.
Let’s see how some simple Python code works under the hood:
f = open("file.txt")
f.readlines()
mkfifo my_pipe): this lets two unrelated processes communicate through a pipe.