| |
| 1: | What is the difference between the test and let commands? |
| 2: | Explain the unary and binary negative signs. |
| 3: | Consider the following program. What may be the possible problem? VAR=1 (($VAR=$VAR+1)) while [ $VAR -lt 10 ] do echo $VAR done |
| 4: | Write a program that provides three options. The first option asks the user to enter a number. It then adds the number to 100 and displays the result. The second option subtracts the number from 100 and displays the result. The third option terminates the program. |
| 5: | Write a program that accepts a list of user names on the command line and then displays a message if any of these users is logged in. |
| 6: | Previously all users were using the Bourne shell. The administration has changed the policy and now everyone is asked to use the POSIX shell. Write a program that changes the shell of all users from /usr/bin/old/sh to /usr/bin/sh . |
| |
| |
| Top |