Off the top of my head, I would try a combination of lsof, grep, awk, and
and sort..

Something like

lsof -<just files> | awk '{print $<position of filename>}' | sort -u 

Or

lsof | grep -v TCP | grep -v UDP | grep -v etc... | awk ....

Good luck,

Leo

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Darren Dunham
Sent: Wednesday, March 28, 2007 4:20 PM
To: [email protected]
Subject: Re: [Solaris-Users] ulimit and lsof

> I think He wants to know all open files on the system; not only 
> associated to just one process...

That's possible.  But the question was also about ulimit, which only affects
a process, not the system as a whole.

There's no connection between a ulimit value and the number of open files on
a system.

> > ulimit -a shows the maximum number of open files
> >  
> > But what syntax do I need to use with lsof to show how many files 
> > are open?

-- 
Darren Dunham                                           [EMAIL PROTECTED]
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
_______________________________________________
Solaris-Users mailing list
[email protected]
http://node1.filibeto.org/mailman/listinfo/solaris-users

_______________________________________________
Solaris-Users mailing list
[email protected]
http://node1.filibeto.org/mailman/listinfo/solaris-users

Reply via email to