Linux Administration
medium

Pregunta de Linux Administration #019e3987

Enunciado de la Pregunta
Linux Administration
#source
#dot command
#subshell
#bash builtin
Medio

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

A

source /usr/local/bin/runme.sh

Correcto
B

. /usr/local/bin/runme.sh

Correcto
C

/bin/bash /usr/local/bin/runme.sh

D

/usr/local/bin/runme.sh

E

run /usr/local/bin/runme.sh

Explicación Oficial / Explicaciones de la Comunidad

The source command and its alias, the dot (.), execute a script within the current shell environment. Other methods like calling the script by path or using bash script.sh create a new child process (subshell).