HO~ MAC的技巧真多,just做一下笔记终端(Terminal)下显示Mac隐藏文件的命令:
[php]defaults write com.apple.finder AppleShowAllFiles -bool true<br />KillAll Finder[/php]隐藏Mac隐藏文件的命令:
[php]defaults write com.apple.finder AppleShowAllFiles -bool false<br />KillAll Finder[/php]修改文件夹是否隐藏的命令:
[php]chflags hidden<br />chflags nohidden[/php]文件夹拖入到终端里面
回车
————————华丽的分割线—————————-
修改文件的“修改时间”
[php]touch -mt YYYYMMDDhhmm[/php]其中 YYYYMMDDhhmm 要替换成期望的时间,比如 201112310101。
打开 Finder,进入需修改的文件所在的文件夹,把改文件拖到 Terminal 窗口,这时文件的路径自动加到了刚才输入的内容的后面,例如:[php]touch -mt 201212310101 /Volumes/MacHD/Pictures/somefile.jpg[/php]修改文件的“创建时间”
[php]touch -t 201212310101 /Volumes/MacHD/Pictures/somefile.jpg[/php]原文连接:http://www.tanktan.com/blog/mac-os-terminal/