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
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
lsof | grep /mnt/partition