Jump to content

Software Tracking


gizzmo
 Share

Recommended Posts

You can use "/usr/sbin/lsof" and maybe "/sbin/fuser"

 

Here are some examples from lsof man page:

 

To list all open files, use:

~# lsof

 

To list all open files for login name ``abe'', or user ID 1234, or process 456, or process 123, or process 789, use:

~# lsof -p 456,123,789 -u 1234,abe

 

To find the process that has /u/abe/foo open, use:

~# lsof /u/abe/foo

 

To send a SIGHUP to the processes that have /u/abe/bar open, use:

~# kill -HUP `lsof -t /u/abe/bar`

 

To find any open file, including an open UNIX domain socket file, with the name /dev/log, use:

~# lsof /dev/log

 

There are more examples including nfs and network runs.

 

Read both programs' man pages for more info.

 

HTH

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...