Unix MCQ of Computer Science SET-5 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 with vi editor scroll half page backward?

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

(i) [Control-d]

Q2. Which of the following options will be used to display number of blocks used by a file?

(i) -c
(ii) #NAME?
(iii) #NAME?
(iv) #NAME?

(iv) #NAME?

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

Q4. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?

(i) rm *
(ii) rm -r *
(iii) rm all
(iv) rm .

(ii) rm -r *

Q5. Which of the following commands is used to get directory one level up?

(i) cd
(ii) cd ..
(iii) cd/
(iv) chdir

(ii) cd ..

Q6. Which of the following commands is used to update access and modification times of a file?

(i) grep
(ii) wc
(iii) touch
(iv) cat

(iii) touch

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

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

(iii) ps

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

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

(ii) $$

Q9. Which of the following commands is used to identify the type of file by context?

(i) ls
(ii) cat
(iii) file
(iv) more

(iii) file

Q10. Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?

(i) -l
(ii) -d
(iii) -r
(iv) -b

(i) -l

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

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

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

(iv) ;

Q13. Which command is used to count just the number of characters in a file?

(i) wc – 1
(ii) wc -c
(iii) wc -w
(iv) wc -r

(ii) wc -c

Q14. Which of following commands is used for an automatic reminder service?

(i) write
(ii) mesg
(iii) calendar
(iv) mail

(iii) calendar

Q15. The % key allows you

(i) to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.
(ii) to move the cursor to the upperleft corner of the screen
(iii) to move the cursor backward to the beginning of a word
(iv) to move the cursor to the first column in the current line

(i) to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.

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 of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?

(i) ls -F -x
(ii) ls -l
(iii) ls ~ x
(iv) Ip

(i) ls -F -x

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

Q19. Which symbol will be used with grep command to match the pattern pat at the end of a line?

(i) ^pat
(ii) $pat
(iii) pat$
(iv) pat^

(iii) pat$

Q20. The command that can be used to restrict incoming messages to a user is

(i) mesg
(ii) grep
(iii) halt
(iv) sleep

(i) mesg

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