Unix MCQ of Computer Science SET-8 with Answers free PDF Download

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 files will displayed by this command cat ch

(i) patch
(ii) catch
(iii) .ch
(iv) All of the above

(iv) All of the above

Q2. Which command is used to remove the read permission of the file ‘note’ from both the group and others?

(i) chmod go+r note
(ii) chmod go+rw note
(iii) chmod go-x note
(iv) chmod go-r note

(iv) chmod go-r note

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

Q4. Which of the following keys is used to overstrike a whole line?

(i) R
(ii) v
(iii) C
(iv) u

(i) R

Q5. The cp command uses:

(i) standard input file
(ii) standard output file
(iii) both input and output file
(iv) neither standard input nor standard output file

(iv) neither standard input nor standard output file

Q6. Which of the following commands is used to summarize the disk usage?

(i) chkdsk
(ii) fdisk
(iii) du
(iv) disk

(iii) du

Q7. The commonly used UNIX commands like date, ls, cat, etc. are stored in

(i) /dev directory
(ii) /bin and /usr/bin directories
(iii) /tmp directory
(iv) /unix directory

(ii) /bin and /usr/bin directories

Q8. Which shell’s wild-cards is used to match a single character?

(i) *
(ii) ?
(iii) [ijk]
(iv) [!ijk]

(ii) ?

Q9. Which of the following commands is used to change the working directory?

(i) cd
(ii) changedir
(iii) chdir
(iv) cdir

(i) cd

Q10. Which commands is used to assign executable permission to all of the files named “letter”?

(i) chmod ugo+r letter
(ii) chmod ugo+rw letter
(iii) chmod u+x letter
(iv) chmod ugo+x letter

(iv) chmod ugo+x letter

Q11. 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?

(i) who | tee user.lst
(ii) who > user.lst
(iii) who >> user.lst
(iv) who < user.lste

(i) who | tee user.lst

Q12. Which command is used to terminate a process?

(i) shutdown
(ii) haltsys
(iii) cancel
(iv) kill

(iv) kill

(i) lk
(ii) ln
(iii) cp
(iv) tar

(ii) ln

Q14. Which of the following commands can be used to get information about yourself?

(i) who am i
(ii) i /4
(iii) pwd
(iv) which

(i) who am i

Q15. While working with mail command, which command is used to save mail in a separate file?

(i) s
(ii) r
(iii) w
(iv) d

(i) s

Q16. The second set of the three permissions (r-) indicates that

(i) Group has read permission only
(ii) Other has read permission only
(iii) Owner has read permission only
(iv) Group has write permission only

(i) Group has read permission only

Q17. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?

(i) copy programs/wb misc/wb
(ii) cp programs/wb misc
(iii) tar programs/wb misc/wb
(iv) copy a:programs/wb b:misc/wb

(ii) cp programs/wb misc

Q18. Which of the following commands is used to assign executable permission to the owner of the file named “note”?

(i) chmod g+x note
(ii) chmod u+w note
(iii) chmod u+x note
(iv) chmod ugo+x note

(iii) chmod u+x note

Q19. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.

(i) count p
(ii) wc
(iii) wcount
(iv) countw

(ii) wc

Q20. If a file has read and write permissions for the owner, then the octal representation of the permissions will be

(i) 1
(ii) 6
(iii) 5
(iv) 3

(ii) 6

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.

Leave a Comment