| |
| 1: | You create a shell program and save it into a file with name " more ". Your current directory name is included in the PATH variable at the end. When you run this program by typing " more ", nothing happens and the cursor just stops at the next line. What may be the problem?
|
| 2: | What is true about variables used in shell programs?
|
| 3: | You use the echo $? command. The result is 2 . What do you conclude from this?
|
| 4: | You used shift 3 in your shell program. What will be its effect?
|
| 5: | What does the echo "\a" command do?
|
| 6: | What is wrong with the command [ "ABC" -eq "ABC" ]?
|
| 7: | A shell script with the name myscript does not have the execution bit set. How can you execute it?
|
| 8: | How can you list all command line arguments?
|
| 9: | The true return value of the test command is:
|
| 10: | You have a shell script as shown here. What will be the result when it is executed? #!/usr/bin/sh ABC=aac case $ABC in a) echo "First" ;; [aa]c) echo "Second" ;; a*) echo "Third" ;; *) echo "Last" ;; esac
|
| |
| |
| Top |