eval 명령어는 문자열을 명령어로 평가하고 실행합니다.
일반적으로 다른 명령어나 스크립트의 출력을 실행 가능한 코드로 처리할 때 사용됩니다.

# 일반적인 변수 할당
cmd="echo Hello, World!"
# cmd 변수의 값을 명령어로 실행하려면
eval $cmd
source 명령어는 지정된 파일을 현재 쉘 세션에서 실행합니다. 이를 통해 설정 파일이나 스크립트의 내용을 현재 쉘 환경에 적용할 수 있습니다.
source 명령어는 쉘 스크립트나 설정 파일을 실행할 때 유용합니다.
# myscript.sh
export MY_VARIABLE="Hello, Linux!"
# 실행되는 셸 세션
$ source myscript.sh
$ echo $MY_VARIABLE
Hello, Linux!
# myfunctions.sh
my_function() {
echo "This is a function."
}
# 실행되는 셸 세션
$ source myfunctions.sh
$ my_function
This is a function.
참조 사이트 : https://www.geeksforgeeks.org/eval-command-in-linux-with-examples/https://gr-st-dev.tistory.com/267