Fri. Mar 14th, 2025
Notifications
Clear all

What is the meaning of "dot" (.) in a shell script?


Chris DuBois
Posts: 1763
Registered
Topic starter
(@chris)
Illustrious Member
Joined: 7 months ago

The . (dot) command is used to source a script in the current shell session. What is the difference between running a script normally (./script.sh) and sourcing it (. script.sh)?

Share: