How to take effect immediately after modifying the profile

Method 1: Make the /etc/profile file take effect immediately after modification, you can use the following command: # . /etc/profile Note: . and /etc/profile have spaces 

Method 2: Make the /etc/profile file take effect immediately after modification, you can Use the following command: # source /etc/profile

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325942109&siteId=291194637