Locked folder with virus - delete

I have a folder on a USB stick that picked up a virus when connected to a PC.
It appears as a zip folder and is locked. I cannot unlock it and cannot trash it.
Is there a way to force delete such a folder? I wish to continue using the stick and do not want to transfer the virus to other PC users.
Thanks

use searchlight to find terminal (or click on /Application/Utilities/Terminal.app )
WARNING: NEVER EVER TYPE sudo rm -rf / and press enter unless you know what you are doing
(instructions and comments are written after // the rest are commands).
//hit enter after each command typed.
//commands are case sensitive.
//go to the path were your pendrive is mounted by doing this
cd /Volumes
ls
//a list of folders will appear, verify the name of your pendrive is listed there (usually the partition name, if you pendrive is mounted as Frenchchrispen, type the following)
cd Frenchchrispen
ls
//a list of files and folders from that pendrive's mounted partition will be displayed, noticed the name //of the folder your want to delete then do
//ABSOLUTE CAUTION HERE KNOW WHAT YOU ARE TYPING, MAKE SURE IT IS THE FOLDER NAME YOU WISH TO DELETE THAT IS TYPED THERE
//NOTE: if you folder name contains special characters or space, type the name between double quotes " "
sudo rm -rf foldername_i_wish_todelete
//that should do the trick, if ever it is complaining about sudo not found, try just rm -rf or
su
cd /Volumes/Frenchchrispen
rm -rf foldername_i_wish_todelete
+selven

Similar Messages

  • How can I find my iCloud folder with my deleted messages? in it

    Where is the archive folder with the deleted messages in it?

    As Winston says, only if you have made a backup to icloud.  You have to perform a restore to get them back.
    http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US
    Go to Settings>General>Reset and tap Erase All Content and Settings.  This will erase your device.  Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.
    This link gives another overview of backup and restore:
    http://support.apple.com/kb/HT4859?viewlocale=en_US&locale=en_US

  • Rename a locked folder with Terminal

    Hi,
    I have a folder /usr/local/php5/ and I want to rename it /usr/local/php5Apache1.3/ to install a new package.
    How do I do that since I don't have write access to /local/ ?
    Thank you much

    Hi Dimitryous,
       If you don't have permissions to do it, use "sudo" to do it as a user that does have permissions. The command would be:
    sudo mv /usr/local/php5 /usr/local/php5Apache1.3
    Of course you have to be logged in as an admin user for this to work. When prompted for a password, you provide the password of that admin user.
       On the other hand, combining the source code of two packages in the same directory shouldn't work because they share a number of files. It is traditional to have a directory like /usr/local/src inside of which you put each package in its own directory. If the packages are not source code then it might not matter but it is still probably a good idea to save packages in their own directories.
    Gary
    ~~~~
       Time is a great teacher, but unfortunately
       it kills all its pupils.
             -- Hector Berlioz

  • Locked folder I can't get rid of.

    I was burning a data-DVD of some photos when I hit a snag navigating in Finder, and so I control-clicked on Finder and told it to relaunch. But by doing that, it interrupted the DVD burn. Now, I have a folder on my desktop that is called Untitled DVD that is locked, and I can't get rid of it. I can't unlock it either. When I try, Tiger tells me I don't have permission to do that. I tried to move it so it wouldn't be on my desktop, and instead, it just copied it to another folder. So now I have two of these stupid, useless folders.
    So, any ideas on how I can get rid of these folders? They're not taking up that much room, but they are annoying.

    Delete the locked folder with Terminal (in Applications > Utilities):
    1. Open Terminal window
    2. Type 'sudo rm -rf ' (Not the ' marks, just what is between them. Yes, that is a space on the end. _Do not press enter yet_.)
    3. Drag the offending folder into the terminal window. Its path should be entered after the text you have typed. Click in the Terminal window to switch back into Terminal (from Finder).
    4. Press enter/return.
    5. Type your admin password.
    6. Wait until the prompt appears again (may take some time).
    7. Quit Terminal.
    Follow the above instructions *carefully and exactly* (rm -rf is capable of deleting anything).
    Hope this helps...

  • I have a folder and 3 files stuck on my desktop.  When I drag them to the trash I am asked to enter my administrator's password.  I do this but the files and folder will not delete.  I have checked 'Get Info' on each of them and they are not locked?

    I have an empty folder and 3 .jpg files stuck on my desktop.  When I drag them to the trash I am asked to enter my administrator's password.  I do this but the files and folder will not delete.  I have checked 'Get Info' on each of them and they are not locked and I have full read & write access.  Grateful for any assistance in solving this problem.

    Back up all data.
    Triple-click anywhere in the line below to select it:
    ls -@Oaen De* | open -f -a TextEdit
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.
    If any personal information appears in the output, anonymize before posting, but don’t remove the context.

  • My older ibook g4 is locked up with an icon flashing. looks like a file folder flashing a blue and white face/question mark. what is this?

    my older ibook g4 is locked up with an icon flashing. looks like a file folder flashing a blue and white face/question mark. what is this?

    Apple's suggestions for dealing with the flashing question mark folder:
    http://support.apple.com/kb/TS1440?viewlocale=en_US
    Niel has summed it up pretty nicely.

  • A phantom folder with the name of a folder that held photos has appeared in my finders places list.  I can't choose it to delete it.  it won't move.  It can't be found in a search.  How can I choose it and delete it?

    a phantom folder with the name of a folder that held photos has appeared in my finders>places list.  I can't choose it to delete it.  it won't move.  It can't be found in a search.  How can I choose it and delete it?

    Can you drag it off holding down the CMD key?
    Do a search for it with EasyFind  (try different settings in "Operator")
    http://www.devontechnologies.com/products/freeware/

  • File sharing problem with a PC . locked Folder Icons and funny things

    Help was running Tiger fine then upgraded to leopard now my Macbook pro wont shut down properly unless i disconnect all the external USB devices that are attached.
    I also used to be able to write to my shared folder on my Windows PC, this comes up on my mac Book pro now with a locked disk icon on it and i cant save to it. the folders inside it also start changing there icon appearance at will. and some times when i try to save a file to it it keeps telling me the file name is too long even if i change it to only one or two characters .
    would not mind too much but this is my business thats being effected by this . I have tried it on 2 Imac
    Dual core flat panel machine's which still run in tiger and everything is fine with both of these so i know its Leopard that has caused these faults. anyone with any help please let me know .
    ian

    *Same problem* here: MacBook on Tiger was fine, after installing Leo, unable to write on shared pc-folders (lock-icon).
    There are 2 work-arounds I found:
    1. uncheck the "protected" box in the info-panel (Mac) of a locked folder,
    2. if the pc-folder had a custom icon, resetting to standard will unlock the write protection as well. In both cases, the folders on the pc will change their icons... I have to agree that this is a Leopard issue.
    As I use the Mac for work and often have to exchange docs from and to pc's this "bug" is annoying me.
    casp.

  • Deleting a folder with files in it

    Is it possible to do this with the  'delete' folder/file activity?
    I have tried this and not been successful.
    Is this possible or do I need to clean up the files and folders in the folder I want to delete before I can delete  the folder
    using this activity?
    Thanks
    Carmen

    I save files on a network share and just do a plain old FileService.deleteDirectory.  Maybe make sure you have a "\" as the last character in your directory path.

  • How to lock a folder with password ?

    Please tell me how to lock a folder with password (to keep personal files)

    Keep looking it can be done. I have a folder on my hard drive that requires a password everytime I try to open it. I found how to do this in an old "Mac OS - The missing manual" but don't remember off the top of my head how I did it. I remember you have to partition a portion of the hard drive, I think I did like 10 Gig of my 1 Teribite external drive and then you give it a name and make up a password. The password is NOT changeable and if you lose it you can't get back in that folder. It appears as a standard folder but needs a password to open it.
    Email me direct if you can't find any info and I will try to look it up - [email protected]

  • Deleted Movies Home Folder with Transmit

    Hi, accidentally I deleted my movies home folder with Trasnmit (pointing to the wrong window and bang!!!, bye bye movies!!!), and I managed to recover my files with Data Rescue II, but my problem is to get my Movies folder re-rooted to my user, which I have no Idea at all how to do.
    Any help will be really appreciated.

    And what about to have it rooted and protected with the ACL specials permissions that have Leopard, that is been talk in this posts:
    http://discussions.apple.com/thread.jspa?messageID=6192505&#6192505
    http://discussions.apple.com/thread.jspa?messageID=6286626&#6286626

  • I just bought my MacBook Pro 13" and I tried to install an anti virus but then it went into a grey folder with a question mark I need help with restoring the iOS please

    I need help taking out the grey folder with the question mark and I've try everything except the CD thing because my MacBook didn't come with one so I really need help please

    What anti-virus software did you install? Although there's a lot of bad anti-virus software out there, no anti-virus software should cause such a problem. A gray screen with a flashing question mark on a folder means that no bootable system could be found, which means that the system was badly damaged or corrupt. Even installing bad software would not normally cause that, so either there was something badly wrong with the system already or the anti-virus software you tried to install was really, really bad!
    As mende1 says, you need to reinstall the system at this point. After your system is back up and running, read my Mac Malware Guide. If, after reading that, you want anti-virus software, use one of the programms recommended in that guide.

  • I am new to mac. just purchaased it 3 weeks ag along with MS office for mac, i notice that all my outlook email are in this finder folder, can i delete these email files from this location? why are they there anyway?

    I am new to mac. just purchaased it 3 weeks ag along with MS office for mac, i notice that all my outlook email are in this finder folder, can i delete these email files from this location? why are they there anyway?

    Cherry63 wrote:
    I am talking about the icon on the docking row, that's the guy with the smily face. When you click on him it brings up a bunch of files of what I seem to have store/created on my Imac. There are hundreds of emails and some other documents. I tried to delete a few of them when I first got the MS office but it did not like that, it said it have to rebuild oulook. Why cant i delete these files? is this Apple version of Window outlook PST files?
    These file extenssions are listed as
    olk14_message or even or ccontact. I wish I could send a screen print but I dont see that on the key board. Maybe I should have stuck with windows..
    Oh the ...olk14_message's.  Do not delete them behind Outlooks back, i.e., from the finder.  Those are the various messages that you sent, received, or deleted in Outlook.  They are indexed by Outlook so if you delete behind Outlook's back Outlook will get confused trying to access those messages.
    You can delete them however using Outlook itself.  In outlook select a mailbox (Drafts, Sent Items, Deleted Items, etc.) by clicking on the mailbox on the left.  It will show you the messages in that mailbox.  You can now select all or selected items in that mailbox.  The click the Edit menu and select Delete.  You will get a dialog asking if you really want to delete the selections.  Answer "Delete" and the messages will get deleted.
    The olk14_message's you are seeing are the actual messages shown the Outlook mail boxes.  When you actually delete them the way I just described the corresponding olk14_message files will also be deleted.
    Note Outlook's Deleted Items mailbox is where all deleted messages go when you click the Delete tool in the Outlook toolbar.   Thus using the Delete tool from the toolbar does not permanently delete the messages.  So if you been using that for months or years you are going to have a very large Deleted Items mailbox.  And every one of those items in there is going to have a corresponding olk14_message file for that message.
    So if those olk14_message files you are seeing are from the Deleted Items mailbox you can get rid of all those corresponding olk14_message files by selecting all the messages in Deleted Items and using the Edit menu's Delete.
    Alternative ways to the Edit/Delete to do the permanent delete is select (all) the messages to delete and control (right) click to bring up the Outlook contextual menu and select Delete from it.
    Finally if you use the Delete tool in the toolbar for messages selected in the Deleted Items mailbox you will be able to permanently delete those too.  It's an exception since using the tool on the Deleted Items means there's no place to put those messages except to "oblivion".
    So, in summary, using the Delete tool in the toolbar on messages in every mailbox except the Deleted Items mailbox just moves messages to the Deleted Items mailbox.  But using the Delete tool on items in them Deleted Items mailbox permanently deletes the selected items in there.  And only permanently deleting items removes the corresponding actual ...olk14_message files.

  • Macbook pro folder with question mark blinking appear whent I turn on, When I press the Option key Grey lock screen appear asking for a password, can anyone help me please?

    Macbook pro folder with question mark blinking appear whent I turn on, When I press the Option key Grey lock screen appear asking for a password, can anyone help me please?

    Provide the computer's firmware password. If you don't know what it is, contact the person you got the computer from or Apple.
    (91589)

  • I play words with friends HD free.  It locked up and I deleted it and tried to reload it to my I pad but it wont download.   I had done this before but not since I downloaded IOS 7..

    I play Words with Friends HD Free on my I pad.  The game locked up and I deleted from my I Pad.   When I tried to download it from purchased or free downloads it won't download.   I had done this before but not since updating to IOS 7.02.   I need help please.

    I don't know if this will work but it's worth a try. Sign out of your iTunes account on your iPad, restart the iPad and sign back into your account.
    Go to Settings>Store - tap on your Apple ID and tap on sign out. Restart your iPad and then sign back in via Settings>Store  - tap on sign in and enter your email and password.

Maybe you are looking for