Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lsof.log

Status
Not open for further replies.

carlosAlberto

IS-IT--Management
Oct 9, 2001
109
GB
Hi,

Can somebody please explain to what this file is used for???

lsof.log
 
Hi,

lsof (list open files) is a command used to list open files, which with the concept of the virtual file system can in fact be network sockets, block special files, etc. (everything in linux/unix is a file). For example :

lsof -i TCP:23 (sockets using TCP port 23)

lsof /dev/hda5 (open files on /dev/hda5)

So, I would presume that you lsof.log is some kind of log file containing output from lsof. Exactly whats in it or where its created is difficult to say without more info...

Hope this helps




 
Hi,

Thanks for the pointer, it's found in /mnt/lsof.log

The problem was, was that it was taking 800mb of my server hard disk.

This is a short extract from the information it contains:

inetd 373 root 5u IPv4 380 TCP *:ftp (LISTEN)
inetd 373 root 6u IPv4 381 TCP *:telnet (LISTEN)
inetd 373 root 7u IPv4 382 UDP *:tftp
httpd 389 root 16u IPv4 396 TCP *:
 
Hi,

Yes that is definitely output from the 'lsof' command. What datestamp is on the file ? (ls -l lsof.log) If its old then I'd just delete it unless you particularly want to keep it.

If you have a rpm based distro you could try the following to see if it was installed as part of a rpm package :

rpm -q --whatprovides /var/log/lsof.log

(use full path to log file - above is just my illustrative guess).

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top