Unix MCQ Questions with Answers #5

1) Which of following commands do not belong to multiple file editing commands

a. :n!
b. :q!
c. :rnew!
d. All the above

2) The difference between the commands ps –e and ps –a is

a. Ps –e gives details of every process running in memory whereas ps –a gives output for all the process that you have launched
b. Ps –e gives details of every process running in memory whereas ps –a gives details of all user processes
c. No difference , both give same output
d. None of the above

3) The father of all processes is

a. Root
b. Sh
c. Sched
d. Init

4) The process id numbers of the processes vhand,bdflush,sched and init are

a. 1,2,3 and 4
b. 2,3,0 and 1
c. 3,4,1 and 2
d. 0,1,2 and 3

5) Which of the following is not true regarding the command $ nohup cat *.let | nohup sort >f1 &

a. The process would die if the user logs out before the command’s execution is over
b. If the user logs out the output of sort would be dtored in a file nohup.out
c. It is optional to give nohup before sort
d. This background process is also known as a deamon process

6) Which of the following is not true regards the kill command

a. Super user can kill deamon processes
b. For sure kill the signal no is 9
c. There is no surety that the shell process will get killed by the command kill <PID of shell process>
d. Using Kill command you can kill other user’s processes too

7) Which of the following is not true

a. The at command permits you to receive messages only by mail
b. A person’s login name appears in the file at.allow if he is not allowed to use the at command
c. Both are false
d. Both are true

8) Which statement are true if the file which contains the following line is submitted to the crontab command
10 2 3 * 0 echo “ There is no substitute for hard work”

a.The message is echoed on the 3rd of every month at 2.10 a.m
b.The message is echoed on the 3rd of every month at 2.10 p.m
c.The message is echoed on the 3rd of every month at 2.10 a.m if it happens to be a Sunday
d. None of the above

9) For a person to receive messages he should have his terminal set to a parameter which will allow him receive messages.The command to set this parameter is

a.message –on
b.msg –o
c.mesg –y
d.message–y

10) The command that unix offers to a user to find out whether he can send messages to a particular terminal are

a.finger and who
b.finger –mesg and who –T
c.finger –I and who –t
d.finger –I and who –T

---

Correct Answers

  1. D

  2. B

  3. C

  4. B

  5. A, D

  6. A, D

  7. C

  8. C

  9. C

10. D

Unix Tips


 

See Also

Have a Unix Problem
Do you have a UNIX Question?

Unix Books :-
UNIX Programming, Certification, System Administration, Performance Tuning Reference Books

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.