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

Similar Messages

  • I recently purchased a new Macbook Air and used migration to transfer old files from my old PC to the Mac, and now there are songs that I purchased through Itunes on my phone that are not on my Mac, how do I transfer these songs from the phone to the Mac?

    I recently purchased a new Macbook Air and used migration to transfer old files from my old PC to the Mac, and now there are songs that I purchased through Itunes on my phone that are not on my Mac, how do I transfer these songs from the phone to the Mac?

    dnunn wrote:
    ... how do I transfer these songs from the phone to the Mac?
    Transfer Purchases  >  http://support.apple.com/kb/HT1848
    Download Past Purchases  >  http://support.apple.com/kb/HT2519

  • I'm converting from a PC to  iMac. On the PC I have many Inbox folders with PR info for distribution. How do I get these folders from the PC to the iMac?

    I'm converting from a PC to  iMac. On the PC I have many Inbox folders with PR info for distribution. How do I get these folders from the PC to the iMac? I've used the Windows e mail Inbox folders for an easy access filing cabinet for years, as this all goes out on e mail. Thanks for assisting me!

    I think the easiest way would be to use Migration Assistant to get all that over...
    http://support.apple.com/kb/HT2518
    http://support.apple.com/kb/DL1415

  • How to run a openssl command from a java program

    Hi All
    Please suggest on how to run a openssl command from a java program.
    I am using this
    Runtime runtime = Runtime.getRuntime();
    runtime.exec("openssl pkcs8 -inform der -nocrypt test.der result.pem");
    This is suppose to take test.der as input and create result.pem.
    There are no errors but the file result.pem isnt created.
    Thanks in Advance

    First off is that openssl command correct? Should it be this instead:
    openssl pkcs8 -inform der -nocrypt -in test.der -out result.pem
    Try out your openssl command within a command prompt so that you know that it works ok. I think the command line you specified waits on stdin (well it does for me).
    After that.....
    runtime.exec creates a Process object. If you do this:
    Process openssl = runtime.exec("....")
    then you can examine the return code from openssl to see the exit code - for instance if the input file does not exist then exit = 1. You can test for this with Java
    Alternatively you could get the stderr from the process and look inside it - if it is 0 length then all is good, if it has some text in there then it has likely failed. You could then throw an exception and include the stderr output in the exception messgae. You may need to experiment with this, runnig it first when openssl is happy then running it again when openssl is upset.
    M

  • We have 2 ipods and 1 ipad with different apps all synced to one computer.  How do I prevent these apps from automatically being synced to all three devices each time I do a backup/sync?

    We have 2 ipods and 1 ipad with different apps all synced to one computer.  How do I prevent these apps from automatically being synced to all three devices each time I do a backup/sync?

    Uncheck the option to automatically sync new apps to the device.
    Other than that, syncing is by device.
    Connect one device, tell iTunes what to sync, then sync.
    Connect second device, repeat.
    Connect third device, repeat.

  • I keep getting the message "mail cannot connect to the server-." when it clearly can and does. How do I prevent these messages from appearing?

    See the title
    I keep getting the message "mail cannot connect to the server…." when it clearly can and does. How do I prevent these messages from appearing?
    help

    On your iPad or a Mac?
    You posted in the iMac community but your profile indicates an iPad 2.

  • TS3899 I keep getting batch loads of old emails uploaded to my IS 4 phone in increments of 100, how do I stop these emails from being sent to my iphone? thanks Patrick

    I keep getting batch loads of old emails uploaded to my IS 4 phone in increments of 100, how do i stop these emails from being sent to my iphone? Thanks Patrick

    SOLUTION FOR UNREAD COMCAST MAIL...so far, so good
    I went to Comcast.net and created a folder titled "Archive 10-2-13" and then went back into my inbox on the site and clicked the 'select all' box at the top of the email page. I could only see what would fit on my screen, but figured out that if I scrolled ALL the way to the very end (which was a l-o-n-g time for 30,000 emails) and then clicked "move to' at the top of the page and chose "Archive 10-2-13"..all my mail went there and no longer comes up as unread on my iPhone.
    I don't know if this will work for other POP accounts (Hotmail, etc.) but HALLELUJAH! I have ZERO unread email messages showing!

  • For some reason, when my Macbook Pro starts up, all of the MS Office applications open.  This was not happening when I first purchased the laptop, and I never added these apps to the startup menu.  How do I remove these apps from startup?

    For some reason, when my Macbook Pro starts up now, all of the MS Office applications open.  This was not happening when I first purchased the laptop, and I never added these apps to the startup menu.  How do I remove these apps from startup?

    By default Mac apps do not close when you close the window you were working in. Unlike in Windows when you click the top right X icon in any program is closes the window and the program shuts down. On Mac OS X clicking the X in the top left hand corner only closes that windows and leave the program running in the background. If they are left open and you reboot they will restart with the system and load a window for them.

  • How to execute Operating System commands from Stored procedure.

    Any help on how to execute Operating System commands from stored procedures will be appreciated.
    Nanditha.

    Search the forums for 'External Procedure' and you will find example code that has been posted before.

  • Chrome://custombutton/content/button.js:302 how do I stop these scripts from happenning?

    How can I stop these 'scripts' from happening? There doesn't seem to be any rhyme or reason. It happens on various sites, times of day, number of tabs, ... I can't pick up what the important variables are.

    That is a problem with the Custom Button extension.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How do I reset print system from terminal

    I was having trouble seeing my desktop's shared printer from my laptop, so I ran the following in the terminal:
    cupsctl BrowseProtocols='"cups dnssd"'
    Now any app that so much as thinks about printing crashes, including the system preferences. I am totally hosed here. How can I undo this? I can't get to any printer dialog to "reset the print system"

    AFAIK, there is no Terminal command to reset the printing system. This question was asked a while ago for Leopard and this was the answer then - don't know if this has changed for SL. The CUPS man pages would suggest it hasn't...
    But there is now the ability to reset the cups daemon configuration file via the CUPS web page. Using your browser, open the CUPS Admin page
    http://127.0.0.1:631/admin
    Here you will see the button 'Edit Configuration File'. Click this and you will see the cupsd.conf entries. Looking through this file shows that network shared printers are browsed using "BrowseLocalProtocols CUPS dnssd", the same as you tried to enter with the other command which could be only for 10.5?
    Anyway, here you will also see the button 'Use Default Configuration File'. Click this and then click Save Changes. This will prompt for your admin username and password. Enter these and OK. Hopefully this gets you back the ability to access Print & Fax and to print again.
    Pahu
    Message was edited by: PAHU

  • The application "PREVIEW" can't locate files, cancels shutdown. How can I remove these files from PREVIEWS memory?

    Does anyone know how I can stop this program from looking for files? Every time I restart PREVIEW gives two errors while it's searching for image files that are no longer there. FYI this is a lingering problem related to the replacement of my hard drive (under recall from apple), iphoto had to be totally rebuilt many times through technical support. Now there's just this program still trying to open phantom images.

    If you prefer to make your user library permanently visible, use the Terminal command found below.
    http://osxdaily.com/2011/07/04/show-library-directory-in-mac-os-x-lion/
    You might want to bookmark the command. I had to use it again after I installed 10.8.2. I have also been informed that if you drag the user library to Finder it will remain visible.

  • How would I run these commands?

    I'd like to derive version metadata on specific applications AND I'd like to extract the Mac OS Build while I'm at it.  Each of the following commands works great individually but to run the entire batch at once and have it echo back a simple report do I need to create a script?  How can I tiew these together in a Terminal command?  Thanks.
    mdls -name kMDItemVersion /Applications/Microsoft\ Office\ 2011/Microsoft\ Excel.app
    mdls -name kMDItemVersion /Applications/Adobe\ Reader.app
    mdls -name kMDItemVersion /Applications/Safari.app
    mdls -name kMDItemVersion /Applications/Google\ Chrome.app
    mdls -name kMDItemVersion /Applications/Adobe\ Acrobat\ X\ Pro/Adobe\ Acrobat\ Pro.app
    SW_VERS

    Open the AppleScript Editor in the /Applications/Utilities/ folder and run:
    set the_versions to (do shell script "mdls -name kMDItemVersion /Applications/Microsoft\\ Office\\ 2011/Microsoft\\ Excel.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Reader.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Safari.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Google\\ Chrome.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Acrobat\\ X\\ Pro/Adobe\\ Acrobat\\ Pro.app")
    (107655)

  • .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.

  • How to find out histotry command from other session

    Hi gurus,
    I use RHEL 5.4
    Some user log onto server with root and make change at some files. How can I find out history command from other session with the same user.
    history command is just give me history commands of my own session.
    Thanks
    Ch

    The file which holds the commandline history is .bash_history in the home directory of the user.
    So in the case of root, /root/.bash_history
    Please mind that if you log in as root, or become root your session will add to that file as well.
    Another issue with the history file is that when multiple sessions are logged in, every session writes in its own version of the same file. So the last one "wins", which means that version is the one which is truly stored.
    If files are changed, a find command with the 'mtime' parameter should be helpful.

Maybe you are looking for

  • [BUG] iCal reverts Google Calender recurring events when changed.

    When in Apple Calendar and drag a recurring event to a new time and the pop-up asks if I want to do this for this event or all future events and choose only this event it changes, then moments later it reverts back to the original time. These events

  • I am trying to download/install updates. but i get a red "x" under the "status" of the update.

    I am also having problems with the printer not recognizing my memory card, but it has in the past. It will spontaneosly display the message "connecting" on the screen of the printer, and I have to turn it off or unplug it to print. I am assuming thes

  • Call /SAPAPO/AC04 in APO from ERP

    Hi, I would like to modify some of the selection field and report fields in /SAPAPO/SIMULATE_APO which located in APO server. transaction code: /SAPAPO/AC04  However, I want to do it in ERP server. How can I access the data of /SAPAPO/AC04 in APO fro

  • View remote file system

    Hello to all. I have just implemented a simple client/server application which enables file transfers. I would like to know if there is a way of implementing a remote file viewer in which i will be able to send requests and download files. My primary

  • No preview for autocad dwg files (bridge CS4)

    hello! my computer is: windows 7 / x64 / nividia 9600GT with my new computer we switched from CS3 to adobe CS4 products. (illustrator / PS) unfortunately i can't see previews of autocad dwg files anymore. (very important for my work). the .dwg files