Unix MCQ of Computer Science SET-7 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 keys is used to overstrike a whole line?

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

(i) R

Q2. Which of the following commands is used to list contents of directories?

(i) ls
(ii) lp
(iii) dir
(iv) tar

(i) ls

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

Q4. 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*

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

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

Q7. Which symbol is used to separate more than one command in the same command line?

(i) $
(ii) #
(iii) :
(iv) ;

(iv) ;

Q8. Which of the following special shell variables is used to process number of the last background job?

(i) $!
(ii) $#
(iii) $0
(iv) $*

(i) $!

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

Q10. Which command is used to extract specific columns from the file?

(i) cat
(ii) cut
(iii) grep
(iv) paste

(ii) cut

Q11. Which command is used to display the device name of the terminal you are using?

(i) who
(ii) ls
(iii) tty
(iv) stty

(iii) tty

Q12. The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is

(i) tee
(ii) tr
(iii) sort
(iv) grep

(i) tee

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

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

ii) ?

Q14. Which command will be used with vi editor to replace text from cursor to right?

(i) r
(ii) R
(iii) s
(iv) S

(ii) R

Q15. Which command is used to copy all files having the string chap and any two characters after that to the progs directory?

(i) cp chap?? progs
(ii) cp chap* progs
(iii) cp chap[12] /progs/.
(iv) cp chap?? /progs/*

(i) cp chap?? progs

Q16. Which command is used to display the end of the file?

(i) head – r
(ii) tail
(iii) eof
(iv) bof

(ii) tail

Q17. If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use

(i) tty ^c
(ii) stty intr ^c
(iii) stty echoe
(iv) stty echo ^a

(ii) stty intr ^c

Q18. Major expressions used with find command to select file is it has been accessed in more than 375 days, is

(i) -atime +365
(ii) -mtime + 365
(iii) -atime -365
(iv) -mtime -365

(i) -atime +365

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

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

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