We have provide here is the list of Unix MCQs for Computer Engineering preparation competitive exams. Each question has four options followed by the right answer.
MCQ Questions for Unix of Computer Science with Answers
Q1. Which of the following commands is used to display the filenames in multiple columns?
(i) ls
(ii) ls -1
(iii) ls -x
(iv) lc
(iii) ls -x
Q2. Which command is used with vi editor to search a pattern in the forward direction?
(i) /
(ii) ?
(iii) //
(iv) ??
(i) /
Q3. Which command is used to locate all the .profile files in the system?
(i) ls profile
(ii) find /-name profile -print
(iii) cd /.profile
(iv) l -u .profile
(ii) find /-name profile -print
Q4. Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?
(i) -m.n
(ii) +m.n
(iii) + n.m+1
(iv) +(m+l).n
(ii) +m.n
Q5. The agency that sits between the user and the UNIX system is called the
(i) logic
(ii) profile
(iii) shell
(iv) erxc
(iii) shell
Q6. Major expressions used with find command to select file is it has been accessed in more than 375 days, is
(i) #NAME?
(ii) #NAME?
(iii) #NAME?
(iv) #NAME?
(i) #NAME?
Q7. The chmod ugo+rw note command can be represented in octal notation as
i) chmod 555 note
(ii) chmod 666 note
(iii) chmod 444 note
(iv) chmod 333 note
(ii) chmod 666 note
Q8. Which of are following internal commands is used in mail to forward mail to user in user-list?
(i) r user-list
(ii) m user-list
(iii) d user-list
(iv) e user-list
(ii) m user-list
Q9. Which of the following commands can be used to get information about all users who are currently logged into the system?
(i) which
(ii) who
(iii) who am i
(iv) 1 /u
(ii) who
Q10. The command used to compare the files is known as
(i) comp
(ii) cmp
(iii) do
(iv) ccp
(ii) cmp
Q11. Which of the following commands is used to display the directory attributes rather than its contents?
(i) ls -l -d
(ii) ls -l
(iii) ls -x
(iv) ls -F
(i) ls -l -d
Q12. Which command is used to link the files?
(i) lk
(ii) ln
(iii) cp
(iv) tar
(ii) ln
Q13. Which command is used to list out all the hidden files along with the other files?
(i) ls -l
(ii) ls -x
(iii) ls -F
(iv) ls -a
(iv) ls -a
Q14. Which of the following signs is used to back up over typing errors in vi?
(i) @
(ii) #
(iii) $
(iv) !
(ii) #
Q15. Which command is used to set the three permissions for all the three categories of users of a file?
(i) chgrp
(ii) chown
(iii) chmod
(iv) chusr
(iii) chmod
Q16. Which of the following commands is used to display your working directory?
(i) dir
(ii) prompt $p$g
(iii) pwd
(iv) path
(iii) pwd
Q17. Which command is used to display and create files?
(i) cat
(ii) vi
(iii) ed
(iv) lyrix
(i) cat
Q18. Which command is used to terminate all processes in your own system except the login shell?
(i) kill 1
(ii) kill 0
(iii) cancel all
(iv) cancel 1
(ii) kill 0
Q19. Which command will be used with vi editor to replace single character under cursor with any number of characters?
(i) s
(ii) S
(iii) a
(iv) i
(i) s
Q20. Which command is used with file named ‘note’ to remove the executable permission from the user and assign read permission to the group and others?
(i) chmod u-x, go+r note
(ii) chmod go+r, u+x note
(iii) chmod g-x, uo+r note
(iv) chmod go+x, u-x note
(i) chmod u-x, go+r note
We hope the given Computer Engineering MCQ Questions for Unix with Answers PDF Free Download will help you. If you have any queries regarding Unix MCQs Multiple Choice Questions with Answers, drop a comment below and we will get back to you soons.