执行.sh文件
新手或许会遇到permission denied的问题在linux 可以加上sudo之后在输入密码就可以了。Mac也许会有相应的方法
我的方法如下:
进入你执行的命令目录,在进入目录过程中或许会遇到包含空格的文件名,可以用转义字符'\'加在空格前面即可。
进入命令目录下,比如installTemplatesXcode4.sh。进入该目录后:
执行chmod u+x installTemplatesXcode4.sh
(
open up the terminal and enter chmod u+x file
This gives the u (user) permission to (x) execute then the name of the file or directory your giving permission to execute. )
之后就可以执行./installTemplatesXcode4.sh不需要加sudo等命令即可