RobotKernal-UESTC/Docs/Linux基础/Linux环境变量.md

5 lines
605 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## source ~/.bashrc的作用
`source ~/.bashrc` 命令的作用是重新加载当前用户的 Bash 配置文件(通常是 `~/.bashrc` 文件以应用对该文件的任何修改。Bash 配置文件包含了在每次启动新的终端会话时执行的命令,用于自定义环境变量、别名、函数和其他终端行为。
具体来说,`~/.bashrc` 是 Bash shell 在交互模式下启动时会读取的一个配置文件。当您对 `~/.bashrc` 文件进行了修改后,为了使更改生效,您可以重新加载配置文件,而这就是使用 `source` 命令的目的。