mac 终端命令行操作

1,root 切换

sudo su

2,安装brew

curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local

 注意:

要使用root身份在 /usr 下建立 local 目录

使用brew可以安装其他命令行,如 brew install wget / brew install nodejs / ...

3,批量删除某个后缀名的所有文件

rm -rf `find . -name '*.modd'`
原文地址:https://www.cnblogs.com/enone/p/3458875.html