Differences Between source xxx.sh and ./xxx.sh in Linux
Both source xxx.sh and ./xxx.sh are common methods for executing Shell scripts in Linux/Unix systems, and they have fundamental differences in execution environment, permission requirements, and their impact on the current Shell. The table below summarizes their core differences for easier understanding: Feature Comparison <span>source xxx.sh</span> <span>./xxx.sh</span> Execution Environment Current Shell Process New Sub Shell … Read more