Operating System - HP-UX
1832986 Members
2774 Online
110048 Solutions
New Discussion

how to check the open files?

 
SOLVED
Go to solution
Guna_2
Regular Advisor

how to check the open files?

Hi all,

If i want to find what all are the files
opened currently and by which users.

How can i get this?

Any one please help me

Bye
Guna
8 REPLIES 8
Warren_9
Honored Contributor
Solution

Re: how to check the open files?

Hi Guna,

use the "lsof" to list the opened file.

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

GOOD LUCK!!
Andrew Young_2
Honored Contributor

Re: how to check the open files?

Hi.

I use lsof.

Its not standard in HP-UX nor officially supported but can be obtained form here:

http://hpux.cs.utah.edu/

Again all the usual warnings about using at you own risk, etc.

HTH

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Senthil Prabu.S_1
Trusted Contributor

Re: how to check the open files?

Hi,
Check this thread - same topic is discussed there...
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1084531

HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
George Liu_4
Trusted Contributor

Re: how to check the open files?

use lsof
Jason Ray
Frequent Advisor

Re: how to check the open files?

Would definitely go with lsof.
Here is another site that you can find it on:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/

Sp4admin
Trusted Contributor

Re: how to check the open files?

Hi,

I think the best tool for finding open files is "lsof". This is a free product you can donload from HP.

sp,
Paul Sperry
Honored Contributor

Re: how to check the open files?

the /usr/sbin/fuser command lists the process IDs of processes that have files open.

Do a man fuser
Guna_2
Regular Advisor

Re: how to check the open files?

Thanks for all of ur eforts..