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 commands is used to identify the type of file by context?
(i) ls
(ii) cat
(iii) file
(iv) more
(iii) file
Q2. The command chmod 761 note is equivalent to
(i) chmod 167 note
(ii) chmod u=rwx, g=rw, o=x note
(iii) chmo a =761 note
(iv) chmod 4=7, g=6,0 =1 note
(ii) chmod u=rwx, g=rw, o=x note
Q3. You can append to a file instead of overwriting by using the
(i) > symbols
(ii) >> symbols
(iii) < symbols
(iv) << symbols
(ii) >> symbols
Q4. Which of the following commands is used to rename a file?
(i) rename
(ii) remove
(iii) mv
(iv) ren
(iii) mv
Q5. 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
Q6. Which command is used to sort the lines of data in a file in alphabetical order?
(i) sort
(ii) sh
(iii) st
(iv) sort -r
(i) sort
Q7. 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.
Q8. 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
Q9. Which of the following commands is used to remove files?
(i) erase
(ii) delete
(iii) rm
(iv) dm
(iii) rm
Q10. Which of the following files contains information related to password aging?
(i) Shadow
(ii) password
(iii) profile
(iv) All the three
(ii) password
Q11. 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
Q12. The command chmod 761 note is equivalent to
(i) chmod 167 note
(ii) chmod u=rwx, g=rw, o=x note
(iii) chmo a =761 note
(iv) chmod 4=7, g=6,0 =1 note
(ii) chmod u=rwx, g=rw, o=x note
Q13. Which of the following directories contain all the Alias created by a user, including his login directory?
(i) /tmp
(ii) /etc
(iii) /usr
(iv) /dev
(iii) /usr
Q14. 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*
Q15. 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
Q16. Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?
(i) #NAME?
(ii) #NAME?
(iii) #NAME?
(iv) +(m+l).n
(ii) #NAME?
Q17. Which of the following commands is not the vi Input mode command?
(i) rch
(ii) R
(iii) S
(iv) j
(iv) j
Q18. In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.
(i) .exrc
(ii) .profile
(iii) lastlogin
(iv) .mbox
(ii) .profile
Q19. Which of the following command addresses all users who are currently hooked on?
(i) write
(ii) mail
(iii) wall
(iv) mesg
(iii) wall
Q20. Which command is used with vi editor to move the cursor to the left?
(i) i
(ii) j
(iii) k
(iv) h
(iv) h
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.