Finding a file process ?

Hi,

I am trying to find a file that have a different name than it should be processing, the file name is ( Fifa15 )

is there a command to use?

I got that file by

ps -ef | grep fifa15

but how do I know what is running ?

thanks a lot, I am learning unix so sorry if that is a basic question :slight_smile:

Hello latinooo,

Welcome to forums, yes you can use lsof command for same purpose, it shows all the files which are currently being used/opened by processes. You can refer man lsof for more information too.

lsof "Input_file"

NOTE: I have checked/tried this is in bash .

Thanks,
R. Singh

The traditional Unix command is fuser .

fuser fifa15

lists the process(es) that has/have opened the file.