题目内容

What commands are used to write the output of the free command to /tmp/free.out? Select all answers that apply.

A. free >> /tmp/free.out
B. free
C. free > /tmp/free.out
D. free

查看答案
更多问题

Which of the following parameters contains the name of the script being executed?

A. $n
B. var
C. $0
D. $*

Which of the following supplies the correct syntax to declare the function named showpath?

A. showpath [echo $PATH]
B. showpath {echo $PATH}
C. showpath () {echo $PATH}
D. showpath (echo PATH)

If you want to substitute the result of an expression (say echo /tmp) to be the argument for cd, how will you represent them? Select all answers that apply.

A. cd `echo /tmp`
B. cd (echo /tmp)
C. cd echo /tmp
D. cd $(echo /tmp)

What are the different types of commands that can be used in a bash shell script?

A. Compiled applications
Built-in bash commands
C. Other scripts
D. All of the above

答案查题题库