How can you tell what app is using a file?

I have a screenshot that I moved to the trash. I try to empty the trash, but it says the file is in use. Is there any way to tell what app is using it?
Thanks very much.

There is a shell command (i.e. Unix executable) called fuser.
This program displays a list containing all the process-ids (PIDs) that are accessing a particular file at a given time.
To invoke it you just need to open a terminal window, wait for the command prompt (typically a "$"), then type fuser followed by a space and then drag the file from the finder to said terminal window.
Once the PID list is displayed, you need to look-up the process id (the first column) with the help of activitty monitor to see the name of the app that's accessing the file.
One final warning: make sure activity monitor is displaying "all processes" because the file is not necessarily being accessed by one of your processes.

Similar Messages

  • How can I tell what app makes up the "usage"?

    Under General Settings, you have the option to view usage. How can I tell what app is using that "usage"? It is not data, just time active.

    Go to the AppleStore and download BatteryDoctor.
    This will help you to see which apps take a lott of your battery level.

  • How can you tell what pictures from iPhoto you already used in iMovie?

    how can you tell what pictures from iPhoto you already used in iMovie?

    Log into your account on a computer (iTunes>Store>View Account) and go to Purchase History

  • TES 6.1.x - how do you tell what DB is used by ClientMgr?

    We just externalized the Client Mgr DB to Oracle, updated config files, etc. How do you tell what db is using - Derby or Oracle?        

    After you externalize the CM database, you should see the db objects (tables and views) in the database are now created shortly after you start the CM service.
    You can verify creation of database objects in the actual database and in the plugin log upon start-up. This log can be found  under the ../ClientManager/plugin/tes-6.0/log directory
    John

  • How can you tell what type of Iphone I have from the model number or serial number from the settings menu

    how can you tell what type of Iphone I have from the model number or serial number from the settings menu?

    Type Serial Number from Settings App here https://selfsolve.apple.com/agreementWarrantyDynamic.do it will tell you the type of iPhone.

  • How can you tell what generation apple tv you have?

    How can you tell what generation apple tv you have?

    Apple TV 1. gen: http://www.apple.com/de/support/appletv/1st_generation/
    Apple TV 2. gen: http://www.apple.com/de/support/appletv/

  • HEY, HOW CAN YOU TELL WHAT GEN YOUR ITOUCH IS?

    How can you tell what gen your itouch is?

    Check the link below.
    http://support.apple.com/kb/HT1353
    Stedman

  • How can you tell what resolution a movie is?

    How can you tell in iMovie 09 what resolution a movie is?
    The only two have used were HD and standard, but we are not sure which in our collection are which.
    Is there an easy way to tell?
    Thanks.
    mac

    Easiest way is to open the clip using QuickTime Player. Then click Command-I to open the inspector.
    (Or click WINDOW/INSPECTOR)

  • How can I determine what app is using my megabytes so fast?, How can I determine what app is using my megabytes so fast?

    How can I determine which apps are using my megabytes so fast

    Thank you . That answers my question,but I guess I need to know how to identify the usage for email and Internet. I'm thinking we may have an issue with our wifi at home going  in and out.  I guess my son should turn off his cellular when he is home for this reason?

  • How can you tell what GB a handset is...I'm buying iphone6 second hand

    HHow can you tell what GB is in an iPhone 6 ....I'm buying second hand

    the most reliable way is to go on the phone and tap
    Settings/General/About - that will tell you the capacity (among other things)
    but remember the actual space wont be what Apple advertises - my 128 GB iPhone 6 + says it has 114 gb of space - there is formatting and the operating system to take into account
    the size is also printed on the back of the original box but unless you have the phone and get get the serial number off the phone (which is in that same location) you cant be sure the box is from the phone you are trying to buy

  • How can you tell what version of Quicktime you have?

    How do you determine what version of Quicktime you have on your computer? What version do you need for a new 30G Video iPod? How do you upgrade versions, if necessary?
    Thanks in advance for any help.
    iPod mini for windows   Windows XP  

    Open a QT document and use the Help menu, where you should see an item labeled (I believe) About Quicktime Player. That should tell you the version running the player.
    You need QT Pro and QT 7 to have a preset for iPod video. You probably can use QT 6 if you use these settings in making an mpeg-4 video:
    "MPEG-4 video: up to 2.5 mbps, 480x480, 30 frames per sec., Simple Profile with AAC-LC up to 160 Kbps, 48 Khz, stereo audio in .m4v, .mp4 and .mov file formats<<
    QT 7 is available for download from the Apple site by clicking on
    "Quicktime" in the Purple banner above

  • How can you tell what type of server configuration is installed? is it j2ee or not?

    Before I run an updater, how can I tell if the server is a
    j2ee server configuration or a "regular" server configuration? Its
    on on Linux os...

    My "Settings Summary" shows;
    Server Product ColdFusion MX
    Version 7,0,0,91690
    Edition Enterprise
    Serial Number blah-blah-blah
    Operating System UNIX
    OS Version 2.6.15-1.1833_FC4smp
    JVM Details
    Java Version 1.4.2_05
    Java Vendor Sun Microsystems Inc.
    Java Vendor URL
    http://java.sun.com/
    Java Home /opt/coldfusionmx7/runtime/jre
    Java File Encoding UTF8
    Java Default Locale en_US
    File Separator /
    Path Separator :
    Line Separator Chr(10)
    User Name nobody
    User Home /
    User Dir /opt/coldfusionmx7/runtime/bin
    Java VM Specification Version 1.0
    Java VM Specification Vendor Sun Microsystems Inc.
    Java VM Specification Name Java Virtual Machine Specification
    Java VM Version 1.4.2_05-b04
    Java VM Vendor Sun Microsystems Inc.
    Java VM Name Java HotSpot(TM) Server VM
    Java Specification Version 1.4
    Java Specification Vendor Sun Microsystems Inc.
    Java Specification Name Java Platform API Specification
    Java Class Version 48.0
    --> and lots more, but no mention whether its a J2EE
    configued server or not...so should I assume its not a
    regular/non-J2EE server?
    I ask because the Updaters instructions show a BIG difference
    depending on which type it is to be updated...thanx...Matt

  • How can you tell what type of credits you have?

    My iTunes account shows that I have 4 credits on the top right of iTunes but I can't tell what type of credits I have.  I have sent numerous emails to Apple iTunes support and they just keep telling me that it should say 1 song credit or 1 TV episode credit, etc. but all it says are 4 credits so I can't tell what the credits are for?  Can someone help?  I have the latest version of iTunes for Windows on a Windows 7 PC.

    I updated QuickTime and now the top right under my name displays the number of credits and the types of credits.  Prior to this update, it only showed the name.

  • Generic wsdl - how can you tell what the field assignment is?

    When using the generic wsdl, it seems that your custom fields are mapped to fields such as:
    customcurrency12
    customtext4
    When accessing the asset class, how can tell what field is assigned to what custom value? When I look in the admin > application customization > asset > asset field setup
    I can see the list of fields and field types but not the number on the end so that I can assign it in my web service code. Is there a way to see what your custom fields are mapped to (i.e. custom standard discount is mapped to custompercent11)
    Thanks in advance any help you can lend on this,
    AspnetDev

    You can use the getMapping web service to get al ist of all the fields for a record type. for each field you get the ElementName (which is what you get in the generic wsdl) and DisplayName which you can use it to match to your fields.
    <Field>
         <DisplayName>My Custom Field</DisplayName>
         <ElementName>CustomText74</ElementName>
         <DataType>Text (Short)</DataType>
    </Field>
    -JLV

  • How can I tell what library is used for readdir?

    I have a problem that a program responds differently on two different unix machines, both of which are running Solaris 2.6, and using the same C compiler (4.2)
    "readdir" returns a "struct dirent" where the d_name is offset by two bytes on one of the machines.
    I have used ldd to detemine the libraries to which it is linked, and although they are linked in a different order, the libraries on each machine are byte identical. I have also proved that the program includes the same dirent.h file on both machines.
    Dumping information from the libraries shows that there is a readdir function in /usr/lib/libc.so.1 and /usr/ucblib/libucb.so.1.
    My assumption is that the header files give the same offset into the structure, but that one of the libraries is returning a differently constructed structure.
    How can I find out if the program is calling the same one at run time?
    Thanks for any help you can give.

    I am reasonably sure that the lib that appears first in the ldd output is the
    lib that is supplying the routine. One way to make sure is to use dbx to
    set a breakpoint in readdir. If there are multiple copies of the readdir
    symbol, which there should be in this case, it will prompt you with a list
    of shared libraries that have the symbol and ask which one you want to
    stop in. Pick one, then run your program. It will either hit the breakpoint,
    in which case it is satisfying the symbol from the lib that you picked, or
    it will not hit the breakpoint, in which case it is not getting it from that lib.
    Delete the first breakpoint, then set another breakpoint in the same routine
    and tell it to stop in the other lib. The fact that it stopped in the first lib
    means that it's not likely to stop in the second lib, but there are ways for
    it to hit both or neither. Check them both.

Maybe you are looking for