Skip to main content
fix formatting, add quote formatting for quoted content, add link to source
Source Link
grg
  • 205.6k
  • 45
  • 364
  • 495

Creating a Terminal Script to Purge the Memoryhttp://computers.tutsplus.com/tutorials/how-to-give-your-mac-a-performance-boost--mac-46271

Start by opening Terminal.

Creating a Terminal Script to Purge the Memory

Enter the following line: 1 cd Desktop/ and press enter. This points the Terminal to your desktop rather than your user folder. You can point Terminal to any folder you want for this tutorial.

  1. Start by opening Terminal.

Enter: 1 touch Purge and press enter. This creates a new file called "Purge" on your desktop, you won't see it just yet though.

  1. Enter the following line:

Enter: 1 pico Purge and press enter. This opens up the Terminal editor for the purge file.

    cd Desktop/

Enter the following text in the editor:

and press enter. This points the Terminal to your desktop rather than your user folder. You can point Terminal to any folder you want for this tutorial.

#!/bin/sh purge

  1. Enter:

Press Control + O and then Enter to save the file to your desktop. Then press Control + X to exit the editor. Make sure to use the Control key, not the command key.

    touch Purge

Once you're back at the normal Terminal screen, enter:

and press enter. This creates a new file called "Purge" on your desktop, you won't see it just yet though.

chmod 755 Purge

  1. Enter:

and press enter. This makes the file we just created accessible to you. By default, OS X hides the files you create using touch.

    pico Purge

You now will have a file on your desktop called "Purge." You can open this file to automatically clean your computers memory. Once the Terminal shows a [Process complete] message you can close the application and continue on.

and press enter. This opens up the Terminal editor for the purge file.

  1. Enter the following text in the editor:
    #!/bin/sh
    
    purge
  1. Press Control + O and then Enter to save the file to your desktop. Then press Control + X to exit the editor. Make sure to use the Control key, not the command key.
  1. Once you're back at the normal Terminal screen, enter:
    chmod 755 Purge

and press enter. This makes the file we just created accessible to you. By default, OS X hides the files you create using touch.

  1. You now will have a file on your desktop called "Purge." You can open this file to automatically clean your computers memory. Once the Terminal shows a [Process complete] message you can close the application and continue on.

Creating a Terminal Script to Purge the Memory

Start by opening Terminal.

Enter the following line: 1 cd Desktop/ and press enter. This points the Terminal to your desktop rather than your user folder. You can point Terminal to any folder you want for this tutorial.

Enter: 1 touch Purge and press enter. This creates a new file called "Purge" on your desktop, you won't see it just yet though.

Enter: 1 pico Purge and press enter. This opens up the Terminal editor for the purge file.

Enter the following text in the editor:

#!/bin/sh purge

Press Control + O and then Enter to save the file to your desktop. Then press Control + X to exit the editor. Make sure to use the Control key, not the command key.

Once you're back at the normal Terminal screen, enter:

chmod 755 Purge

and press enter. This makes the file we just created accessible to you. By default, OS X hides the files you create using touch.

You now will have a file on your desktop called "Purge." You can open this file to automatically clean your computers memory. Once the Terminal shows a [Process complete] message you can close the application and continue on.

http://computers.tutsplus.com/tutorials/how-to-give-your-mac-a-performance-boost--mac-46271

Creating a Terminal Script to Purge the Memory

  1. Start by opening Terminal.
  1. Enter the following line:
    cd Desktop/

and press enter. This points the Terminal to your desktop rather than your user folder. You can point Terminal to any folder you want for this tutorial.

  1. Enter:
    touch Purge

and press enter. This creates a new file called "Purge" on your desktop, you won't see it just yet though.

  1. Enter:
    pico Purge

and press enter. This opens up the Terminal editor for the purge file.

  1. Enter the following text in the editor:
    #!/bin/sh
    
    purge
  1. Press Control + O and then Enter to save the file to your desktop. Then press Control + X to exit the editor. Make sure to use the Control key, not the command key.
  1. Once you're back at the normal Terminal screen, enter:
    chmod 755 Purge

and press enter. This makes the file we just created accessible to you. By default, OS X hides the files you create using touch.

  1. You now will have a file on your desktop called "Purge." You can open this file to automatically clean your computers memory. Once the Terminal shows a [Process complete] message you can close the application and continue on.
Source Link

Creating a Terminal Script to Purge the Memory

Start by opening Terminal.

Enter the following line: 1 cd Desktop/ and press enter. This points the Terminal to your desktop rather than your user folder. You can point Terminal to any folder you want for this tutorial.

Enter: 1 touch Purge and press enter. This creates a new file called "Purge" on your desktop, you won't see it just yet though.

Enter: 1 pico Purge and press enter. This opens up the Terminal editor for the purge file.

Enter the following text in the editor:

#!/bin/sh purge

Press Control + O and then Enter to save the file to your desktop. Then press Control + X to exit the editor. Make sure to use the Control key, not the command key.

Once you're back at the normal Terminal screen, enter:

chmod 755 Purge

and press enter. This makes the file we just created accessible to you. By default, OS X hides the files you create using touch.

You now will have a file on your desktop called "Purge." You can open this file to automatically clean your computers memory. Once the Terminal shows a [Process complete] message you can close the application and continue on.