Unix MCQ of Computer Science SET-11 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 shell’s wild-cards is used to match a single character?

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

(ii) ?

Q2. Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it

(i) -r
(ii) -x
(iii) -i
(iv) -1

(iii) -i

Q3. Which command is used to make all files and sub-directories in the directory (progs) executable by all users?

(i) chmod -R a+x progs
(ii) chmod -R 222 progs
(iii) chmod -1 a+x progs
(iv) chmod -x a+x progs

(i) chmod -R a+x progs

Q4. Which of the following shell’s wildcards are used to match any number of characters including none?

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

(iv) *

Q5. Which column contains all details of the permissions of a file when you issue the ls -l command?

(i) second
(ii) fourth
(iii) third
(iv) first

(iv) first

Q7. Which of the following keys is used to delete the character beneath the cursor?

(i) x
(ii) X
(iii) dd
(iv) D

(i) x

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

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

(i) cd

Q9. Which option will be used with ps command to show the entire command line of the process being run?

(i) -4
(ii) -f
(iii) -1
(iv) -2

(ii) -f

Q10. In vi editor, forward search is performed using the command.

(i) :pat
(ii) ?pat
(iii) /pat
(iv) None of the above

(iii) /pat

Q11. Which command is used to display and create files?

(i) cat
(ii) vi
(iii) ed
(iv) lyrix

(i) cat

Q12. Which command is used with vi editor scroll half page backward?

(i) [Control-d]
(ii) [Control – u]
(iii) [Control-c]
(iv) [Control -P]

(ii) [Control – u]

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

Q14. In vi editor, forward search is performed using the command

(i) :pat
(ii) ?pat
(iii) /pat
(iv) All of the above

(iii) /pat

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

Q16. Which command allows you to view your file 24 lines at a time?

(i) more
(ii) pg
(iii) cat
(iv) lp

(ii) pg

Q17. Which option will be used with touch command to change the access time?

(i) -a
(ii) -b
(iii) -t
(iv) -h

(i) -a

Q18. Which of the following special shell variables is used to process number of the current shell?

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

(ii) $$

Q19. The command to count the number of files in the current directory by using pipes, is

(i) ls | wc
(ii) ls -l | wc -l
(iii) ls | wc -w
(iv) ls | ws -c

(iii) ls | wc -w

Q20. Which command is used with vi editor to move cursor forward to first occurrence of character ‘ch’ in the current line?

(i) tch
(ii) fch
(iii) rch
(iv) ech

(ii) fch

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