1 first, view the path
Command: $ path
2. How to set path
Command: Echo "Export Path = xxxxxx: $ path" >> ~ /. Bash_profile
Explanation: Print "Export Path = xxxxxx: $ path" ~ /. Bash_profile.
3. UNIX knowledge supplement :~ /. Bash_profile Introduction
Mac and Linux terminals generally use bash for parsing. After bash finishes reading the/etc/profile of the overall environment variable and calls other configuration files, it then reads the User-Defined personal configuration file. Bash reads three types of files:
~ /. Bash_profile ~ /. Bash_login ~ /. Profile
In fact, bash is a read-only file, and the read order is in the above Order. That is to say, reading bash_profile will not be followed by reading it. If bash_profile does not exist, the following will be available.
Let's take a look at what is in bash_profile:
Command: CAT ~ /. Bash_profile
The figure shows the content.
The root permission is required to view some folders.