/usr/local/arm目录添加到环境变量PATH
时间: 2023-08-05 10:07:25 浏览: 81
要将/usr/local/arm目录添加到环境变量PATH中,可以通过以下方式实现。首先,在终端中打开/etc/bashrc文件。如果该文件存在,执行其中的命令。然后,将export PATH=$PATH:/usr/local/arm/3.4.1/bin这一行添加到文件的末尾。这样,每次登录时,环境变量PATH都会自动修改为所需的值。另外,可以使用declare -x PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/opt/au1200_rm/build_tools/bin"命令将PATH变量设置为指定的值。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* *2* [Linux下PATH环境变量设置](https://blog.csdn.net/weixin_39868248/article/details/116599397)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [如何添加路径到PATH环境变量](https://blog.csdn.net/weixin_29016865/article/details/116689476)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文