1、在mac os系统中(包括iOS系统)每一个应用软件都有一个对应的bundle_indentifier
"open -a /Applications/TextEdit.app '/Volumes/Macintosh HD/foo.txt'"
opens the document in the application specified (in this case, TextEdit).
"open -b com.apple.TextEdit '/Volumes/Macintosh HD/foo.txt'" opens the
document in the application specified (in this case, TextEdit).
终端命令open的两个选项,一个使用app的应用路径打开文件,一个采用bundle_indentifier打开文件. bundle_identifier是唯一的。
2、终端训中某个文件的方法
find /Users/fanxiushan/ -name "Practis*" -print
/Users/fanxiushan//Frank/Practise
find: /Users/fanxiushan//Library/Saved Application State/com.adobe.flashplayer.installmanager.savedState: Permission denied
3、$ grep -n fan aa.log
1:fan is genius