问题描述
我已经开始使用fuser命令,它看起来非常有用.看来运作良好.但是我注意到一个小异常,那就是如果我使用gedit fuser打开文件并没有告诉我gedit已经访问了该文件.它显示了我测试过的所有其他过程,包括脚本等.
I have started using the fuser command and it looks very useful. It seems to work well. However I noticed a little anomaly which is that if I open a file with gedit fuser doesn't tell me that gedit has accessed that file. It shows all the other processes I have tested it with, including scripts etc.
如果正在使用Ubuntu 12.04,我会使用它.
I am using Ubuntu 12.04 if that makes any difference.
为什么不显示gedit?我有办法解决这个问题吗?
Why would it not show gedit? And is there a way I can get around this problem?
感谢阅读.
推荐答案
fuser仅显示当前打开的文件.许多编辑器不会使文件保持打开状态.他们打开它,阅读,然后关闭它.因此,当您对该文件运行融合器时,它不会显示任何内容,因为它当前未打开.
fuser is only going to show files that are currently open. Many editors don't leave the file open. They open it, read it, then close it. So when you run fuser on that file it doesn't show anything because it's not currently open.
这篇关于gedit文件的使用未显示在热熔器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!