.DS_Store files undo delete command in Terminal

I was copying large quantities of files to a poorly formatted LaCie 3T external drive and kept coming up with interruptions in copying because the Finder kept "seeing" the creation of .DS_Store files. I researched and found a command for Terminal which stopped the OS from creating .DS_Store files. I restarted my laptop and sure enough, no more .DS files are being created.
I was then able to complete the massive transfer, I reformatted the drive, and returned all of the files to the 3T drive. Now everything's working alright.
My question is... How do I return the creation of .DS_Store files back to normal?
Can anyone drop me a line that I can insert into the terminal command line and get it done?
Thanks in advance.

You know, I did that, and nothing happened. So I then decided to re-install M.L., and I'm now manufacturing .DS_Store files with abandon.
I've been reading that it's not a popular kind of file for folks, especially those who are working with variously formatted devices. There are some obscure advantages to having the files sit around the hard drive.
Thanks for your advice, however. It's good to know that I wasn't so far off.

Similar Messages

  • How do I undo these commands from terminal?

    I was trying to copy music from my iPod to my mac, so I copy & pasted these two commands into terminal:
    defaults write com.apple.finder AppleShowAllFiles TRUE
    killall finder
    Now there's an icon on my desktop that i can't delete that says ".DS_Store and I can't open it with any of my applications.
    Please help!
    Thanks

    Not sure, try this:
    defaults write com.apple.finder AppleShowAllFile FALSE
    then
    killall Finder

  • Recover Accidentally Deleted Commands in Terminal

    I'm trying to do a certain set up on my Nintendo 3ds system using wifi on my Mac OS X desktop and in order to do it I'm suppose to put in certain commands in the terminal, but I made a mistake and pressed backspace and accidentally deleted my commands in my terminal box. I'm new to using terminal and I have not emptied my trash. What can I do to get it back?

    You typed something into the terminal and you have no idea where you got the original command from and you have no idea what you typed. Now the screen shot you post is pretty messed up. Not really sure what you expect especially if you wont answer the questions asked or try the steps suggested.
    The terminal can be a dangerous place especially if you are not sure what you are doing. Typing in commands that you have no idea what they do or where they came from is a recipe for disaster.
    Wish I had more
    Good luck
    regards

  • Help ... I've accidentally deleted all data of my user in the terminal. what to do? Can i undo the commands?

    Help ... I've accidentally deleted all data of my user in the terminal. what to do? Can i undo the commands?
    greetings from austria

    You cannot undo commands. When you delete/remove files with the rm command the files are not put in the trash where they could be recovered. They are gone.
    You should have your system backed up with Time machine and/or backup clone of your system. Use them to recover you files.

  • Deleted .DS_Store files, Now my drive is EMPTY! Help!

    In Mac's Terminal application I used a command I found on Adobe's website to delete .DS_Store files because I thought I had some corrupt ones. The command was to delete all of them on the entire machine. Since they are not critical files, I figured what the heck. Well, maybe I typed something wrong. I know Terminal is very touchy (now I know). But all of the files on my external drive are gone. When I double-click the drive icon, the window shows 0 items. Can anyone tell me what went wrong and how to undo the problem. I think all the files are still on the drive, there's just no directory to view them - so it says there's 0 files. Help please!
    Here's the commands I entered in Terminal. Note that the first line is the command that was supposed to erase the .DS_Store files. The second line asked for my password. When I entered it, it may have deleted the files, but then it gave me no new command prompt. So everything you see from the "sudo" on is things I entered trying to get a new prompt. So I think that's where I screwed something up.
    neals-imacs-imac-g5-5:Clients iMac$ sudo find / -name ".DS_Store" -depth -exec rm {} \;
    Password:
    sudo
    sudo ls
    neals-imacs-imac-g5-5:~ iMac$ sudo ls
    neals-imacs-imac-g5-5:Clients iMac$ sudo
    usage: sudo -K | -L | -V | -h | -k | -l | -v
    usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
                { -e file [...] | -i | -s | <command> }
    neals-imacs-imac-g5-5:Clients iMac$ sudo ls
    Password:
    By the way, the Adobe article that showed how to delete the .DS_Store files (in case that helps) is at: http://kb2.adobe.com/cps/168/tn_16831.html

    I just did the same exact thing (but recovered!). I hope you didn't empty your recycle bin/trash yet! Your library information is there - get it out!
    The instructions on the web are a bit obtuse - what you need to do is delete ONLY the "iTunes Music" folder within the default iTunes location; I deleted the ENTIRE "iTunes" folder and saw exactly what you do now. You need to restore the "iTunes Library.itl" and "iTunes Music Library.xml" files, and you'll be back in business.
    Not sure how you'll recover if you can't get those files back...

  • Is there a way to list all .DS_Store files for selective deletion?

    I routinely run VirusBarrier X6 antivirus software. Every time I do, it gets hung up on a single .DS_Store file for days on end, and I have no way to ascertain where the file is located. I understand that .DS_Store files are hidden and in every folder, so I was wondering if there was a way to list all of them via Spotlight or a Terminal command line. Whenever VirusBarrier has been hung up on a system file in the past, it's been freakishly large. I figured if I could list and sort all of the .DS_Store files, it might help me to pinpoint the one responsible for the hang-up. I know about the Terminal command to show all hidden files, but I do not know how to view them all together in a sortable list by size.
    I am also aware of the Terminal command that deletes all .DS_Store files on your computer, but I've read that it may lead to catastrophic results. I'm not looking to cripple my computer over a virus software hang-up.
    Thank you.

    I'm not looking to cripple my computer over a virus software hang-up.
    The computer is already crippled. Remove the Intego product, which is worse than useless and worse than the imaginary "viruses" would be if they really existed, which they don't, by following the instructions on this page. If you have a different version, the procedure may be different.
    Back up all data before making any changes.

  • System crash after deleting ".DS_Store" files?

    My Finder view options were a bit messed up, so I decided to follow some online advice and delete all ".DS_Store" files on my MBP. I followed instructions on osxdaily.com. Specifically, I typed the following command into Terminal:
    sudo find / -name ".DS_Store" -depth -exec rm {} \;
    After the command finished running I tried to restart the computer but it would just show the grey screen with the Apple logo and the progress indicator and not start up properly. I was able to run Disk Utility and verified the HDD. No errors were displayed. I chose "repair disk" anyway, but the computer still would not start up. Entering safe boot mode didn't work either. In the end, I chose to reinstall OSX 10.8 from the Internet. I didn't want to reinstall a backup from Time Machine because there were some files I hadn't backed up yet.
    Fortunately my MBP seems to be working properly again, but what's weird is that I had to reinstall every single application. The application files were still present in the application folder but their icons were greyed out and they wouldn't launch.
    Does anybody have any idea why this happened? Is it that dangerous to delete ".DS_Store" files? Should I use a different command? I would still like to get rid of those files so I can redefine a default view for all folders.
    And is it normal that if I reinstall OSX I need to reinstall all applications as well?

    Letting something arbitrarily delete every .DS_Store file on your computer invites bad things to happen.
    Running rm is dangerous as is--letting it run rough-shod all over your computer is infinitely dangerous.
    I don't know why there is a .DS_Store file  inside an app package, but removing it "damages" the App just as if some malicious code might write malware into the package. So, it is no mystery why they do not work anymore.
    Deleting specific .DS_Store files in folders is not normally a problem.
    If you have a problem in one folder that doesn't hold its settings, deleting the .DS_Store file is ok.
    Here's how I would do it, though:
    Open the folder and Cmd-F.
    If you don't already, use the Other... option in the Criteria popup to add the System Files and Visibility options to the criteria menu (check the box to include in men).
    Set the Search criteria to System Files are included and Visibility is invisible.
    Type ".DS_Store" in the search field. You should see the .DS_Store file for that folder at the top of the list, and then all the others in the subfolders.
    You can delete it from there.

  • How to delete a command in Terminal?

    Months ago I tried to sync ical via Dropbox, which required entering a command in Terminal.  Now I'd like to reverse the action.  How do I go about deleting or countermanding this command?  Thanks.

    Based on the symlink you created long ago, your calendar directory is currently stored in Dropbox.  If you want to keep your calendar data you will need to move it back to ~/Library/Calendars.
    To be on the safe side use the ls command to see which is the symlink and which is the real directory:
    ls -ld ~/Library/Calendars ~/Dropbox/Calendars
    The one that starts with L and contains 2 file paths as in
    lrwxr-xr-x 1 username group 9 Dec 4 2011 /Users/username/Library/Calendars -> /Users/username/Dropbox/Calendars
    is the symbolic link
    The one that starts with D is the real calendars directory, for example:
    drwxr-xr-x 1 username group 9 Dec 4 2011 /Users/username/Dropbox/Calendars
    NOTE:  I strongly suggest you have a current backup before you use the 'rm' command below.  One mistake with 'rm' (remove, aka delete) and you can loose data that you are not going to get back.
    To remove the symlink, and put your calendar data back where iCal expects to find it, use the following commands:
    rm ~/Library/Calendars
    mv ~/Dropbox/Calendars ~/Library/
    The rm command is removing the symlink you created.
    The mv command is moving your calendars information to ~/Library where iCal expects to find it.

  • Undo Message Delete command is sometimes present, sometimes not

    I've noticed that sometimes the Undo Message Delete command is present after I delete a message
    but other times it isn't - all that's there is Undo which is greyed out. Does anyone know the conditions
    under which the Undo Message Delete command appears? I haven't found any consistent pattern.
    I know the message can be manually moved back from the Trash but I've found that occasionally I've inadvertently
    deleted a message without knowing which message it is which makes it rather hard to find in the Trash.

    Open your firewall program. First check the settings. Make sure that the
    program is set to tell you if a new program wants access to the web. Then
    go to the list of programs the firewall has. Make sure that all the programs
    you want to access the web are set to '''ALLOW'''. If it is set to '''AUTO''', the
    firewall may not allow access.
    ====================================
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • How can "multiple folders/files" be deleted in ONE PSEXEC COMMAND LINE

    I can delete remote folders/files via bat command with psexec (below) but; 
    It takes a little time because of the 9 different folders. Maybe, looping of txt file can be used for different folders.
    So how we can delete multiple folders in ONE PSEXEC COMMAND LINE?
    Here my working code but it does its job in 9 steps :(
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\1*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\2*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\3*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\4*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\5*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\6*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\7*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\8*.*") do rd /s /q "%%a""
    psexec \\%PC% cmd /c "for /d %%a in ("c:\Users\9*.*") do rd /s /q "%%a""
    \_(ツ)_/ twitter.com/serdaruzun

    I think it is:psexec \\%PC% cmd /c "for /l %%n in (1;1;9) do for /d %%a in ("c:\Users\%%n*.*") do rd /s /q "%%a""
    \_(ツ)_/ twitter.com/serdaruzun

  • Undo deleted photo, how to recover a deleted file in iPad mini

    how to undo deleted photo? how to recover a deleted file in iPad mini?

    Unfortunately you can't. Except if you made a back up of your iPad on iTunes, restore it with the last save.
    Hope I helped

  • Can you undo deleting a song/ file/ project ?

    So I was about to export this song I just edited (it came out PERFECT) but when I tried to export via mail, it said I did not have space.  So I started to delete other songs and I forgot to uncheck the song i wanted to export and now it got deleted along with the others.  Is there a way to undo deleting a file?  I am really feeling down because it has my singer's vocals and we worked days on it ! please help!

      Is there a way to undo deleting a file?
    Only if you had made a backup of your iPad before you started to delete projects. Then you could restore the iPad from your most recent backup. Other than that, deleting is final.
    See: iCloud: Backup and restore overview
    iCloud: Troubleshooting restore issues with iCloud Backup
    Regards
    Léonie

  • I updated my iMac to Mountain Lion. All the files were deleted. I have Time Machine backups. When I restart the mac pressing Command R to restore from backup it shows the previous OS X (Leopard) beside the date of the backup. Will it go back if I restore?

    I updated my iMac to Mountain Lion. All the files were deleted. I have Time Machine backups. When I restart the mac pressing Command R to restore it from the backup it shows the previous OS X (Leopard) beside the date of the backup that I want to select. Will it go back to Leopard if I restore it from the backup?

    No, it won't revert to the prior OS X but you you may have third party apps installed that were compatible with Lion that may not be compatible with Mountain Lion.
    App Compatibility Table - RoaringApps - App compatibility and feature support for OS X & iOS
    After you restore from TM, check HD > Incompatible Software

  • Where can I find the LOG file for bash/command history typed into Terminal?

    Where can I find the LOG file for bash/command history typed into Terminal?
    For 2 weeks ago I was searching for a log file on my server. Somehow I opend a file where I could see a list of all bash-commands I had ever entered into OSX Terminal.
    Now I need this file.. but cant find it.
    What is the official location for this LOG file?
    Thank you so much for helping.

    cat .bash_history

  • Undo delete message command in Mail Exchange account doesn't work post Yosemite

    Before I installed Yosemite on my MacBook Air, I was able to undo a message deleted in Mail Exchange 2010 account with menu command (Undo Delete Message) or Command-Z.  Even with recent updates to 10.10.1 which were supposed to address Mail-Exchange 2010 account issues, it does not work. I have to go into deleted messages and manually restore to Inbox.  Is anybody else having this problem?

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Mail Feedback

Maybe you are looking for

  • How to delete duplicate attribute in on premise server for office 365 dir sync tool

    Hi, Please anyone help to how to remove duplicate attribute in on premise server for office 365 dir sync tool . While running the dirsync tool iam getting the below error :  "Unable to update this object because the following attributes associated wi

  • MSI GE70 Apache Pro-061 Custom/modded Bios

    Hello im new on these forums and would just like to know if i could get a custom/modded bios for my laptop. I would really like to lift the restrictions with overclocking on the gtx 860m card. Current bios version: E1759IMS.520; Running windows 8.1 6

  • How do I transfer my info from my old Mac Mini to my new one?

    I have two Mac Mini's.  The old one is a Power Mac 10.5.8 (no Intel) and the new one is a dual system running Snow Leopard 10.6.7.  I only have one monitor and a wireless connection.  How do I transfer my older files and applications from my old Mac

  • PI7.1 JMS Adapter - connect to NW6.40

    Hello, We are facing following problem on SAP PI: We have a scenario where PI (version 7.1) is connecting to another SAP NetWeaver system (version 6.40).  There is an application that reads/puts messages from/to JMS Queues running on this system. PI

  • Looking for a 30 pin female to 30 pin female adapter?

    I have a set of powered speakers that have the ability to doc an iPod, but the recessed socket won't accomodate an iPad. I could use a female to female gender bender to allow me to use the standard cable to connect up. Ideas? Thanks! Jim