Jay Taylor's notes
back to listing indexHow to monitor file access for an OS X application?
[web search]
I am looking for the OS X corespondent of FileMon, that was later included in ProcessMon. BTW, it is essential to be able to filter by process. |
|||||||||
|
|||||||||
Instruments—a part of the Apple Xcode development suite—can monitor all file access and writes. Open it from /Applications/Xcode.app/Contents/Applications/Instruments.app, select your application or process, and press Start. You have extensive filter options available in the menus. Older versions of Xcode are storing the App at /Developer/Applications/Instruments.app |
|||||||||
|
There is the command |
|||||||||
|
Launchd is the main system level tool for monitoring files (and a folder is a special file) since it's always running. Hazel is one program that helps put a pretty GUI around launchd WatchPaths. Look here for lots of tips on launchd as well as hundreds of tutorials, a good wikipedia article and the Apple dev docs. fseventsd will log some changes - so you might use FSeventer or access those files if launchd isn't your cup of tea. fs_usage and lsof are process aware command line tool to tap into the IO subsystem as it's running. The fs_usage buffer can get overloaded so if you want something more guaranteed and less of a "take a quick peek" it's less dependable for total correct results as the other commands. |
|||||||||||||||
|
No one has mentioned Activity Monitor, found in the Click on the Process Name in the list, then hit the "Inspect" button on the toolbar. There are three tabs in the resulting window: |
||||
command on the Terminal.app can do that for you?
use the |
|||
The faster way is:
This solution doesn't require the root password and gives you back the following, clear, result:
|
|||
There's a graphical interface to |
|||
Also available are |
|||
Your Answer
Not the answer you're looking for? Browse other questions tagged terminal activity-monitor unix or ask your own question.
asked |
4 years ago |
viewed |
31764 times |
active |
Related
Hot Network Questions
- Hex to decimal ubuntu 14.04 lts calculator
- Why do police helicopters always fly in circles?
- How to install a stand-alone program
- How to identify if underlying org has customer portal enabled?
- How can I set WiFi connection order in Windows 10?
- Tridion 2013 SP1: Error in CD Website
- Why does the new Java 8 Date Time API not have nanosecond precision?
- Remove unwanted characters from a string
- How to have idea to prove trigonometric identities
- How to deal with an untrainable junior dev?
- A word or phrase for phone service working only one-way
- How do you pronounce "xth"?
- SQL Server passing variable to a string in a stored proc
- Travelling to a country from a country other than your home one
- Double superscript with parentheses
- Anti-static bags - safe to support powered circuit boards?
- Is there a better, more preferred, way to protect against printing attributes from nil classes in Rails?
- How can I create original holidays for my world?
- Is Earth really a magnet?
- Firebug decrypts SSL traffic: is it the correct behaviour?
- Can I add a baby as a co-author of a scientific paper?
- Is reusing old code for a new assignment considered self plagiarism? How to protect yourself if you consider it to be, and a group partner does not?
- What policy arguments do people make in favor of legalizing marijuana?
- Which of the following is bigger?
Technology | Life / Arts | Culture / Recreation | Science | Other | ||
---|---|---|---|---|---|---|