The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
lsof in solaris champak Shell Programming and Scripting 1 02-01-2008 05:07 AM
require alternate command for lsof logic0 UNIX for Dummies Questions & Answers 1 05-17-2007 12:41 AM
lsof ??? marc UNIX for Dummies Questions & Answers 6 06-22-2006 10:57 PM
lsof output skotapal UNIX for Dummies Questions & Answers 2 01-14-2003 08:12 AM
lsof jacl Filesystems, Disks and Memory 1 06-11-2002 05:27 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-09-2006
Registered User
 

Join Date: Jun 2005
Posts: 94
command lsof

hello

Sorry but i don't understand very well the lsof command with the man.
Can you explain to me what is the use of this command ?

thank you
Reply With Quote
Forum Sponsor
  #2  
Old 02-21-2006
Registered User
 

Join Date: Jan 2006
Location: india
Posts: 29
lsof command

ls of command stands for "list open file systems". The command returns the user processes that are actively using a file system. It is sometimes helpful in determining why a file system remains in use and cannot be unmounted.

Theres also one more command "fsuer" used for doing the same thing.

The main difference between lsof and fuser is that lsof takes both files/filesystems and PIDs as arguments whereas fuser only accepts files/filesystems.
Reply With Quote
  #3  
Old 02-22-2006
Registered User
 

Join Date: Jun 2005
Posts: 23
lsof will also do things that fuser can't, like show you who has TCP ports open, etc.

Where I find it useful is if I am going to unmount a filesystem, and it is not unmounting because it is currently "busy", I can see what processes have files open there, kill them off (or call up the owner), and then unmount it, etc. Unfortunately, NFS works at a low enough level that neither fuser nor lsof can see it. If you can't unmount /xyz because you exported it via NFS, it will be "busy" and won't unmount, but lsof won't tell you why.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0