哪里是位于Mac上默认的终端$ PATH? [英] Where is the default terminal $PATH located on Mac?

查看:206
本文介绍了哪里是位于Mac上默认的终端$ PATH?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找在整个系统中,但我不能找到它。当我做回声$ PATH我得到我添加的内容,加上默认路径。我没有.profile文件,和我有一个.bashrc中,但默认路径是不是在那里。我找它只是知道它位于何处,因为所有的教程,它在.profile文件解释......但如果​​你没有什么人?地点在哪里呢?任何人有任何想法?

I have been looking throughout the system but I cannot find it. When I do echo $PATH I get the stuff I added, plus the default path. I do not have a .profile, and I do have a .bashrc, but the default path is not in there. I am looking for it just to know where it is located because all the tutorials explain that its in .profile... but what if you don't have one? Where is it located then? Anybody have any ideas?

推荐答案

如果您 sudo的人path_helper ,它谈论它是如何把路径合计了一下。你可能看在的/ etc /路径 /etc/paths.d 。我做到了,找到了我要找的东西。

If you do sudo man path_helper, it talks a bit about how it puts the path together. You might look in /etc/paths and /etc/paths.d. I did, and found what I was looking for.

这篇关于哪里是位于Mac上默认的终端$ PATH?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆