1. Environment variable File
/etc/profile
2. Output environment variable value
Echo $PATH
3,linux:-bash: * *: Command not found, solve
To prevent the above exception, initialize the environment variable first:
1. Modify Profile: (All users)
#vi/etc/profile
Join: Export path= $PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Save exit.
2. Modify the. bashrc file: (Individual users)
[[Email protected] bin]# CD
[email protected] ~]# cat. Bash_profile
#vi. Bash_profile
Join: Export path= $PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Save exit.
650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M00/A4/CF/wKioL1myBJKjdPMEAAB3USFBSS0742.jpg "title=" 1.jpg "alt=" Wkiol1mybjkjdpmeaab3usfbss0742.jpg "/>
Note: After the modification, to refresh: The following modified/etc/profile, refresh command: Source/etc/profile
This article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1963610
Linux Learning: Environment variables