题目内容

Which of the following commands is used to manually pass a text file, script.sh, to the shell interpreter?

A. bash script.sh
B. script.sh bash
C. ./script.sh
D. .sh ./script

查看答案
更多问题

Which command is used to make some_script.sh executable?

A. chmod a some_script.sh
B. chmod +x some_script.sh
C. ./some_script.sh some_command
D. cat ./somescript.sh

Which of the following Linux device nodes provide random numbers? Select all answers that apply.

A. /dev/rnd
B. /dev/urandom
C. /dev/urnd
D. /dev/random

Which command is used to create a temporary directory?

A. mktemp –d
B. mktemp –dir
C. mkstemp -d
D. mktempdir

If we want to debug the 15th line of a script, we must provide the _______ command on 14th line and the _______ command on 16th line of the script.

A. ./script 2> >, set +x
B. set -x, set +x
C. ./script 2>>, set +x
D. set +x, ./script 2>>

答案查题题库