How to undo terminal Command ?

Hey All ,
I recently added a command to increase my magic mouse tracking but i would like to undo it, command is below.
defaults write -g com.apple.scaling 5.0
thank you

First google hit agrees with Kappy. 1.0 is the default value. So to undo your damage, type:
defaults write -g com.apple.scaling 1.0
...into the console. If you had written a longer, more complex command into the console, occasionally it helps to use up-arrow to go back to what you just wrote, and then edit it. In your case however you probably had to restart finder or logout/logon to make the change stick, right?

Similar Messages

  • How to undo terminal commands

    ...sigh... being new to MAC I shouldn't have just assumed I could putz around and make changes like I used to with PC.
    So, I use Gradebook (I'm a teacher) and unfortunately, it's reliant on Java.
    So the other day I made the mistake of updating Java and it sent my world into a tailspin.  Gradebook suddenly stopped working.  It would just bounce in my dock but never open.
    Then I found out it was having issue with the new Java.  So I found instructions  to reverse the Java update  and go back to Java 6 here which required me to go into terminal and make changes:  http://support.apple.com/kb/HT5559?viewlocale=en_US
    I did that.  Now everyone claims that Gradebook fixed their issue with the new Java.  But I'm still having that bouncing then nothing problem.  So someone suggested I upgrade to Mavericks.  So I did... and when I re-tried Gradebook it told me I needed to download Java 6 for it to work, so I got excited thinking my problems were solved.  But nope... bouncing in the dock then nothing.
    Now I'm thinking those changes I made in Terminal are what the problem is.  So I googled how to remove those entries and I went into .bash and deleted them (kept a copy of what I was deleting though, just in case)  Didn't work.  So now I've read that I have to UNDO my changes and not delete them.  But I have no idea how to do that.
    This was my entire history in that .bash file:
    /Applications/Android\ File\ Transfer.app/Contents/MacOS/Android\ File\ Transfer ; exit;
    'lookupd -flushcache''lookupd -flushcache'
    'lookupd -flushcache'
    'lookupd -flushcache
    'lookupd -flushcache'
    /Applications/Gradebook.app/Contents/MacOS/JavaApplicationStub ; exit;
    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
    sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled
    sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI .plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws
    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
    sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled
    sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI .plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws
    sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo update_prebinding -root / -force
    sudo update_prebinding -root/-force
    exit
    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws
    man sudo
    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws
    The red are the ones I put in.  That blue one references Gradebook but I don't recall entering that.
    Help me please???   I'd really, really appreciate it! 

    There are instructions at the bottom of the page you linked to that tell you how to undo it.
    Editing the .bash_history file only removes commands from the recorded history, it doesn't undo them. Although doing that isn't going to cause any problems, it does reveal a tendency to fiddle with "arcane knowledge" without fully understanding it. That's very, very bad, as doing the wrong thing in the Terminal could easily cause irreversible damage to the system that can only be fixed by reinstalling. It could even lead to data loss.

  • How to run Terminal commands in Xcode?

    Anyone knows how to include Terminal commands ( like sudo) in Xcode?  for example in a line of my program I need to run this:
    sudo open/Library/Preferences/com.apple.sharing.firewall.plist
    I searched the library but found no class or routine for that.

    Well, I am not a professional programmer, but one of the things I continue to learn is how to wade through all of the Cocoa documentation (and it does get deep in spots).  Chances are though, no matter what you are trying to do, Apple or some third party has created a class to make it easier - you just have to find it.  My Xcode documentation bookmarks continue to grow, but you might start with some of Apple's documentation, such as
    Cocoa Fundamentals Guide
    Foundation Framework Reference
    Application Kit Framework Reference

  • How to save terminal command as application

    Does anybody know how to save this terminal command as an application? This is the command that I use to backup my computer, but it is annoying having to copy and paste it into terminal every time I want to use it. Here is the command:
    sudo rsync -auE --progress / /Volumes/Backup
    If I Paste this into terminal, it asks me for my password, then starts backing up. When I enter it into automator or applescript editor, there is an error. Thanks in advance!

    I tried saving a shell script command in an Applescript but when I run the script, it runs but then I get a spinning wheel, as if the script is in an endless loop. Can someone clarify what I need to do?
    My script:
    do shell script "/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder & disown"

  • Undo terminal command

    I recently followed these instructions to stop iTunes from automatically downloading tv shows every time I opened it:
    With iTunes open select iTunes > Preferences... and click the Store tab
    If checked, uncheck checkbox Always check for available downloads
    If checked, uncheck checkbox Download pre-orders when available
    Click the OK button, and close iTunes
    Open Applications > Utilities > Terminal.app
    Type cd ~/Music/iTunes/iTunes\ Media/Downloads then press <Enter>
    Type rm -rf * to delete the plist file along with all of the downloads of TV shows
    Re-open iTunes. There shouldn't be TV shows automatically downloading any longer when you open iTunes. Breath. Relax. Rejoice.
    The result was, on restarting the computer, that all my documents, iPhoto library, iTunes library, and Mail folders were gone. I realize now that I'm not expert enough be running Terminal commands. My question is: is there any way to undo this damage?

    If you don't have a backup of them, try using a data recovery product such as the ones listed here. Don't write anything else to the drive until the files are recovered or you choose not to recover them.
    (113837)

  • How to undo "terminal" misuse

    Is there a way to undo something which has been done using "terminal", or is there a way to see a history of which commands have been recently used?

    launch terminal and press the up arrow.

  • How to clear terminal command history?

    Is it possible to clear the previous commands in terminal (up arrow key cycles through every entered line)?

    Hi, blankets.
    You wrote: "Is it possible to clear the previous commands in terminal (up arrow key cycles through every entered line)?"Yes. At the terminal prompt, type
    history -c
    and press Return.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How to save terminal command and output history to pdf on exit?

    When I exit a terminal session (terminal.app), I would like to automatically save the commands and output from the session to a PDF (or text file) as a reference. 
    I can do this manually in Terminal by selecting Shell --> Print... --> PDF --> Save as PDF...
    Unfortunately, I'm too forgetful to remember to do this each time before I exit. 
    Is there an alias I could set or some other method to automatically save the contents of my session to a PDF when I exit?
    Thank you in advance,
    jjw

    Frank,
    Your response was helpful, but I realized after looking at my .bash_history file that only the commands entered are listed, not the output.  I would like my commands to be printed out, but also the result from the commands (in this simple example, the directory listing):
    myuserid[~/galaxy-dist/tools]$ cd ncbi_blast_plus
    -------------------------------------------------------------------------------- ----------------------------------------------------- 09:48:37
    myuserid[~/galaxy-dist/tools/ncbi_blast_plus]$ ls
    blastxml_to_tabular.py   hide_stderr.py           ncbi_blastp_wrapper.xml  ncbi_tblastn_wrapper.xml
    blastxml_to_tabular.xml  ncbi_blastn_wrapper.xml  ncbi_blastx_wrapper.xml  ncbi_tblastx_wrapper.xml
    -------------------------------------------------------------------------------- ----------------------------------------------------- 09:48:38
    myuserid[~/galaxy-dist/tools/ncbi_blast_plus]$
    I'm thinking that there is an automator script or an alias that I could use so that when I type, "exit", the commands and output for the session would be sent to a PDF and then the session would close.
    I know it seems like an odd thing to want, but sometimes I'll forget the sequence of commands that gave me the correct output (plus, my command prompt has a timestamp on it, too).
    Thanks, though, for the .bash_history information.
    jjw

  • Help, i made a terminal command and i don't know how to undo it.

    i found my long lost folder of terminal commands.. and i forgot what this one did, so i clicked it (i made the commands into a "unix executable file").. and all my files on my desktop are now hidden.. the only way to find them is to type in the file name into finder.
    the command i typed in was
    while (true) do
    chflags hidden ~/Desktop/*
    done
    and now everything on my desktop is gone, and i dont know how to undo it, I undid once about 3 months ago when i wrote it, but i forgot what i did. I tried counterering the command with others but it isn't doing anything. thank you
    edit: i know this command cant destroy my system because it wasn't a sudo, but still, i had all my class work on my laptop and now it's all invisible

    Hi, try this...
    while (true) do
    chflags nohidden ~/Desktop/*
    done

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

  • Undoing a terminal command

    I mistakenly did the wrong command in terminal it was:
    defaults write com.apple.dock persistent-apps -array-add-multiple
    everything that was in my dock is now gone except the applications that are running
    does anyone know how to undo this?

    I figured it out i did
    cd ~/Library/Preferences
    rm ~/Library/Preferences/com.apple.dock.plisteng262:Preferences michaelbreiner$ killall Dock

  • How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    - Transfer iTunes purchases to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    - Transfer any other music by using a third-party program like one of those discussed here:
    Copy music
    - Connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup. The restore will also update the iOS.
    Note that the backup that iTunes makes does not include synced media like apps and music
    Are you sure you have a 3G iPod? A 1G iPod can only go to iOS 3.1.3
    See:
    Identifying iPod models

  • How to reset the network IP address from terminal/command line in Mac OSX?

    Do anyone knows how to set the network IP address from terminal/command line in Mac OS X?

    how about a GUI, ever heard of a GUI? it's this really neat thing, where you don't have to worry about remembering long strings of text to do something. Mac OS X actually has a rather decent one (that was sarcasm by the way, Mac is the best) you could have it done in like 30 sec, if you use the network pane of system preferences.

  • How to make Apple Script do a terminal command

    Hey,
    I am wondering how can I make an AppleScript do the following command :
    "networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4"
    Please mention step by step since I'm new to AppleScript
    Best Regards,
    Nadav.

    To run a terminal command it is usually sufficient to use do shell script. So for your command it would be
    do shell script "networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4"
    note if the command requires administrator privileges you would need to do
    do shell script "command"  with administrator privileges
    will prompt for the password when the script is run.
    do shell script "command" user name "me" password "mypassword" with administrator privileges
    will store the password and username in the script. More convenient but much less secure.
    See do shell script in AppleScript

  • Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million :)

    Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million

    Try troubleshooting the Safari .plist file.
    Quit Safari.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Relaunch Safari. Try a bookmark.
    If that didn't help, check Safari / Preferences then select the Extensions tab. If you have any installed, turn that off, quit then relaunch Safari.
    If Extensions aren't the issue, reset Safari. From the menu bar click Safari / Reset Safari. Select the top 7 buttons, click Reset.

Maybe you are looking for

  • Question about pcmanfm and/or gtkrc

    http://i65.photobucket.com/albums/h227/ - cmanfm.png ^ Odd question really, but I'm wondering how I would make the two things circled in red look like the thing circled in blue. And is it a option I can change in my gnome theme (gtkrc) or is it only

  • How to solve the following JDBC-DB2 FORMAT problem?

    Here is the error info:   Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong

  • Msi k2n9 diamond raid problems/questions

    Hi, yesterday I bought 2 hard drives western digital 1 TB  Caviar Blue 32mb cache each and wanted to make a raid stripe array, so they work as one and are twice as fast. I had problems installing windows XP, so I tried windows 7. It detected the raid

  • Error while using Nested AM

    Hi, I am using jdev 11.1.1.6.2. I have 2 AMs in my project called as ComplianceAssocAM and MextUiAM. I have nested MextUiAM inside ComplianceAssocAM using: <AppModuleUsage     Name="MextUiAMAssoc1"     FullName="oracle.sysman.core.mext.uimodel.applic

  • Webdynpro application - save data and attachments

    Hello, I would like to know what is the best recommended practice / best apps methodology for the following scenario : A Custom web form with options to enter data, add attachments  and submit. On submission , the workflow gets triggered, followed by