Skip to content
EntityQ1050452· pop 10· linked from 198 articles

standard UNIX utility

Described at

The fuser utility shall write to standard output the process IDs of processes running on the local system that have one or more named files open. For block special devices, all processes using any file on that device are listed. The fuser utility shall write to standard error additional information about the named files indicating how the file is being used. Any output for processes running on remote systems that have a named file open is unspecified. The file is treated as a mount point and the utility shall report on any files open in the file system. The user name, in parentheses, associated with each process ID written to standard output shall be written to standard error. Provide a default value for the internationalization variables that are unset or null. (See XBD Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.) If set to a non-empty string value, override the values of all the other internationalization variables. Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error. Determine the location of message catalogs for the processing of LC MESSAGES. When standard output and standard error are directed to the same file, the output shall be interleaved so that the filename appears at the start of each line, followed by the process ID and characters indicating the use of the file. Then, if the -u option is specified, the user name or user ID for each process using that file shall be written. A shall be written to standard error after the last output described above for each file operand. writes to standard output the process IDs of processes that are using the current directory and writes to standard error an indication of how those processes are using the directory and the user names associated with the processes that are using the current directory. writes to standard output the process IDs of processes that are using any file in the file system which is mounted on and writes to standard error an indication of how those processes are using the files. writes to standard output the process IDs of processes that are using the file which is named by and writes to standard error an indication of how those processes are using the file. writes to standard output the process IDs of processes that are using any file which is on the device named by and writes to standard error an indication of how those processes are using the file. writes to standard output the process IDs of processes that are using the file itself and writes to standard error an indication of how those processes are using the file.

Excerpt from a page describing this subject · 8,120 chars · not written by Vinony

Wikidata facts

Show 2 more facts
Sources (2)

via Wikidata · CC0

Article · 中文

Unix命令fuser用于显示哪些进程正在使用给定的文件、文件系统或。例如,要查看访问USB驱动器的进程ID及其用户: $ fuser -m -u /mnt/usb1/mnt/usb1: 1347c(root) 1348c(guido) 1349c(guido) 该命令显示使用指定文件或文件系统进程的进程标识符。在默认的显示模式下,每个文件名后跟一个字母,表示访问类型: c当前目录。e正在运行的可执行文件。f打开的文件。F打开的写入文件。r根目录。mmmap的文件或共享库 该命令还可以用来检查哪些进程正在使用网络端口: $ fuser -v -n tcp 80 USER PID ACCESS COMMAND80/tcp: root 3067 F.... (root)httpd apache 3096 F.... (apache)httpd apache 3097 F.... (apache)httpd 如果没有访问任何文件或发生致命错误,该命令将返回非零代码。如果至少有一次访问成功,则返回零。“fuser”的输出可能有助于诊断尝试卸载文件系统时产生的“资源繁忙”消息。

Abstract from DBpedia / Wikipedia · CC BY-SA

Available in 10 languages

via Wikidata sitelinks · CC0