linux:如何执行配置文件

Yve*_*ves 3 linux user-profile

我的同事给了我一个包含许多配置的文件,例如

alias  ll="ls -l"
alias  lr="ls -lrt"
alias  gv="vim -g"
Run Code Online (Sandbox Code Playgroud)

如何使用(执行)此配置文件?

Nis*_*yal 5

您可以使用source命令加载配置文件:

source <profile-filename>
Run Code Online (Sandbox Code Playgroud)

例如:

source ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)