Choose the correct statements.
A. | Any process has an associated owner ID and group ID |
B. | Effective ID defines who you are for the duration of a process |
C. | Real ID defines who you are for the duration of a process |
D. | Both (a) & (b) |
Option: D Explanation : Click on Discuss to view users comments. |
No shell script can take input from
A. | stdin |
B. | the output of the previously executed command redirected to it |
C. | the shell holds the script |
D. | none of the above |
Option: D Explanation : There is a facility that allows shell scripts to take input from its own contents. e.g.. grep$1< Click on Discuss to view users comments. |
The command cc x.c && a.out
A. | is equivalent to cc x.c ; a . out |
B. | means execute a . out only when x . c compiles successfully |
C. | means execute a . out only if cc x .c retuns a value 0 to the system |
D. | Both (b) & (c) |
Option: D Explanation : cc x . c ; a . out - means execute the command cc x . c and then a . out. If x . c fails to compile successfully, then if there is any executable file a . out, it will he executed. So, execution of a . out, has nothing to do with the outcome of cc x . c. In the case of cc x.c && a . out , a . out will be executed only if x . c compiles successfully (i.e. re-turns 0 as the exit status). Click on Discuss to view users comments. |