Uneraseable files and dirs inside the trash can

I,
I have got some items in the trash can that wher I try to emply it, I get an error message saying that the can't be erased because they are being used. I have turned off the computer several times but the same thing happens.
Is there a solution for this?

Hi,
I'm terribly sorry for the wrong info!
In addition, be very carefully while using The Terminal and you can always use whatis and man to understand the command you are gonna use. Example:
Last login: Thu Dec 16 21:20:40 on ttys000
The-Universe:~ LS$ whatis sudo
sudo(8) - execute a command as another user
The-Universe:~ LS$ whatis rm
rm(1), unlink(1) - remove directory entries
The-Universe:~ LS$ man rm
RM(1) BSD General Commands Manual RM(1)
NAME
rm, unlink -- remove directory entries
SYNOPSIS
rm [-dfiPRrvW] file ...
unlink file
DESCRIPTION
The rm utility attempts to remove the non-direc-
tory type files specified on the command line. If
the permissions of the file do not permit writing,
and the standard input device is a terminal, the
user is prompted (on the standard error output)
for confirmation.
The options are as follows:
-d Attempt to remove directories as well
as other types of files.
-f Attempt to remove the files without
prompting for confirmation, regardless
For man, press space bar to continue the manual or q to quite.
Cheers.
Message was edited by: (n_n)

Similar Messages

  • I am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!

    i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
    When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
    Please HELP!!!!!! Getting second thoughts on Lion!!!!

    Hi b,
    Have you restarted yet?

  • I am trying to open space in my macbook hard drive, so I deleted files and after emptying the trash bin the amount of Gigs didn't increase, why? Where can I go and delete those files?

    I am trying to open space in my macbook hard drive, so I deleted files and after emptying the trash bin the amount of Gigs didn't increase, why? Where can I go and delete those files?

    Did you do a secure empty trash? SHIFT COMMAND DELETE, they will be over wriiten. Are you deleting docs as they aren't much space, videos,pictures,music use much more space.
    You can move those fiels to an external "archive" drive to save them then delete them from your internal drive.

  • I deleted some video's from iPhoto then from the trash can on iPhoto and then from the trash can on my desktop but the space has not freed up on my hard drive

    I deleted some video's from iPhoto then from the trash can on iPhoto and then from the trash can on my desktop but the space has not freed up on my hard drive

    Check out the following to see where your space is:
    Where did my Disk Space  go?
    Slimming your hard drive
    OmniDiskSweeper
    FreeSpace
    SpaceControl
    FreeSpace

  • I deleted all my music files and then emptied the trash.. I didn't know that I wouldn't be able to play those songs in iTunes anymore.

    I deleted my music files and then emptied my trash bin and later realized that I can't play the songs in iTunes anymore if the files are delted. Is there anyway I can recover all the files?

    1) If you bought them from Apple you canprobably download them again.
    2) If you back up your computer as you should, they will be on the backup.
    3) If you stop using your computer this instant (because as you use the computer it overwrites deleted files even if you have lots of space), buy recovery software ($100+), there is a  chance you can recover some of them, though they may have lost filenames and will be in quite a mess.

  • Which application uses that file and prevents emptying the Trash?

    Hi,
    This has been with the OS for quite some time. Every once in a while, when trying to empty the trash, I get the error message:
    "The operation can’t be completed because the item 'filename.estension' is in use."
    How useless is that? Now, if OS X told me which application is using it, I could close that one application, delete the file, and get back to work. Sometimes, I can guess the application as the one I actually last used to access that file. But every so often, it's the Finder's "quick look," but every once in a while, I just haven't the clue.
    So, is there an OS function (even if a UNIX/terminal command) or a utility that can tell me the application that is still using the file in the Trash?
    Thanks, Tristan

    Hi,
    OK, to clarify: yes I use Lion (OS X 10.7.4) and I'd rather not close all applications. With Lion, I can just as well log out (which will close them) and log back in (which will reopen them). But, you realize that this is using a bulldozer to swat a mosquito: somewhere in the bowels of the OS X/UNIX, there is a "file in use" message from some application/process, which has not been cancelled (either because the application/process is really holding the file open or because the application/process has failed to clear the "file in use" flag).
    A similar "feature" of OS X is when it prevents you from ejecting a volume because "it is in use." In that case, the "What's keeping me?" utility (by HAMSoft Engineering) comes to rescue, unearths the relevant culprit and reports it to the user. Yes, OS X should be doing it all by itself, but the 3rd party utility is just fine.
    So, isn't there a way to unearth this info?

  • Browse files and dirs in the JAR-file

    Hi! I'm stuck with a problem concerning browsing a JAR file to find all images, fonts and sound clips. I think this is a pretty straight-forward task, except when I consider that the file I want to browse, is the same file the browser is stored in and running from. I have searched for hours on the internet now, and I still haven't figured out a way to be able to browse my JAR file.
    Here is the code I use when I'm not running my project in a JAR-file:
         * Load and cache all files (*.ttf, *.png and *.wav) from the resource-directory
        public void loadResources() throws FileNotFoundException {
            // log available VRAM
            log.println("Available VRAM before loading resources: " + graphicsDevice.getAvailableAcceleratedMemory() + " bytes", Log.INIT);
            // determine whether or not we are dealing with the contents of a jar-file
            jar = getClass().getResource("").getProtocol().startsWith("jar");
            // browse all directories
            long start, end;
            int loadTime = -1;
            start = System.nanoTime();
            browseDirectory(".." + separator + "resources");
            end = System.nanoTime();
            loadTime = Math.abs((int)(end - start) / 1000000);
            resourcesLoaded = true;
            // log
            log.println("Resources loaded in " + loadTime + " ms", Log.INIT);
            // log available VRAM
            log.println("Available VRAM after loading resources: " + graphicsDevice.getAvailableAcceleratedMemory() + " bytes", Log.INIT);
         * Browse a directory and load and cache all it's files
         * @param path The directory to browse
        private void browseDirectory(String path) {
            // log
            log.println("Browsing directory: " + path.replaceFirst("\\W*", ""), Log.INIT);
            try {
                if (jar) {
                    // TODO: enable JAR-browsing by getting the input stream from the JAR-file, then browse through all entries
                    throw new RuntimeException("Cannot browse JAR-files yet!");
                else {
                    File dir = new File(getClass().getResource(path).toURI());
                    // browse through the directory
                    String[] files = dir.list();
                    File file;
                    for (String name: files) {
                        file = new File(dir.getAbsolutePath() + separator + name);
                        // if this is a new sub-directory, browse it
                        if (file.isDirectory()) browseDirectory(path + separator + file.getName());
                        // otherwise, add the file
                        else addFile(path, name);
            catch (Exception e) { e.printStackTrace(); }
        } But, as you may see, I need a similar code to browse the JAR-file....please help me!
    lhk

    I worked it out by trying and failing:
          * Browse the JAR-file and load all it's relevant files
         private void browseJar() {
              try {
                   // convert the resource directory path to a JAR-compatible path
                   String jarDir = dir.replaceAll("\\" + separator, String.valueOf(jarSeparator));
                   // get the jar-file and it's entries
                   Enumeration<JarEntry> entries = new JarFile(new File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI())).entries();
                   // browse the contents of the file
                   JarEntry entry;
                   int nameIndex;
                   String name = null;
                   String path = null;
                   while (entries.hasMoreElements()) {
                        // get the entry
                        entry = entries.nextElement();
                        // we only process relevant entries
                        if (entry.getName().startsWith(jarDir)) {
                             nameIndex = entry.getName().lastIndexOf(jarSeparator);
                             name = entry.getName().substring(nameIndex + 1);
                             // if we find a new directory, we get it's path
                             if (entry.isDirectory()) {
                                  path = entry.getName().substring(jarDir.length(), nameIndex);
                                  if (path.startsWith(String.valueOf(jarSeparator))) path = path.substring(1) + jarSeparator;
                                  // log (the system-compatible path)
                                  log.println("Browsing directory: " + dir + separator + path.replaceAll(String.valueOf(jarSeparator), "\\" + separator), Log.INIT);
                             // otherwise, we add the resource
                             else addFile(path, name);
              catch (Exception e) { e.printStackTrace(); }
         }As may be seen in the code, I discovered that the regular file separator could not be used in jar paths, which I found strange. I tried a lot to make the regular separator work, but couldn't manage it. Anyway, this code works for me.

  • I deleted my files and emptied the trash. can i get the files back?

    I deleted my files and emptied the trash. Can I get my files back?

    Maybe...
    If you have a removable battery, remove the battery and the power.
    If not, hold down the power button until the screen goes back and you are forced to restart the Mac entirely from the power button (do not respond to any shut down window.
    Either way, files may reappear in the trash, or where they were located. 
    If not, you'll probably need a data recovery program*:
    http://www.macmaps.com/backup.html

  • HT2674 I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive. Now, the trash can will not empty some of the files deleted.  File folder: "Core Services" contains a locked file: "boot.efi".  It will not

    I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive which operates from Time Machine.
    Now, the trash can will not empty some of the files deleted from the backup harddrive.
    The trash contains-- File folder: "Core Services" which contains a locked file: "boot.efi". 
    It will not delete.
    How do I get the trash can empty of these files?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • I inadvertently created a very large file. Not needing it I sent it to the Trash Can. However, the deletion process never completes. Any suggestions as to how to delete it ?

    I inadvertently created a very large file on my hard drive. Not needing it I sent it to the Trash Can. However, the deletion process never completes. Any suggestions as to how to delete it ? I re-installed the OS but the file was still there taking up needed space.

    Command-click all of the files you want to delete and don't actually move them to the Trash until you've gone through the entire folder.
    (63341)

  • Does Any one can indicate me how to delete recovered files found on the trash can?

    I´ll appreciate very much your help indicating me the best way to delete recovered files found on the trash can.

    The Getinfo pane has several sections. Next to the top is "General". At the bottom of that section, under the row of colored dots is a checkbox,  [√] Locked (and not checked means not locked).

  • Is it possible to retrieve a deleted file that wasn't placed into the Trash can?

    I created a new Word document and was going to submit it to a Subversion repository using the Versions application.
    However I accidentally deleted it from within Versions. Versions did not place it into the Trash Can after deleting it, and as it was a new document it is not yet under version control and so cannot be retrieved from the repository.
    Is there anyway I might be able to retrive it?
    (I've asked the same question within the Versions Google support group but posting here while/if I get a response from there. Wondering if there are any OS X specific techniques/tools I can use if Versions doesn't provide the ability).

    Did you try to open this file in Word for editing and saved the modified file under the same name?
    If that is the case then you should always use Save as to save the file under a different name and in another folder.
    If that wasn't the case then you should have kept the file unless other (cleanup or anti-virus) software has removed the file because Firefox wouldn't remove files that weren't saved to temp folder.
    There are other things that need your attention.
    Note that your System Details List shows a very old Flash plugins 9.0 r45 version.
    *Shockwave Flash 14.0 r0
    *Shockwave Flash 9.0 r45
    Such an old Shockwave Flash plugin may not be installed in the default location.
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\

  • HT1420 my computer crashed and we replaced it with a new mac - but when I try to open itunes it states that I already have 5 computers authorized - since the computer crashed and is in the trash, I can't deauthorize it in order to set up the new mac....wh

    computer crashed and is in the trash - thus can not deauthorize it to allow me to the new computer - what can i do?

    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.
    Use your backup copy of your computer to put everything on the new one.
    It sounds like you have failed to do this, which is not good at all.
    You will have to transfer your itunes purchases from your iphone.  Authorize your computer for your itunes account 
    About iTunes Store authorization and deauthorization
    Open itunes, plug in iphone, do NOT sync, click File>Transfer Purchases
    When you do sync you will lose your pics ( photo library - synced from your old computer), your itunes content ( music, apps, videos,etc) , your contacts and your calendars.  So do NOT sync yet.  This is why a backup copy is so important.
    Enter one unique contact and calendar entry on your computer.
    When you first sync, you should get the option to merger the data.  Choose it.
    If you want your pics, then you will need to e-mail them to yourself before you sync.  They will not be of the original quality as they are reduced when synced to iphone.
    When all is as goos as it can be, then backup your computer, and always maintain the backup.

  • Is there any way to retrieve photos that were put in the trash can and then it was emptied?  Or is there a way to move photos from an imovie to iphoto?

    Is there any way to retrieve photos that were put in the trash can and then it was emptied?  Or is there a way to move photos from an imovie to iphoto?

    If you've emptied the trash, ehtn no. However if you have a backup, like Time Machine, or a recent backup copy of your photo library you could recover the photos from the trash.
    The answer to getting a snapshot form iMovie depends on what version you have.
    I should add it technically may be possible to recover the emptied trash, but if you really want to do that you would need to download a utility software that can attempt to recover deleted files. Do it soon before you start writing more data to that disk. At the moment I don't have a recommendation for such a program. Maybe someone else out there will offer suggestion.

  • I recently deleted approximately 80gb of space on my hard drive by dragging items to the trash and then emptying the trash.  However, the space does not show up on my HD as free. Can anyone point me in the right direction?

    I recently deleted approximately 80gb of space on my hard drive by dragging items to the trash and then emptying the trash.  However, the space does not show up on my HD as free. Can anyone point me in the right direction?

    If you are using File Vault, turn it off.  To find out where all the extra space is use any of these products - Disk Inventory X
    OmniDiskSweeper
    WhatSize
    SpaceControl

Maybe you are looking for

  • List of all Sales Orders

    Hello All any ideas, what the transaction code is to view the complete list of all sales orders ever created in R/3 (irrespective of customer)? Thanks in advance Message was edited by:         Shovon Banerjee

  • HP Officejet 6600 e-All-in-O​ne Wireless connection issue.

    We are using the HP 6600 now for 6 months and sice a few weeks we have some issues with the printer. situation: 1 - HP 6600 printer 1 - Wireless Router 3 - Computers connected to the router What we did: Updated the firmware Manual IP Put channel from

  • Nokia 5800 v21.0.25 Auto-Rotate issue (firmware re...

    Hi, After updating OTA to the lastest firmware Auto-Rotate display stopped working. When i first installed the new FW I had issue with the home screen. It kept blinking like every 1 sec between homescreen and appication screen. This is when I noticed

  • Count(*) for all tables

    Hi , I want the Query to get the table name and count(*) display in excel like this.Can i get count(*) from metadata table .Please let me know ?? ACCT 53 ACCT_CHEQUE 45 EMP 50 DEPT 90

  • More Errors

    dont know if this should be in a different thread because its a different problem or not. if no then im sorry. i fixed my last error but now i get new one public class ButtonTest extends javax.swing.JFrame // extend a frame so that it is in a window