Skip navigation

How to delete Unix Executable Files

5500 Views 8 Replies Latest reply: Jan 25, 2013 7:32 AM by 74fiat RSS
AMCarter3 Level 1 Level 1 (5 points)
Currently Being Moderated
Feb 12, 2012 10:23 AM

I have some very old files on my laptop that I cannot delete. The file type is: Unix Executable File.  They are leftover files from some obsolete graphics software I was using back in the early '90's (not system related or anything related to current software).  When I attempt to trash these files, I get error msg: The operation can’t be completed because an unexpected error occurred (error code -1407).

 

Any suggestions on another way to delete them or a tool for doing it?

MacBook Pro 2.4 GHz Intel Core 2 Duo, Mac OS X (10.6.8)
  • X423424X Level 6 Level 6 (14,190 points)
    Currently Being Moderated
    Feb 12, 2012 11:22 AM (in response to AMCarter3)

    Maybe these articles will help:


    You can't empty the Trash or move a file to the Trash

    The X Lab: Solving Trash Problems

     

    You might also consider using a utility like TrashIt.

     

    FWIW, error -1407 is corresponds to "Expected a folder, got a file".  You may want to consider running Disk Utility to repair/verify your drive(s).

  • HACKINT0SH Level 5 Level 5 (5,750 points)
    Currently Being Moderated
    Feb 12, 2012 8:34 PM (in response to AMCarter3)

    I have seen this error code multiple times before. Here's your solution:

     

    1. Force quit the Finder.
    2. Click the Relaunch button.
    3. Click Relaunch again.
  • fane_j Level 4 Level 4 (3,655 points)
    Currently Being Moderated
    Feb 12, 2012 9:31 PM (in response to AMCarter3)

    AMCarter3 wrote:

     

    I have some very old files on my laptop that I cannot delete. The file type is: Unix Executable File.

    The type is bogus. It's what Finder says when the file has no filename extension, nor file type signature.

    When I attempt to trash these files, I get error msg: The operation can’t be completed because an unexpected error occurred (error code -1407).

    The error is "Expected a folder, got a file". Possibly bogus too.

     

    The simplest way to get rid of them (if they're not too many) is in Terminal. Here's a short description of Terminal

     

    <http://guides.macrumors.com/Terminal>

     

    To delete one of your files, in Terminal, at your prompt, type

     

    rm -fR

     

    (that's "rm<blank_space><hyphen>fR<blank_space>")

     

    Then drag the file on the Terminal window. Its path should be inserted on the command line. (Make sure it's the right file. The rm command is not undoable.) Finally, press Return to execute the command. The file should be deleted whatever it is. If there's an error, copy the message text and paste it here.

  • HACKINT0SH Level 5 Level 5 (5,750 points)
    Currently Being Moderated
    Feb 13, 2012 11:52 AM (in response to AMCarter3)

    That solution is interesting, I"m just not sure if it was a false-positive though.

  • HeyHeresAUserName Calculating status...
    Currently Being Moderated
    Aug 19, 2012 3:54 PM (in response to AMCarter3)

    Hi,
    I'm having a similar problem.  I can't delete a damanaged file (in this case a jpg). I"m trying to backup my my external drive and I get an error: "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk.Latest successful backup: 8/18/12 at 2:21 PM"

     

    So I ran Disk Utility on all draives no problem.  Then I ran Time Machine buddy and found the offending files (three 3 jpgs that won't open).  When I try to move these to the trash, I get this error: The operation can’t be completed because an unexpected error occurred (error code -1407).

     

    When I tried to dete the files using fane_J's recommendation using Terminal I get this error:

    rm: illegal option -- /

    usage: rm [-f | -i] [-dPRrvW] file ...

           unlink file

     

    Any ideas?

  • HeyHeresAUserName Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 19, 2012 3:54 PM (in response to fane_j)

    Hi,
    I'm having a similar problem.  I can't delete a damanaged file (in this case a jpg). I"m trying to backup my my external drive and I get an error: "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk.Latest successful backup: 8/18/12 at 2:21 PM"

     

    So I ran Disk Utility on all draives no problem.  Then I ran Time Machine buddy and found the offending files (three 3 jpgs that won't open).  When I try to move these to the trash, I get this error: The operation can’t be completed because an unexpected error occurred (error code -1407).

     

    When I tried to dete the files using fane_J's recommendation using Terminal I get this error:

    rm: illegal option -- /

    usage: rm [-f | -i] [-dPRrvW] file ...

           unlink file

     

    Any ideas?

  • 74fiat Calculating status...
    Currently Being Moderated
    Jan 25, 2013 7:32 AM (in response to HeyHeresAUserName)

    As AMCarter3 mentioned, rename the file by adding .doc

    At this point I was able to open my Unix file as script.

    I simply deleted some of the script, moved the file to trash and was able to empty the trash completely.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.