Unix Operating System Set 2
On This Page
This set of Unix Operating System Multiple Choice Questions & Answers (MCQs) focuses on Unix Operating System Set 2
Q1 | The command cal j 1997 would give the output as
- the calendar of jan, june and july 1997
- only calendar of jan 1997
- an error
- none of the above
Q2 | The output of command banner “Unix shell programming” would be
- a banner showing ‘unix’,’shell’ and ‘programming’ words displayed in separate lines
- a banner showing ‘unix shell’ in one single line
- nothing
- a banner showing ‘unix shell programming’ in one line.
Q3 | To see the last access time of various files in a file system the command is
- is-iu
- is-i
- is-acc
- is-mt
Q4 | To ascertain what are the contents of the file in your the system the best way would be
- do a cat command on each file and find its contents
- use the command cat*
- use the command file*
- none of the above
Q5 | Which of these is not a command of Unix related with DOS
- dosdir a:proj
- doscopy trial a:/
- doscp/home/proj/prg a:/
- dosls
Q6 | Which of following commands do not belong to multiple file editing commands
- :n!
- :q!
- :rnew!
- all the above
Q7 | The difference between the commands ps –e and ps –a is
- ps –e gives details of every process running in memory whereas ps –a gives output for all the process that you have launched
- ps –e gives details of every process running in memory whereas ps –a gives details of all user processes
- no difference , both give same output
- none of the above
Q8 | The father of all processes is
- root
- sh
- sched
- init
Q9 | The process id numbers of the processes vhand,bdflush,sched and init are
- 1,2,3 and 4
- 2,3,0 and 1
- 3,4,1 and 2
- 0,1,2 and 3
Q10 | Which of the following is not true regarding the command $ nohup cat *.let | nohup sort >f1 &
- the process would die if the user logs out before the command’s execution is over
- if the user logs out the output of sort would be dtored in a file nohup.out
- it is optional to give nohup before sort
- this background process is also known as a deamon process
Q11 | Which of the following is not true regards the kill command
- super user can kill deamon processes
- for sure kill the signal no is 9
- there is no surety that the shell process will get killed by the command kill
- using kill command you can kill other user’s processes too
Q12 | Which of the following is not true
- the at command permits you to receive messages only by mail
- a person’s login name appears in the file at.allow if he is not allowed to use the at command
- both are false
- both are true
Q13 | 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
- message –on
- msg –o
- mesg –y
- message–y
Q14 | If the user has read a news item he cannot read it again because of creation of the file
- _news_time
- news.time
- .news.time
- .news_time
Q15 | To read the stale news the option available is
- news –a
- delete the file /usr/news
- delete the file _news.time
- delete the file .news_time
Q16 | The message of the day is stored in a file called
- /etc/profile
- /etc/motv
- .profile
- autoexec.bat
Q17 | The incoming mail of user with the login name aa12 is stored in the file
- /usr/spool/mail/aa12
- /usr/aa12/mbox
- /spool/mail/aa12
- /usr/aa12/.mbox
Q18 | .mailrc is the file
- which stores the incoming mail
- which is used to type the mail to be sent
- which is invoked when the mail command is executed
- which permits you to customize the vi environment
Q19 | The escape sequence \033[4m is used to
- underlying characters
- mark them as bold
- display them in reverse video
- none of the above
Q20 | Which of the following assignments is illegal
- a=’ls’
- b=’ls –l’
- c=’1972’
- d=’who | grepaal’
Q21 | Which of the following assignment is illegal
- a=’cat file’
- a=100 b=50
- age=25
- all the above
Q22 | A null variable a can be created using
- a=
- a=’’
- a=””
- all the above
Q23 | The shell metacharacter $# represents
- total number of arguments supplied to the shell script
- total number of files in the current directory
- total number of users who have logged in
- total number of processes running in the background
Q24 | When we are executing a shell script the shell acts as
- an interpreter
- a compiler
- an operating system
- none of the above