如何在Linux下解锁文件夹/文件

时间:2021-11-06 00:28:59

Today I had the problem that I couldn't delete a folder because "it was busy".

今天我遇到的问题是我无法删除文件夹,因为“它很忙”。

How can I find out which application to blame for that or can I just delete it with brute force?

我怎样才能找出应该归咎于哪个应用程序,或者我可以用蛮力删除它?

3 个解决方案

#1


11  

Use lsof to find out what has what files are open.

使用lsof找出哪些文件是打开的。

man lsof or have a look here

男人lsof或看看这里

#2


7  

The fuser Unix command will give you the PIDs of the processes accessing a file.

fuser Unix命令将为您提供访问文件的进程的PID。

#3


2  

fuser will show you which processes are accessing a file or directory.

fuser将显示哪些进程正在访问文件或目录。

#1


11  

Use lsof to find out what has what files are open.

使用lsof找出哪些文件是打开的。

man lsof or have a look here

男人lsof或看看这里

#2


7  

The fuser Unix command will give you the PIDs of the processes accessing a file.

fuser Unix命令将为您提供访问文件的进程的PID。

#3


2  

fuser will show you which processes are accessing a file or directory.

fuser将显示哪些进程正在访问文件或目录。