Unix MCQ of Computer Science SET-10 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 command is used to change directory to the name beginning with a ‘p’?

(i) cd p
(ii) cd p?
(iii) cd p*
(iv) cd [p]

(iii) cd p*

Q2. Which of the following commands is used to remove files?

(i) erase
(ii) delete
(iii) rm
(iv) dm

(iii) rm

Q3. Which is the earliest and most widely used shell that came with the UNIX system?

(i) C shell
(ii) Korn shell
(iii) Bourne shell
(iv) Smith shell

(iii) Bourne shell

Q4. The field separator in cut command is specified with

(i) -a option
(ii) -d option
(iii) -r option
(iv) -x option

(ii) -d option

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

Q6. The [line number G] key allows you

(i) to move cursor left by one position
(ii) to move cursor right by one position
(iii) to move cursor down by one line
(iv) to move cursor to the beginning of the line specified by the number

(iv) to move cursor to the beginning of the line specified by the number

Q7. Which command is used to list all the files with extension .lst?

(i) ls -l .lst (ii) ls lst
(iii) ls .
(iv) ls *[lst]

(i) ls -l *.lst

Q8. Which command is used to display all the lines with the string ‘sales’ from the file empl.lst?

(i) cut sales empl.lst
(ii) /sales > empl.lst
(iii) grep sales empl.lst
(iv) cat | /sales > empl.lst

(iii) grep sales empl.lst

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

Q10. Which command is used to display the characteristics of a process?

(i) pid
(ii) du
(iii) ps
(iv) au

(iii) ps

Q11. Which command is used to sort the lines of data in a file in reverse order

(i) sort
(ii) sh
(iii) st
(iv) sort -r

(iv) sort -r

Q12. Which command is used with vi editor to save file and remain in the editing mode?

(i) :q
(ii) :w
(iii) q!
(iv) 😡

(ii) :w

Q13. Which command is used to terminate a process?

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

(iv) kill

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

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

Q16. Which of the following commands is used to obtain a list of all files by modification time?

(i) ls -1
(ii) ls -t
(iii) ls -i
(iv) ls -R

(ii) ls -t

Q17. The ls -l command tells

(i) Who the owner of the file is
(ii) The name of the group owner of the file
(iii) How large the file is and when the file was last modified
(iv) All of the above

(iv) All of the above

Q18. Which of the following commands is not the vi Input mode command?

(i) rch
(ii) R
(iii) S
(iv) j

(iv) j

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

Q20. Which command will be used with vi editor to append text at end of line?

(i) A
(ii) a
(iii) i
(iv) I

(i) A

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