未找到 Unix 命令 fuser

未找到 Unix 命令 fuser

我在 SunOS 5.10 上。当我尝试使用命令时fuser,出现未找到该命令的错误。

/home/user$fuser file.dat
ksh: fuser:  not found

但我能够获得 的手册页条目fuser

/home/user$man fuser
Reformatting page.  Please Wait... done

System Administration Commands                          fuser(1M)

NAME
     fuser - identify users of files and devices

SYNOPSIS
     /usr/sbin/fuser [-c | -d | -f]  [-nu] [-k | -s sig]  files [
     [- ] [-c | -d | -f]  [-nu] [-k | -s sig]  files] ...

DESCRIPTION
     The fuser utility displays the process IDs of the  processes
     that are using the files specified as arguments.

     Each process ID is followed by a letter code.  These  letter
     codes  are  interpreted  as follows. If the process is using
     the file as

知道如何修复吗?这与安装有关吗?

谢谢,Bonchi

答案1

手册页提到/usr/sbin/fuser- /usr/sbin/ 在您的 PATH 变量中吗?您可以通过 手动运行该命令/usr/sbin/fuser吗?

您可以编辑 .bashrc 或 .profile 以将 /usr/sbin 放入您的路径中:

PATH="$PATH:/usr/sbin"

相关内容