[root@localhost test ~]$ fuser No process specification given Usage: fuser [ -a | -s | -c ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME... [ - ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME... fuser -l fuser -V Show which processes use the named files, sockets, or filesystems.
-a display unused files too -c mounted FS -f silently ignored (for POSIX compatibility) -i ask before killing (ignored without -k) -k kill processes accessing the named file -l list available signal names -m show all processes using the named filesystems -n SPACE search in this name space (file, udp, or tcp) -s silent operation -SIGNAL send this signal instead of SIGKILL -u display user IDs -v verbose output -V display version information -4 search IPv4 sockets only -6 search IPv6 sockets only - reset options
fuser命令用于報告進程使用的文件和網絡套接字。fuser命令列出了本地進程的進程號,那些本地進程使用file,參數指定的本地或遠程文件。對于阻塞特別設備,此命令列出了使用該設備上任何文件的進程。 fuser:identify processes using files or sockets :可以顯示出當前哪個程序在使用磁盤上的某個文件、掛載點、甚至網絡端口,并給出程序進程的詳細信息