题目内容

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>>

Select the command that appends the error output to a temporary log file.

A. $ ./script 2>> /tmp/scriptlogfile
B. $ ./script 2> /tmp/scriptlogfile
C. $ ./script 2
D. $ ./script 2/>> /tmp/scriptlogfile

答案查题题库