LPI
117-010 · Question #3
The script, script.sh, consists of the following lines: #!/bin/bash echo $2 $1 Which output will appear if the command, ./script.sh test1 test2, is entered?
The correct answer is B. test2 test1. See the full explanation below for the reasoning.
Question
The script, script.sh, consists of the following lines:
#!/bin/bash echo $2 $1 Which output will appear if the command, ./script.sh test1 test2, is entered?
Options
- Atest1 test2
- Btest2 test1
- Cscript.sh test2
- Dscript.sh test1
- Etest1 script.sh
How the community answered
(33 responses)- A3% (1)
- B73% (24)
- C9% (3)
- D12% (4)
- E3% (1)
Community Discussion
No community discussion yet for this question.