UNIX MCQ SET 5


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

 

  1. :n!
  2. :q!
  3. :rnew!
  4. All the above

 

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

 

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

 

3) The father of all processes is

 

  1. Root
  2. Sh
  3. Sched
  4. Init

 

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

 

  1. 1,2,3 and 4
  2. 2,3,0 and 1
  3. 3,4,1 and 2
  4. 0,1,2 and 3

 

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

 

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

 

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

 

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

 

7) Which of the following is not true

 

  1. The at command permits you to receive messages only by mail
  2. A person’s login name appears in the file at.allow if he is not allowed to use the at command
  3. Both are false
  4. 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

  1. 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

 

  1. B

 

  1. C

 

  1. B

 

  1. A, D

 

  1. A, D

 

  1. C

 

  1. C

 

  1. C

 

  1. D

Leave a comment