问题描述
- 设置PATH时出错,~/bashrc
-
打开~/.bashrc,添加行:
export PATH=/home/rootliu/linuxc:$PATH使生效
source .bashrc
之后:
bash: export: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/rootliu/linuxc': not a valid identifier
bash: lesspipe: No such file or directory
bash: dircolors: No such file or directory
bash: ls: No such file or directory
rootliu@ubuntu:~$ ls
bash: ls: No such file or directory
解决方案
把$PATH放前面,确保你的linuxc目录存在!
解决方案二:
你linuxc目录下的程序是不是可以执行
时间: 2024-12-22 01:56:50