I'm looking to list all of the files open at a certain time up on a UNIX box.
From looking on the internet, it looks as though lsof is the most common.
However have tried this and got the following:
ksh: lsof: not found
Now having gone into bash mode and hit tab twice I see that lsof isn't a command that is available to me on this particular UNIX box.
Does anyone know of another way to list all of the files open on a unix box.
lsof is a package that you have to add .you can download the file from internet as per your server .
File Size Information for sunfreeware.com
Place it in any directory (e.g. /root/software/lsof)
-
Go to that directory. Run the gunzip command (gunzip lsof-4.77-sol10-x86-local.gz)
-
Do a pkgadd (pkgadd -d lsof-4.77-sol10-x86-local)
-
It will show you something like the following :
root # pkgadd -d lsof-4.77-sol10-x86-local
The following packages are available: 1 SMClsof lsof (x86) 4.77
Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]:
Press enter (for default value all)
-
If in later stage it asks you whether or not to install some of the conflicting files, you may select yes.
-
The lsof utility is now ready to use.
-
Test it by running the command lsof
vbe
4
Since we dont know what OS, Jim's advice is still the best bet...
lsof in an open source tool, you can find binaries for most UNIX to download...