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

learn more… | top users | synonyms

5
votes
1answer
58 views

Who eats all my file descriptors and thus memory?

my current system: 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64) $ free total used free shared buffers cached Mem: 16366288 16090588 275700 ...
0
votes
0answers
30 views

How to use lsof with SSH ControlPath?

I am extensively using SSH ControlPath and would like to use the lsof tool in order to check which process is keeping a ControlPath socket up and running. I am using OpenSSH_7.2p2 Ubuntu-4ubuntu1, ...
-1
votes
1answer
27 views

what is that job that cannot be done without “lsof”?

I want to know the use of the overwhelming output of lsof and maybe a specific example where lsof feels like a blessing.
0
votes
1answer
176 views

Why does lsof complain about tracefs?

Every execution of lsof issues a warning about the TraceFS: $ lsof any-file lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing Output information may be incomplete. $ ...
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
115 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
377 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 ...
2
votes
0answers
214 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 ...
1
vote
1answer
947 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
905 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
3k 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!
10
votes
1answer
13k 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 ...