Tagged Questions
1
vote
2answers
45 views
Tracking which files are used by program
I am looking for a way to track which files are used by program installer(InstallAnywhere). I cannot use lsof because as far as I know it works on active processes and I want a tool which will work ...
1
vote
1answer
161 views
What's the difference between lsof and fuser -uvm
Both shows the number of files we're using.
Yet they both shows different results.
root@host [~]# lsof /home4
root@host [~]# lsof /home2
root@host [~]# lsof /home4
Then we got
fuser -uvm /home4
...
9
votes
1answer
241 views
How do I monitor opened files of a process in realtime?
I know I can view the open files of a process using lsof at that moment in time on my Linux machine. However, a process can open, alter and close a file so quickly that I won't be able to see it when ...
7
votes
5answers
2k views
Under AIX, how can I get the full path of a program bound to a port?
Under Linux I can use netstat -tulpnw and ps, like so:
# netstat -tulpnw | grep :53
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1482/named
udp ...
5
votes
3answers
9k views
Alternatives for “lsof” command?
In many cases "lsof" is not installed on the machines that with I have to work, but the "function" of lsof would be needed very much (ex. on AIX). :\
Are there any "lsof" like applications in the ...
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. ...
8
votes
5answers
8k views
Determining what process is bound to a port
I know that using the command:
lsof -i TCP
(or some variant of parameters with lsof) I can determine which process is bound to a particular port. This is useful say if I'm trying to start ...
4
votes
3answers
840 views
How do I get a mapping of Pid to Port?
I have a process which I need to run on a specific port. I have started some other process on that port and I need to kill it.
Unfortunately, I don't remember the name/pid of the other process so I ...