免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1545 | 回复: 3
打印 上一主题 下一主题

linux fuser -c 不能执行 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-08 17:53 |只看该作者 |倒序浏览
linux fuser -c 不能执行
本帖最后由 甲骨虫虫 于 2009-5-8 16:13 编辑

[oracle@hqnetapp4 ~]$ fuser -c /app
usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...
             [ - ] [ -n space ] [ -signal ] [ -kimuv ] name ...
       fuser -l
       fuser -V

  -a        display unused files too
    -k        kill processes accessing that file
    -i        ask before killing (ignored without -k)
    -l        list signal names
    -m        mounted FS
    -n space  search in the specified name space (file, udp, or tcp)
    -s        silent operation
    -signal   send 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]]]

的确没有 -c   但是 man fuser

FUSER(1)                                                  User Commands                                                  FUSER(1)

NAME
       fuser - identify processes using files or sockets

SYNOPSIS
       fuser [-a|-s] [-4|-6] [-n space] [-signal] [-kimuv] name ...
       fuser -l
       fuser -V

DESCRIPTION
       fuser  displays  the  PIDs of processes using the specified files or file systems.  In the default display mode, each file
       name is followed by a letter denoting the type of access:

              c      current directory.

              e      executable being run.

              f      open file. f is omitted in default display mode.

              r      root directory.

              m      mmap<A1><AF>ed file or shared library.

是有 -c参数,我的linux版本是:
[oracle@hqnetapp4 ~]$ uname -a
Linux hqnetapp4 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
[oracle@hqnetapp4 ~]$ cat /etc/is
isdn/      issue      issue.net  
[oracle@hqnetapp4 ~]$ cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
Kernel \r on an \m

请大虾帮忙解惑。

论坛徽章:
0
2 [报告]
发表于 2009-05-08 17:59 |只看该作者
顶起

论坛徽章:
1
2015年亚冠纪念徽章
日期:2015-11-03 10:11:03
3 [报告]
发表于 2009-05-08 18:01 |只看该作者
你不顶也没落下去

论坛徽章:
0
4 [报告]
发表于 2009-05-08 21:55 |只看该作者
看看fuse的版本,可能man手册的版本与使用的版本不一样
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP