- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- In what way lsof is useful
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 06:58 AM
05-30-2002 06:58 AM
i have lsof installed on my machine, but i would like know what are all the efficient ways that i can make use of lsof. i have gone through the man page, but better if somebody who can give suggestions how better i can use lsof. (with some examples).
thanks in advance
regds
ravi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 07:03 AM
05-30-2002 07:03 AM
Re: In what way lsof is useful
http://forum.itrc.hp.com/cm/QuestionAnswer/1,,0xbe148f960573d611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 07:04 AM
05-30-2002 07:04 AM
Re: In what way lsof is useful
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbe148f960573d611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 07:11 AM
05-30-2002 07:11 AM
SolutionHere's several, simple uses:
To see all open files of a paricular process (via its pid):
# lsof -p
To see all open files associated with a command:
# lsof -c cron
...or by a logon name:
# lsof -u
# lsof -u
...or what process is using a TCP socket:
# lsof -i tcp:161
# lsof -i udp:161
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 09:27 AM
05-30-2002 09:27 AM
Re: In what way lsof is useful
man lsof will help you more if you have got it installed.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 09:38 AM
05-30-2002 09:38 AM
Re: In what way lsof is useful
when you want to unmount a filesystem but it's busy, find out who's using it.. etc..
List open files (remember in unix everything is a file)
Later,
Bill