Top 550+ Solved Operating System Architecture MCQ Questions Answer
Q. Which command is used to assign only read permission to all three categories of the file 'note'?
a. chmod go+r note
b. chmod a-rw
c. chmod ugo=r note
d. chmod u+r,g+r,o x note
Q. The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has
a. executable permission only
b. write and executable permissions
c. both read and executable permissions.
d. both read and write permissions
Q. Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?
a. who | tee user.lst
b. who > user.lst
c. who >> user.lst
d. who < user.lste
Q. Which of the following shell's wildcards are used to match any number of characters including none?
a. [ijk]
b. [!ijk]
c. ?
d. *
Q. Which symbol will be used with grep command to match the pattern pat at the end of a line?
a. ^pat
b. $pat
c. pat$
d. pat^
Q. Which command is used to display all the lines with the string 'sales' from the file empl.lst?
a. cut sales empl.lst
b. /sales > empl.lst
c. grep sales empl.lst
d. cat | /sales > empl.lst
Q. Which command is used with vi editor to save file and remain in the editing mode?
a. :q
b. :w
c. q!
d. :x
Q. Which of the following commands is used to have a two-way communication with any person who is currently logged in?
a. mail
b. mesg
c. write
d. grep
Q. Which command is used to terminate all processes in your own system except the login shell?
a. kill 1
b. kill 0
c. cancel all
d. cancel 1