Mac OS用终端打开 TextEdit 的授命

Mac OS用终端打开 TextEdit 的指令

打开终端,输入:sudo open -a TextEdit.app /编辑文件路径

 

如编辑hosts文件:

 

sudo open -a TextEdit.app /private/etc/hosts
posted @ 2014-03-28 10:38  EdwardSong  阅读(606)  评论(0编辑  收藏  举报