Tagged Questions
4
votes
2answers
324 views
Find and remove large files that are open but have been deleted
How does one find large files that have been deleted but are still open in an application? How can one remove such a file, even though a process has it open?
The situation is that we are running a ...
2
votes
1answer
71 views
vim not shown in fuser
First use Vim to edit a file, say /tmp/A.
Assuming that vim process is the only one that accesses /tmp/A, then use "ctrl+z" to suspend the process, and execute
fuser /tmp/A
Then you see nothing ...
1
vote
2answers
417 views
File delete versus overwrite and link at /proc/pid/fd
It is well known that UNIX systems won't actually delete a file on disk while the file is in use. So if a file is being accessed by process 1 and process 2 deletes the file using rm, process 1 ...
3
votes
2answers
1k views
How to find out which file is currently written by a process
My situation is that from time to time a specific process (in this case, it's Thunderbird) doesn't react to user input for a minute or so. I found out using iotop that during this time, it writes ...
4
votes
2answers
118 views
Can I move a directory with open files?
Imagine a bunch of processes using a /home/user/logs directory. They have some logs open for a longer time.
13
votes
2answers
2k views
How do open files behave on linux systems?
I just renamed a log file to "foo.log.old", and assumed that the application will start writing a new logfile at "foo.log". I was surprised to discover that it tracked the logfile to its new name, and ...
1
vote
1answer
171 views
Prevent libflashplayer.so from deleting a file?
I'm trying the preview release of Flash Player "Square" for Linux and noticed that video files are now being deleted from the /tmp/ folder.
Yet the files are still in use (I can see them with lsof):
...