我无法弄清楚我的PC出了什么问题!我对Ubuntu非常陌生。
我需要将android工具添加到PATH变量中,因此我将以下行添加到.bashrc文件中:
PATH=${PATH}:/home/user/Program\ Files/android-sdks/platform-tools:/home/user/Program\ Files/android-sdks/tools
之后,我运行source .bashrc
,当我运行echo $PATH
android工具时,该$PATH
变量就会显示出来。
但是,当我注销android工具时,该$PATH
变量就消失了,我必须运行source .bashrc
再次将其加载到那里。有什么想法为什么会发生吗?
将此添加到您的〜/ .profile(或〜/ .bash_profile,以存在的任何一个为准):
source ~/.bashrc
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句