Home > Topic List > How to set linux environment variables

How to set linux environment variables

Steps to set Linux environment variables: 1. Use the command line tool (Terminal) to open the terminal; 2. Enter the command `vim ~/.bashrc/ in the terminal; 3. Open the user's Bash environment configuration file in the open vim editor , navigate to the end of the file, and then add the required environment variable information; 4. Modify the saved file, enter `:wq` in the vim editor to save and exit; 5. Run `source ~/.bashrc` in the current terminal window command to make the added environment variables take effect immediately.

Related courses More >
ElementaryOne week allows you to easily master Linux

16311 times of learning

Collection
ElementaryEnter C language from scratch

62664 times of learning

Collection
Related Tutorials More >