See What Files & Ports an Application is Using with Activity Monitor

May 5, 2012 - 1 Comment

See Open Files and Ports of a process with Activity Monitor

The OS X task management tool Activity Monitor includes an excellent and little known feature that lets you see precisely what files, ports, and IP’s are being interacted with by any single process or application. Here is how to use it:

  1. Launch Activity Monitor, found in /Applications/Utilities/
  2. Double-click on the process or application name you want to see open files and ports for
  3. Click the “Open Files and Ports” tab

The list is scrollable and shows full paths to all files that are being interacted with by the application/process. Much of the data will be unfamiliar to many users, with obscure system files, caches, and plists being accessed, but you’ll also find paths that are easy to identify which can be helpful in resolving system conflicts and troubleshooting certain problems. Similar filesystem access data can be provided with the command line tool opensnoop, but for most Mac users the GUI Activity Monitor will be more friendly to their needs.

Ports are identified as numbers, and you’ll also be able to see the IP’s of any active internet or network connections that have been opened by the application. The data is presented a little rough, if you want an easier to browse version of open network connections take a look at the free GUI tool PrivateEye. IP and port data can also be uncovered through the command line tool lsof if you’re more technically inclined.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: William Pearson in Mac OS X, Tips & Tricks, Troubleshooting

One Comment

» Comments RSS Feed

  1. Connor Odell says:

    I use little snitch for monitoring Internet connections, but this looks useful for seeing how apps work with files. Reminds me that iOS will never offer either feature though and that is disappointing.

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates