Thomas Thomas - 5 months ago 8
Linux Question

linux: how to execute profile file

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

You can load the profile using source command:

source <profile-filename>

eg:

source ~/.bash_profile