Why cannot run lsof?
I type lsof and want to see the opened files but I got
Code:
-bash: lsof: command not found Why? |
Hi,
lsof is probably not in your path (you are running the command as none root user, aren't you). Include the whole path when calling the command. I.e: /usr/sbin/lsof <options> Another, less preferable solution would be to add /usr/sbin to your PATH (it isn't included for a reason...). Hope this helps. |
Try to search the Absolute path of executable
Code:
whereis lsof |
.....or you can simply run the command as root.
To check what is in your path, do this: echo $PATH |
thomas2004ch
Name the distribution YOU ARE USING: Path of lsof on Suse : /usr/bin/lsof so lsof worked as a non-root on my OpenSuse 11.2 but as you say Quote:
You need root permissions for that !! |
All times are GMT -5. The time now is 12:55 PM. |