Tagged Questions
0
votes
4answers
121 views
Show running processes with file name(s)?
I am using putty to connect my linux server which my sites are in. I can run
# ps aux | less
to show running processes. But I want to display which files running these processes ?
I have also ...
2
votes
1answer
89 views
How can I access a deleted open file on Linux (output of a running crontab task)?
I have an hourly hour-long crontab job running with some mtr (traceroute) output every 10 minutes (that is going to go for over an hour prior to it being emailed back to me), and I want to see the ...
2
votes
1answer
76 views
Max Open Files, clarification needed
On my machine,
ulimit -n returns 2560
Given that -n returns
The maximum number of open file descriptors.
Does it mean that system won't allow more then 2560 open files to be out there at any ...
1
vote
2answers
423 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
919 views
File descriptor linked to socket or pipe in proc [duplicate]
Possible Duplicate:
/proc/PID/fd/X link number
i have a question regarding the file descriptors and their linkage in the proc file system. I've observed that if i list the file descriptors ...
6
votes
2answers
645 views
How to find out the file offset of an opened file?
My problem is that with
lsof -p pid
I can find out the list of opened file of a process whose process id is pid. But is there a way to find out the file offset of each accessed file ?
Please give me ...
5
votes
2answers
256 views
Recover deleted file that is currently being written to
I started downloading a big file and accidently deleted it a while ago. I know how to get its current contents by cping /proc/<pid>/fd/<fd> but since the download is still in progress ...
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 ...
3
votes
2answers
223 views
Capturing new output after deleting the output file
I'm runnig a java server on Debian with this command:
java -jar myapp.jar [args] >> log.txt
Once I gzipped the log file to send it and then I realized the original file was gone, leaving me ...
7
votes
2answers
915 views
What happens when I close() a file descriptor?
I am trying to get the whole picture with file descriptors. Say I have process1 which initially has these file descriptors:
_process1_
| |
| 0 stdin |
| 1 stdout |
| 2 stderr |
...
5
votes
0answers
88 views
How can different file descriptors point to the same file in open file table? [duplicate]
Possible Duplicate:
How can same fd in different processes point to the same file?
I have a hard time grasping the two ideas of File Descriptor Table and Open File Table.
Open File Table ...
16
votes
2answers
3k views
Who's got the other end of this unix socketpair?
I want to determine what process has the other end of a unix socket, that was created with socketpair().
I have a program parent which creates a socketpair(AF_UNIX, SOCK_STREAM, 0, fds), and fork()s. ...
7
votes
2answers
2k views
/proc/PID/fd/X link number
In Linux, in /proc/PID/fd/X, the links for file descriptors that are pipes or sockets have a number, like:
l-wx------ 1 user user 64 Mar 24 00:05 1 -> pipe:[6839]
l-wx------ 1 user user 64 Mar 24 ...