Solved

checking open files under Sun Solaris

Posted on 2009-05-06
2
2,114 Views
Last Modified: 2013-12-05
Hi All,

In Windows you can check the open files on the servers.
How and where can I check the open files in Sun Solaris?
We're using Sun and Windows with Samba.
When I open the Windows server - Opened files, it is empty.

Thanks,
0
Comment
Question by:attila01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:attila01
ID: 24323680
Is it the wrong topic for Sun or nobody knows the answer?
0
 
LVL 38

Accepted Solution

by:
yuzh earned 100 total points
ID: 24325504
You can use "lsof" to check the open files. lsof is the 3rd tool (free), you can download it for your OS version(platform) from:
http://www.sunfreeware.com/
you can also use "fuser " command to find out which process and user is using the file.
type in
man fuser
man pfiles
man lsof
to learn more details
you can also do:
ls -l /proc/*/fd | wc -l
to see the how many files are currently open .
BTW, you should post the Solaris question in:
http://www.experts-exchange.com/OS/Unix/Solaris/
The Solaris experts don't come to see this TA often (including me).
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question