Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: What is the benefit of using (lsof ) command in linux ?  (Read 5154 times)

0 Members and 1 Guest are viewing this topic.

The first

  • Guest
What is the benefit of using (lsof ) command in linux ?
« on: April 16, 2008, 05:44:15 AM »
hello all

I have a question  ???

What is the benefit of using (lsof ) command in linux ?

ghostdog74



    Specialist

    Thanked: 27
    Re: What is the benefit of using (lsof ) command in linux ?
    « Reply #1 on: April 17, 2008, 09:44:12 PM »
    have you seen the man page of lsof? lsof is a tool to see open files. there are various other options of lsof , one example is listing which process opens a port, try this
    Code: [Select]
    lsof -i tcp:80
    sometimes you try to umount a partition, but it gives error saying you can't unmount. You can use lsof to check what is holding it up
    Code: [Select]
    lsof | grep /mnt/partition