A command-line tool that lists information about files opened by running processes.

learn more… | top users | synonyms

0
votes
0answers
9 views

Checking two process in same port [duplicate]

I'm new to ubuntu and not have an expereince in networking so i have problem with binding port that already in use I checked it by sudo lsof -i tcp | grep LISTEN and got pid of the port to check ...
1
vote
2answers
84 views

Determinate if a file is already opened

I want to create a bash script to determine if my file is already opened by another user. I have already tried with lsof but it didn't work as i wanted. The files can have different types of ...
0
votes
1answer
293 views

What exactly is a connection through socket or what does the output of lsof tell us?

I'm streaming some files from S3 to an EC2 instance to get summary data from the headers. I use key.close(fast=True) for all the keys I get from boto.s3.bucket.Bucket.list() (python library to access ...
1
vote
0answers
175 views

Why doesn't lsof show localhost TCP connections in 14.04?

I have two servers running 12.04.4 and 14.04.1 respectively. Both have nginx (port 80) and a Java process (port 8080). As expected, the lsof output for the Java process (sudo lsof -nP -p $PID) on ...
4
votes
2answers
2k views

How to unlock file, locked by a process

The file is locked by a process, java in my case. I only want the lock to be released. lsof | grep /home/user/workspace1 A temporary solution was to 'End Process' from 'System Monitor'. But ...
0
votes
1answer
2k views

Unmount gvfs samba share with open file

I have a samba share mounted. I'm trying to unmount it on the commandline. $ gvfs-mount -u smb://server/root/ Error unmounting mount: Filesystem is busy I ran lsof to find open files, but I can't ...
0
votes
1answer
899 views

Processes allotting excessive disk space to (deleted) .xsession-errors file

My root disk is full to the brim because of, I suspect, disk space locked up by a ballooning .xsession-errors file. The ballooning is caused by running processes that keep the error file open and ...
5
votes
1answer
827 views

Is it normal for thousands of files to be opened by Ubuntu programs?

Having used lsof, as suggested in Too many open files - how to find the culprit , I've found that thousands of files are open due to operating-system style programs such as unity-2d-, gnome-do, and ...
2
votes
1answer
1k views

Why does lsof show the same file descriptor for different processes?

lsof -i :80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME gnome-pan 28597 murat 18u IPv4 2907888 0t0 TCP .... gnome-pan 28597 murat 19u IPv4 2907903 0t0 TCP .... ...
6
votes
3answers
2k views

Which applications are using internet

How can I check which applications are using internet? How to block internet accessing one particular application? Is there any GUI tool that exist for it in Ubuntu Software Centre? Thanks in advance! ...
9
votes
1answer
11k views

What means this error message: lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/nes/.gvfs

When i use lsof with sudo like this sudo lsof ~ lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/nes/.gvfs Output information may be incomplete. However when i use it ...