linux: how to execute profile file

Yves picture Yves · Jun 9, 2016 · Viewed 12.6k times · Source

My colleague gave me a file containing lots of configs such as

alias  ll="ls -l"
alias  lr="ls -lrt"
alias  gv="vim -g"

How can I use(execute) this profile?

Answer

Nishu Tayal picture Nishu Tayal · Jun 9, 2016

You can load the profile using source command:

source <profile-filename>

eg:

source ~/.bash_profile