Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem of Text file busy in the execution program under Linux

Shulou Source: shulou.com Published: 2022-06-01 12:16:41 10月05日 Update

This article mainly explains "how to solve the problem of Text file busy when the execution program appears under Linux". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the problem of Text file busy when the execution program appears under Linux".

Use the fuser xxx command to see which process the developed file is occupied by, and then close the process to solve the problem.

Note: if the xxx command is opened under ordinary root, but under ordinary users: fuser xxx is inconclusive.

Switch to root usage, and then execute fuser xxx, the process number will be displayed, and you can kill it.

Eg:

#. / Xfbdev: 0-fp / usr/share/fonts/X11/misc

. / Xfbdev: Text file busy

$fuser Xfbdev

$sudo su

# fuser Xfbdev

Xfbdev: 28784e

# ps aux | grep Xfbdev

Root 28784 0.9 0.2 4608 2640 pts/0 S + 12:48 0:00. / Xfbdev: 0-fp / usr/share/fonts/X11/misc

Root 30708 0.0 0.1 3792 1248 pts/1 S+ 12:49 0:00 grep Xfbdev

The solution of Text file busy problem

Author: liucy

A Text file busy error occurred when using scp to copy files across servers, resulting in an inability to complete the operation. Later, it was found that the error meant that the file was in use by a process and was locked, so it could not be copied. Later, it was verified that the above problems can be solved by using the fuser command, and the specific execution of the command is as follows:

Fuser-cdkux filename

Thank you for your reading, the above is the content of "how to solve Text file busy under Linux". After the study of this article, I believe you have a deeper understanding of how to solve this problem when Text file busy appears in the execution program under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Program command process problem file learning content copy error ordinary comment that is train of thought situation article is in more server is status Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Huawei NVidia macOS Xiaomi