liux爽利的查看$PATH

当$PATH变成这么一坨的时候。。。

/usr/local/bin:/usr/local/sbib:/usr/local/opt/php56/sbin:/usr/local/opt/php56/bin:/usr/local/bin:/usr/local/sbib:/usr/local/Cellar/php55/5.5.30/sbin:/usr/local/Cellar/php55/5.5.30/bin:/usr/local/bin:/usr/local/sbib:/usr/local/Cellar/php55/5.5.30/sbin:/usr/local/Cellar/php55/5.5.30/bin:/usr/local/bin:/usr/local/sbib:/usr/local/Cellar/php55/5.5.30/sbin:/usr/local/Cellar/php55/5.5.30/bin:/usr/local/bin:/usr/local/sbib:/usr/local/opt/php56/sbin:/usr/local/opt/php56/bin:/usr/local/bin:/usr/local/sbib:/usr/local/Cellar/php55/5.5.30/sbin:/usr/local/Cellar/php55/5.5.30/bin:/usr/local/bin:/usr/local/sbib:/usr/local/Cellar/php55/5.5.30/sbin:/usr/local/Cellar/php55/5.5.30/bin:/usr/local/bin:/usr/local/sbib:/usr/local/Cellar/php55/5.5.30/sbin:/usr/local/Cellar/php55/5.5.30/bin:/usr/local/bin:/usr/local/sbib:/usr/local/opt/php56/sbin:/usr/local/opt/php56/bin:/usr/local/bin:/usr/local/sbib:/usr/local/Cellar/php55/5.5.30/sbin:/usr/local/Cellar/php55/5.5.30/bin:/usr/local/bin:/usr/local/sbib:/usr/local/Cellar/php55/5.5.30/sbin:/usr/local/Cellar/php55/5.5.30/bin:/usr/local/bin:/usr/local/sbib:/usr/local/Cellar/php55/5.5.30/sbin:/usr/local/Cellar/php55/5.5.30/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

You need this!

 echo $PATH |awk -F':' '{for(i=1;i<NF;i++) printf $i "\n"}'
标签: none
返回文章列表 文章二维码
本页链接的二维码
打赏二维码