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
Which character is used to represent the continuation of a command over several lines?
A. /
B. |
C. \
D. -
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