Skip to main content

lsof

Network Port

What process is using the port 50000

lsof -i :50000
Mount Point

What process is using the mount-point

lsof | grep /path/to/mount-point

lsof +f -- /path/to/dir
Process

What files and directories are using by the process

lsof -p `pidof <app_name>`