linux查看一个文件正被那些程序使用

16658阅读 0评论2011-05-13 piaoyizu
分类:LINUX

linux查看一个文件正被那些程序使用
2008/03/04 15:25
fuser -v /path/to/file

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

udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]
上一篇:关于s5pc110系统休眠的情景分析(2)
下一篇:audio驱动注册的简明流程.