How find out which process is using a file in Linux?

You can use the fuser command, which is part of the psmisc package, like:

fuser file_name

You will receive a list of processes using the file.

You can use different flags with it, in order to receive a more detailed output.

You can find more info in the fuser’s Wikipedia article, or in the man pages.

Leave a Comment