question about fstat in freebsd15?

Dear all:
i want to know which program open my desired file in freebsd15 and used below command
$fstat xxxfile
this xxxfile has been opened by gedit... but why "fstat xxxfile" command will show nothing ?
$ps -aux|grep gedit
we will see xxxfile has been opened by gedit ?
thanks.
i want to know which program open my xxxfile in freebsd15 .........which step or command can help me ...thanks.
 
You ask "in FreeBSD 15" - so are you saying this used to work in a previous version of FreeBSD, but now does not?

Or just that you happen to be using FreeBSD 15 and are asking about that environment? I think it's this, but just checking that's what you mean.
 
I think gedit is copying the original file to a temporary file and then editing it, rather than editing the original file directly.
I don't know about gedit, but vi works like this.
 
You ask "in FreeBSD 15" - so are you saying this used to work in a previous version of FreeBSD, but now does not?

Or just that you happen to be using FreeBSD 15 and are asking about that environment? I think it's this, but just checking that's what you mean.
Dear richardtoohey2:
i am new guy, now using freebsd15 . so i am not sure the fstat how to work in freebsd14,and 15....thanks.
 
Back
Top