如何检查没有lsof的打开文件 [英] how to check open file without lsof

查看:232
本文介绍了如何检查没有lsof的打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linux中,使用lsof来检查文件是由哪个进程打开。我有一个Android设备,但没有lsof的命令。是否有可能找到哪个进程打开特定文件?

In linux, I use lsof to check the file is opened by which process. I have an android device, but no lsof command. Is it possible to find which process open the specific file ?

我将用它来验证在MediaPlayer持有的fd,但它应被关闭。

I will use it to verify the MediaPlayer hold a fd, but it should be closed.

推荐答案

安装busybox的,它有一个lsof的命令。

Install busybox, it has a lsof command.

这篇关于如何检查没有lsof的打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆