What should I do if the finder is stuck? Or do I need to restart the finder after executing some commands? The following two methods can be used.
How to operate on the dock icon
Press and hold the option key, right-click and press the finder icon, and select "re-enable" in the menu"
How to operate on a terminal
Open the terminal (Application-utilities), enter the following command, and press ENTER
Killall Finder
After you run the restart command, the finder exits and restarts, and the entire desktop is updated accordingly. Sometimes you can solve the problem by restarting the finder. You do not have to restart the system.
Like other applications in Mac OS X, the finder is just a running process. Therefore, you can exit the finder and close it completely like exiting other applications. After the finder is disabled, no icons are displayed on the desktop, and files cannot be browsed through the finder window.
From: http://www.guomii.com/posts/18175