The source
command is usually used to execute the initialization file that has just been modified to take effect immediately, such as environment variables.
Syntax format: source [file]
Example
# 很多时候,我们安装过一些基础软件,会设置一些环境变量,像PATH,通常是编辑~/.bashrc,想让变量即刻生效,就可以使用source source ~/.bashrc
This article is reprinted from https://xugaoxiang.com/2022/06/14/linux-cmds-47-source/
This site is for inclusion only, and the copyright belongs to the original author.