In the Finder for Mac OS X, you can use the Option key to minimize or close all windows. For example, now that the Finder has opened three windows, we can point at one of the windows of the yellow button, and at the same time while pressing Option key, you can minimize all three windows at the same time, you will see three windows are also received in the Dock, if you are in the point of the yellow button in addition to press Option key, but also hold down the Shift key, you can see all the windows at a slow speed to receive the Dock.
In a similar way, you can press the Option key, and then click the Red button in one of the three open windows to close all windows at once. In addition to using the mouse button, you can close all windows with the combination of Command + Option + W, like Classic's Mac OS. As for Mac OS X You can not only use COMMAND + M to minimize the currently used window, but also minimize all windows if you use the combination of command + Option + M.