How to Disable Dashboard in OS X

Here’s yet another tip in my ‘how to disable Series!’
how to disable the dashboard in osx
Now Dashboard can be useful, but I understand that there is the need to disable this perhaps within a managed working environment.
Luckily, the good old command line has an answer to this!
So, all you have to do to completely disable the Dashboard in OS X, is open the Terminal Application from /Applications/Utilities and enter the following command:

defaults write mcx-disabled -boolean true && killall Dock

Bingo! The older keyboard’s F4 Dashboard key, the Dashboard Application or the 4-finger swipe on a Multi-touch or Magic Trackpad no longer function and Dashboard cannot be opened!
If you do want to revert back to the default setting and enable Dashboard again, just enter the following command:

defaults write mcx-disabled -boolean false && killall Dock

While the author has taken care to provide our readers with accurate information, please use your discretion before acting upon information based on the blog post. Amsys will not compensate you in any way whatsoever if you ever happen to suffer a loss/inconvenience/damage because of/while making use of information in this blog.
This feature has been tested using OS X v10.8.3 which was the latest Mac OS release at the time of writing and also using the latest Internal and external Apple keyboards.