---

fuser, files, and processes

“Basic usage is: fuser filename.txt, which will give you this
output:

/home/juliet/filename.txt: 13644

That number is the ID of the process that’s accessing the file.
Use fuser -u filename.txt to see which user owns the process:”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis