On This Page
This set of Operating System Architecture Multiple Choice Questions & Answers (MCQs) focuses on Operating System Architecture Set 8
Q1 | If a file has read and write permissions for the owner, then the octal representation of the permissions will be
- 1
- 6
- 5
- 3
Q2 | Which command is used to copy a file wb with the same name from the programs directory to the misc directory?
- copy programs/wb misc/wb
- cp programs/wb misc
- tar programs/wb misc/wb
- copy a:programs/wb b:misc/wb
Q3 | The seventh field of /etc/password is………….
- password
- login
- shell
- home
Q4 | Which command is used to display the end of the file?
- head - r
- tail
- eof
- bof
Q5 | The ls -l command tells
- who the owner of the file is
- the name of the group owner of the file
- how large the file is and when the file was last modified.
- all of the above
Q6 | Which option will be used with disk free command to include the total amount of disk space in the file system?
- -t
- -tt
- -4
- -i
Q7 | Which command is used to set the three permissions for all the three categories of users of a file?
- chgrp
- chown
- chmod
- chusr
Q8 | Which of the following commands can be used to get information about yourself?
- who am i
- i /4
- pwd
- which
Q9 | Which of the following commands can be used to get information about all users who are currently logged into the system?
- which
- who
- who am i
- 1 /u
Q10 | Which of the following keys is used to overstrike a whole line?
- r
- v
- c
- u
Q11 | Which command is used to locate all the.profile files in the system?
- ls profile
- find /-name profile print
- cd /.profile
- l -u .profile
Q12 | The File that contains a set of instructions which are performed when a user logs in, is
- .exrc
- .profile
- .autoexec
- autoexec.bat
Q13 | The octal representation 652 indicates
- execute permission for the owner
- write permission for others
- read and write permission of groups
- all of the above
Q14 | Which of the following command is used to count just the number of lines contained in a file?
- wc -l
- wc -c
- wc -w
- wc -r
Q15 | Which command is used to move all files to the bin sub-directory of the parent directory?
- mv *.* /bin/
- mv * /bin/*
- mv * ../bin
- mv * ../bin *.*
Q16 | Which command is used to save the standard output in a file, as well as display it on the terminal?
- more
- cat
- grep
- tee
Q17 | Which of the following commands is used to copy directory structures in and out
- cp
- cpio
- cp - p
- copy
Q18 | Which command allows you to view your file 24 lines at a time?
- more
- pg
- cat
- lp
Q19 | Which of the following special shell variables is used to process number of the current shell?
- $!
- $$
- $*
Q20 | Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?
- -l
- -d
- -r
- -b
Q21 | Which command is used with vi editor scroll half page backward?
- [control-d]
- [control - u]
- [control-c]
- [control -p]
Q22 | Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?
- tch
- fch
- rch
- ech
Q23 | Which of the following keys is used to delete the character beneath the cursor?
- x
- x
- dd
- d
Q24 | Which command is used to assign only read permission to all three categories of the file 'note'?
- chmod go+r note
- chmod a-rw
- chmod ugo=r note
- chmod u+r,g+r,o x note
Q25 | Which command will be used with vi editor to append text at end of line?
- a
- a
- i
- i