Affordable iStore Links






Apple Technician Notes [+]
  • CPU Stress Test In Terminal [+]
    • 1) Open Activity Monitor (Press {Command}+{Spacebar} and type "Activity Monitor" then press {Enter})
      2) Make sure the CPU tab is selected near the top of the window.
      3) With Activity Monitor selected, press {Command}+{2} to bring up CPU History.
      4) The number of bars you see refers to the number of processing threads there are. 5) The following command taxes one processing thread to its maximum capacity:

    • ..--> yes > /dev/null

    • 6) Duplicate this command, separated by an ampersand (&), one time for each processing thread there is. Examples below.

    • Core Solo (with 1 thread):
      ..--> yes > /dev/null

      Cord Duo -or- Core 2 Duo (with 2 threads):
      ..--> yes > /dev/null & yes > /dev/null

      i3 Processors (with 4 threads):
      ..--> yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null

      i5 Processors (with 4 threads):
      ..--> yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null

      i7 Processors (with 4 threads):
      ..--> yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null

      i7 Processors (with 8 threads):
      ..--> yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null

    • To cancel or stop the stress test do the following:
      1) Press {Control}+{C}
      2) Type the following command:
      .. killall yes
    Password Reset Using Terminal [+]
    • Article For Reference:
    • Password Reset Using Terminal


    • Boot into Single User mode by holding {Command}+{S} on bootup.
      Enter the following commands:

      ..--> mount -uw /

      ..--> rm /var/db/.AppleSetupDone

      ..--> shutdown -h now

      Instead of resetting the user's password, this method will actually trick the Mac into thinking the first-time setup has never completed and will allow you to go through the first time setup and create another administrator user. Then, you can login to the new admin user and reset the password on their original admin user. Finally, log into their original admin user and delete the new one you just made. Viola, password is reset.
    Remove All Profiles / Factory Fresh Setup [+]
    • Article for Reference:
    • Remove All Profiles / Factory Fresh Setup

    • First, boot into Single User mode. Shutdown the computer, then power on and hold CMD + S. Then input the following commands:

    • mount -uw /

    • rm -R /Users/*username*/

    • rm /var/db/dslocal/nodes/Default/users/*username*.plist

    • rm /var/db/.AppleSetupDone

    • shutdown -h now

    Terminal - Sync Files / Merge Folders & Rename Terminal Windows [+]
    • The following snippets are quoted from their respective sites listed below. The authors of these posts may be found there.

      Rename Terminal Window's Title:
      "This article tells you how.

      Essentially, you use character sequences echoed to the screen to inform the terminal of what title it should display.

      title='My first title'

      echo -n -e "\033]0;$title\007"

      In the above example, whatever the variable title is set to while become the terminal's title. Of course, you could just have the title in the string to echo such as:

      echo -n -e "\033]0;My first title\007"

      But the first way makes it a slightly bit easier to use and/or extend later."


      Sync Files / Merge Folders
      rsync -av /source-path/source-dir /destination-path

      "rsync will copy only new and changed files to the new location.

      It is important to understand how a trailing slash on the source argument functions. If there is a trailing slash then the contents of /source-path/source-dir will be copied to destination-path. If there is no trailing slash then source-dir itself will be copied to the destination and its contents will be another level down in the destination hierarchy.

      So if you want to replicate one path to another include the trailing slash as follows:

      rsync -av /sourcepath/sourcedir/ /duplicatpath/sourcedir/


      Sources:
      Rename Terminal Window Title
      Sync Files / Merge Folders
    Show / Hide Hidden Files [+]


    • Show Hidden Files
      Open Terminal and enter the following command:
      defaults write com.apple.finder AppleShowAllFiles True; killall Finder;

      Hide Hidden Files
      Open Terminal and enter the following command:
      defaults write com.apple.finder AppleShowAllFiles False; killall Finder;

    Open User Library[+]


    • Method 1 - Terminal
      Open Terminal and enter the following command:
      open ~/Library/

      Method 2 - Finder
      1. Open Finder
      2. In the taskbar at the very top of the screen select "Go -> Go To Folder"
      3. Type the following into the dialog box and press the return key
      ~/Library/