打開~/.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目錄存在!