Operating System - HP-UX
1832073 Members
2977 Online
110034 Solutions
New Discussion

Re: Finding the openfiles

 
SOLVED
Go to solution
George Nikoloudis_1
Frequent Advisor

Finding the openfiles

hello
Is it possible to tell me how it is possible to get the files that are open from the command
8 REPLIES 8
Alan Casey
Trusted Contributor

Re: Finding the openfiles

fuser will show open files in a directory:

fuser -u .

A better tool is lsof, which you can download.
Alan Casey
Trusted Contributor

Re: Finding the openfiles

can get lsof at:

http://hpux.asknet.de/hppd/hpux/Sysadmin/lsof-4.55/

It doesn't require a reboot, it's just a binary.
George Nikoloudis_1
Frequent Advisor

Re: Finding the openfiles

I know about lsof but my unix is 64bit I have found only 32bit version. Can you tell me where I can download the 64 bit version of lsof, or how to compile the 32 bit verion in my system.
Uday_S_Ankolekar
Honored Contributor

Re: Finding the openfiles

Hi,

Get lsof installed as everyone said.
It is a good tool to have. You can download 32bit binary version and start using it but for 64 bit OS you need to download source and compile it before using.

-USA..
Good Luck..
Uday_S_Ankolekar
Honored Contributor

Re: Finding the openfiles

Hi,

Once you download lsof-4.55-ss-11.00.tar.gz uncompress it.

lsof-4.55/00.README.FIRST file has all the instructions for compiling and installing it for 64 bit.
It's pretty simple.

-USA...
Good Luck..
Alan Casey
Trusted Contributor

Re: Finding the openfiles

You can get the source code at:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.55/

Please can you assign some points,

thanks and good luck
Alan
George Nikoloudis_1
Frequent Advisor

Re: Finding the openfiles

I read the 00.README.First bbut there is no entry for 64 bit version compilation
Uday_S_Ankolekar
Honored Contributor
Solution

Re: Finding the openfiles

Hi, This is the installtion steps from the README file

$ ./Configure
(Do the inventory step, as you prefer.)
(Do the customization step, as you prefer.)
$ make
$ ./lsof -h

To get a list of UNIX dialect abbreviations:

$ Configure -h

Please don't be impatient -- read the documentation first.

* Read the current distribution's details in 00DIST.

* If you want technical details, read 00DCACHE and 00PORTING.

* If you want to cross-configure, read 00XCONFIG.

* If you're having trouble, read 00FAQ. (Please read 00FAQ before
you send a bug report.)

* Lsof contributors may find their names in 00CREDITS. (Thanks, again.)

* Read the lsof.man page file. Its nroff source is in lsof.8.

* Consider subscribing to the lsof-l mailing list -- read 00LSOF-L
for details.

Good Luck..