McBear Holden
McBear Holden

Reputation: 5901

On Linux,File created by which program?

I have the same questions as this post Only that my question is on the Linux platform

I have a directory in my folder and I don't know which program has created it Is it possible to know ?

Thanks

Upvotes: 0

Views: 3171

Answers (3)

michel-slm
michel-slm

Reputation: 9756

The answer is the same as in the previous question -- generally, no.

However, you can look at the owner and group of this directory; if the program that creates it is a daemon (service) process, it might be running under its own user / group and thus the files / directories created might have those ownerships.

What does this say?

ls -l /path/to/the/directory

Upvotes: 1

Jesus Ramos
Jesus Ramos

Reputation: 23268

Same answer applies, unless the file itself has metadata like some .doc files and such that contains the information you cannot know what created the file (unless you create a kernel module to intercept block requests to create new files and check what application submitted the request but that is probably not what you want to do).

Upvotes: 1

Seth Carnegie
Seth Carnegie

Reputation: 75130

The answer is the same as the one for question you linked. Linux doesn't store information about the creator of the file as far as which program did it. But, like the other answer said, you could create a monitor and record that information yourself.

Upvotes: 0

Related Questions