Linux common commands-47: source

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]


 # 很多时候,我们安装过一些基础软件,会设置一些环境变量,像PATH,通常是编辑~/.bashrc,想让变量即刻生效,就可以使用source source ~/.bashrc

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.