Thomas Thomas - 1 year ago 44
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 Source

You can load the profile using source command:

source <profile-filename>

eg:

source ~/.bash_profile