a question -in some case, I saw command line like this . ./test.shI'm curious why use . before ./test.shwhat condition we have to use . before a command?
what condition we need to use . in command line?
command line
Running . ./test.sh is similar to running source ./test.sh. It's not running the file test.sh as an executable. Instead it's running it's contents line by line into your current shell. So it could for example also modify your current environment.