macOS自带的时间机器(TimeMachine)还是很好用的,只是如果误删的文件是隐藏文件,操作起来稍微复杂了一些。具体参考如下:
-
Open the Terminal.
-
Run the following command:
1$ defaults write com.apple.finder AppleShowAllFiles TRUE;killall Finder -
Go to the location of the missing hidden folder and invoke Time Machine to restore it.
-
Run the following command to hide files:
1$ defaults write com.apple.finder AppleShowAllFiles FALSE;killall Finder