ubuntu环境变量如何恢复

1521
2021/2/5 9:49:40
栏目: 智能运维
开发者测试专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

ubuntu环境变量如何恢复

恢复ubuntu环境变量的示例:

在终端输入ls命令后,显示如下结果:

root@wei:/etc# ls

Command 'ls' is available in '/bin/ls'

The command could not be located because '/bin' is not included in the PATH environment variable.

ls: command not found

解决方法:

直接在终端输入以下命令即可。

export PATH=/usr/bin:/bin

辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读: ubuntu安装openssl不成功怎么解决