How do I Undo This Terminal Command?

defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -int 0
thats the exact termial command i used. Any help would be great! Ive Tried using different commands to counteract this one but i have no idea what im doing.
- Im running lion
- i got the brand new macbook pro
- any help would be awesome!

Obligatory warning: If you mess around with the shell without knowing what you're doing, you will cause yourself big trouble. You were lucky this time. Many shell commands can't be reversed so easily, if at all.

Similar Messages

  • How can I undo a terminal command?

    I have altered the default location of screenshots taken on my iMac. Origionally the screenshots were sent to my desktop.
    I created a folder and named it screenshots. I then opened a terminal screen which was found in the finder, under utilities. Then I copied the following into the command line "defaults write com.apple.screencapture location". Then before clicking return, I dragged the folder I named "screenshots" into the terminal window. Then I typed "killall SystemUIServer" to reset the terminal and the changes took effect.
    I am curious now, how to undo these changes if I want to?

    I don't believe you are using a PPC iMac, so you may want to change your profile configuration to include all the information about your hardware.
    A good utility for doing these types of configurations without the need to know Terminal commands is MacPilot 4.3.1.

  • My emails from the same person are grouped together, how do I undo this so that each email stands on it's own?

    1.My emails from the same person are grouped together, how do I undo this so that each email stands on it's own?
    2.Currently my emails are grouped together if the subject is the same, how do I undo this?
    3.My emails are "folded up", with tabs like "See more" - how do I undo this? - I want to see the full email at once without having to click multiple times in the email on "show more" etc.
    4.When I send an email to some one, a copy of that email is sometimes sent to me?? - this confuses my and make me think I by accident sent it to myself, but when I check it in the SENT box, it the correct recipient's name was used. How to fix this mystery?
    Please help, I am not good with computers so you will have to keep your answer simplictic or in steps.
    Thanks!

    Click the View menu in the Mail menu bar and uncheck Organize by Conversation.

  • I have two different apple id's, one on my computer and one on my phone. i connected my phone to sync music and i lost most of my music. i realised that the music i lost is from the apple id on my mac. how do i undo this mess? help anyone?

    i have two different apple id's, one on my computer and one on my phone. i connected my phone to sync music and i lost most of my music. i realised that the music i lost is from the apple id on my mac. how do i undo this mess? help anyone?

    The iphone will mirror the selected content of your computer.
    Make sure everything is on your computer.  Select what you want on your iphone, sync

  • Apple recently merged all my devices so that if I miss messages or facetime calls on one device, they get forwarded to my other devices. how do I UNDO this so this no longer happens?

    Apple recently merged all my devices so that if I miss messages or facetime calls on one device, they get forwarded to my other devices. how do I UNDO this so this no longer happens?

    If you don't want them to be unified, don't use the same Apple ID for FaceTime and iMessage on our devices.  Go to Settings>Messsages>Send & Receive, tap the ID, sign out, then sign back in with a separate ID.  Do the same thing in Settings>FaceTime.

  • I just sinced up to an old iphone and it deleted all of my current iphones info and loaded all of the older stuff on it. How do I undo this???

    I just sinced up to an old iphone and it deleted all of my current iphones info and loaded all of the older stuff on it. How do I undo this???

    Hi Khuram1981 - thank you thank you thank you!  All sorted!  dont suppose you know how to fix another problem I have??? for weeks now, since updating to ios5 I think, for some reason every time I have tried to log onto app store it says CANNOT CONNECT TO ITUNES STORE.  It's nothing to do with my computer, and I've been to the Geniius bar but they couldnt help and nothing I seem to do lets me update my Apps and even worse, I cant even buy any more.  Any suggestions?
    Again thank you SO much for helping with other problem = a real relief.
    Chatterwind xx

  • When i allowed itune to be my default, it chanced all the icons on m y computer to itunes symbol, how do I undo this?

    When i allowed itunes to be my default, it chanced all the icons on my computer to the itunes symbol, how do I undo this?

    When he plugs it into his Mac again, he should be asked if he wishes to sync with that Mac.

  • I accidently pressed autofill on itunes several times while by iphone 4s was plugged in and it duplicated many songs and turned them grey. how can i undo this?

    i accidently pressed autofill on itunes several times while my iphone 4s was plugged in and it duplicated many songs and turned them grey. how can i undo this?

    Connect your ipod upto thecomputer
    View > Show Sidebar then you will see your device on the left hand side.
    Select Device by clicking on the name
    Select Music from the options on the right
    untick Sync Music
    Click Apply bottom right.
    All the music should now be taken off your ipod
    When Finished
    re tick Sync Music Select what Albums, Artists, Genres and playlists you want
    Click Apply and you should be back where you started

  • Accidentally I deleted the automatic connection of iPhone and I chused instead explorer. How can I undo this. I have Windows8. Thanks in advance.

    Accidentally I deleted the automatic connection of iPhone and I choosed instead explorer. How can I undo this. I have Windows8.
    Thanks in advance.

    Hi there gali2012!
    I believe I have an article that will help you troubleshoot this issue:
    iOS: Disabling digital camera notification in Windows
    http://support.apple.com/kb/TS1500
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • ITunes organized my library under one artiest.  My library on my PC is correctly listed.  How do I undo this action?

    iTunes organized my library under one artiest.  Now all my music is gone (actually not listed as seperate albums and artiests).  My library on my PC is correctly listed.  How do I undo this action?

    in iTunes, access your purchase history via your account in the iTunes store,   find the file in question, and click on the report a problem button. report the problem. more info in this support article. 
    clicking here  should take you directly to your iTunes store log-in window.

  • How do I write this SQL command in Oracle

    Hi all
    I wriote this SQ L statement in Ms SQL Server. How do I write this sql command in Oracle?
    ALTER VIEW dbo.ConsumptionAS SELECT TOP 100 PERCENT ID,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200710' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Oct2007,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200711' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Nov2007,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200712' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Dec2007,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200801' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Jan2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200802' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Feb2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200803' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Mar2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200804' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Apr2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200805' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS May2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200806' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Jun2008 ,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200807' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Jul2008 ,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200808' AND NbrDaysUsed != 0 THEN (QtyUsed/ NbrDaysUsed) * 748.05 ELSE 0 END)) AS Aug2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200809' AND NbrDaysUsed != 0 THEN (QtyUsed NbrDaysUsed) * 748.05 ELSE 0 END)) AS Sep2008
    FROM dbo.MasterConsumption WHERE YEAR_MONTH >= '200710' AND YEAR_MONTH <= '200809' GROUP BY ID ORDER BY ID
    I am very interested in this part:
    SUM(CASE WHEN YEAR_MONTH = '200710' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Oct2007
    thanks
    Edited by: user631364 on Oct 27, 2008 8:25 AM
    Edited by: user631364 on Oct 27, 2008 8:26 AM
    Edited by: user631364 on Oct 27, 2008 8:27 AM

    Thank you!!
    Now let me aslk the second part of my question.
    This sql command:
    ALTER VIEW dbo.ConsumptionAS SELECT TOP 100 PERCENT ID,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200710' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Oct2007,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200711' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Nov2007,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200712' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Dec2007,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200801' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Jan2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200802' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Feb2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200803' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Mar2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200804' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Apr2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200805' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS May2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200806' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Jun2008 ,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200807' AND NbrDaysUsed != 0 THEN (QtyUsed/ Days_Usage) * 748.05 ELSE 0 END)) AS Jul2008 ,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200808' AND NbrDaysUsed != 0 THEN (QtyUsed/ NbrDaysUsed) * 748.05 ELSE 0 END)) AS Aug2008,
    CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = '200809' AND NbrDaysUsed != 0 THEN (QtyUsed NbrDaysUsed) * 748.05 ELSE 0 END)) AS Sep2008
    FROM dbo.MasterConsumption WHERE YEAR_MONTH >= '200710' AND YEAR_MONTH <= '200809' GROUP BY ID ORDER BY ID
    was created with this query in SQL Server and then I saved it in a store procedure, that I scheduled to run montlhy
    SET ANSI_NULLS ON
    DECLARE @SQLString NVARCHAR(4000)
    /* Build the SQL string once.*/
    SET @SQLString = 'ALTER VIEW dbo.Consumption AS SELECT TOP 100 PERCENT ID, CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = ' +
    "'" + dbo.CONLastMonth_fn(getdate(), month(getdate()) - 12) +
    "'" +
    ' AND NbrDaysUsed != 0 THEN (QtyUsed/ NbrDaysUsed) * 748.05 ELSE 0 END)) AS ' +
    dbo.CONMonthInEnglish(getdate(), month(getdate()) - 12) +
    … (GOES FROM current month -12 to current month -1)
    , CONVERT(decimal(10, 2), SUM(CASE WHEN YEAR_MONTH = ' +
    "'" + dbo.CONLastMonth_fn(getdate(), month(getdate()) - 1) +"'" +
    ' AND NbrDaysUsed != 0 THEN (QtyUsed/ NbrDaysUsed) * 748.05 ELSE 0 END)) AS ' +
    dbo.CONMonthInEnglish(getdate(), month(getdate()) - 1) +
    ' FROM dbo.MasterConsumption WHERE YEAR_MONTH >= ' +
    "'" + dbo.CONLastMonth_fn (getdate(), month(getdate())-12 ) +"'" +
    ' AND YEAR_MONTH <= ' +
    "'" + dbo.CONLastMonth_fn (getdate(), month(getdate())-1 ) +"'" +
    ' GROUP BY ID ORDER BY ID '
    EXEC sp_executesql @SQLString
    Is that something that can be done in Oracle in the same way?
    Do you use another approach?
    please advice
    Edited by: user631364 on Oct 27, 2008 10:19 AM
    Edited by: user631364 on Oct 27, 2008 10:21 AM
    Edited by: user631364 on Oct 27, 2008 10:21 AM
    Edited by: user631364 on Oct 27, 2008 10:22 AM
    Edited by: user631364 on Oct 27, 2008 10:23 AM
    Edited by: user631364 on Oct 27, 2008 10:23 AM
    Edited by: user631364 on Oct 27, 2008 10:24 AM

  • HT1495 I have accidentally synced my friends iPad to mine. How can I undo this?

    I have accidentally synced my iPad with a friends. How can I undo this?

    If you do not have backup, you can download past purchase.
    Download past purchase
    http://support.apple.com/kb/HT2519

  • TS4147 I accidently synced my contacts to my fiance's phone, how can I undo this?

    I accidently synced my contacts into my fiance's phone.  The contacts are still on my phone but are now also on his along with his contacts.  How do i undo this with out them deleting from my phone?

    Welcome to the Apple Community.
    Delete the account from your device (settings > iCloud), opt to keep contacts when asked.
    You will both need to delete unwanted contacts on your own devices manually after performing the step above.

  • I have a web site that I subscribe to and when I pulled it up Firefox asked me if I wanted to allow it or not. Accidently I pressed never allow for this site. Opps . . How do I undo this? I tried restarting and am now stuck as I can not access my website

    I have a web site that I subscribe to and when I pulled it up Firefox asked me if I wanted to allow it or not. Accidently I pressed never allow for this site. Opps . . How do I undo this? I tried restarting and am now stuck as I can not access my website

    Do you mean saving a password?
    If you clicked "Never" then you have created an exception that you need to remove.
    Remove site(s) from the Exceptions:
    * Tools > Options > Security: Passwords: Exceptions
    * https://support.mozilla.com/kb/Remembering+passwords

  • I accidentally copied the contents of my iPhoto to my desktop (6,000  photos). How do I undo this action?

    I accidentally copied the contents of my iPhoto to my desktop (6,000+ photos). How do I undo this action?

    Open a finder window, go to 'Macintosh HD/Users/<user folder>/Desktop'.  You can delete all the items from there.  If you had other stuff on your desktop you need to keep, then you could either sort the files by type, or copy the contents of the folder to another location, delete the desktop folder contents, then move back into it what you want to save.

Maybe you are looking for

  • Print out of report

    hi experts ,,,,   1)...i am taking the print out of report.   i given the horizantal and vertical lines...... i did not want them in output(lines).... how can i do this, any option is available. 2) how to delete the leading zeroes...   i jave number

  • Problem with imports

    I'm using the following imports in my code: import org.python.util.PythonInterpreter; import org.python.core.*;I have my class path set to the directory containing the jar file in which these classes are stored and for some reason the java compiler i

  • SMB filesharing over WAN

    Hi, I can remote connect and fileshare with my Mac mini through WAN with AFP and VNC. However, since some USB harddisks on the Mac mini is using FAT, I'm filesharing via SMB. This works perfectly on the LAN, but not on WAN (It's the same problem with

  • Date picker in Smart Collection dialogue box

    Unless I am missing something, there is no date picker in the Smart Collection dialogue box. This is annoying, and the opposite would be very useful.

  • When iPhone is Locked I do not get a ringtone when getting an incoming call

    I am a Newbie here so please forgive me if this is a stupid question. I have tried to search, but cannot find a solution, or at least 1 I can understand. Alright got my first iPhone Friday. I have my phone set to Autolock at 5 min. With this configur