Unix MCQ of Computer Science SET-12 with Answers free PDF Download

Unix MCQ of Computer Science SET-12 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 display a file contents in octal form?

(i) cd
(ii) od
(iii) of
(iv) oct

(ii) od

Q2. The octal representation 652 indicates

(i) Execute permission for the owner
(ii) Write permission for others
(iii) Read and write permission of groups
(iv) None of the above

(ii) Write permission for others

Q3. Which of the following commands is used to copy directory structures in and out

(i) cp
(ii) cpio
(iii) cp – p
(iv) copy

(ii) cpio

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

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

(iii) calendar

Q5. The chmod ugo+rw note command can be represented in octal notation as

(i) chmod 555 note
(ii) chmod 666 note
(iii) chmod 444 note
(iv) chmod 333 note

(ii) chmod 666 note

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

Q7. Which of the following is not a communication command?

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

(iv) grep

Q8. Which of the following command is used to go to home directory?

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

(iii) cd

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

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

(iii) /pat

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

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

(i) mesg

Q11. Which command is used to list out all the hidden files along with the other files?

(i) ls -l
(ii) ls -x
(iii) ls -F
(iv) ls -a

(iv) ls -a

Q12. The agency that sits between the user and the UNIX system is called the

(i) logic
(ii) profile
(iii) shell
(iv) erxc

(iii) shell

Q13. Which option is used with the chmod command recursively to all files and sub-directories in a directory?

(i) -l
(ii) -i
(iii) -x
(iv) -R

(iv) -R

Q14. The octal representation 652 indicates

(i) Execute permission for the owner
(ii) Write permission for others
(iii) Read and write permission of groups
(iv) All of the above

(ii) Write permission for others

Q15. Which command is used to display a file contents in octal form?

(i) cd
(ii) od
(iii) of
(iv) oct

(ii) od

Q16. Which command is used to move all files to the bin sub-directory of the parent directory?

(i) mv . /bin/
(ii) mv * /bin/*
(iii) mv * ../bin
(iv) mv * ../bin .

(iii) mv * ../bin

Q17. Which command will be used with vi editor to replace single character under cursor with any number of characters?

(i) s
(ii) S
(iii) a
(iv) i

(i) s

Q18. Which command is used to concatenate all files beginning with the string ’emp’ and followed by a non-numeric characters?

(i) cat emp[!0-9]
(ii) more [emp][!0-9]
(iii) cat emp[x-z]
(iv) cat emp[a-z]

(i) cat emp[!0-9]

Q19. Which command is used to locate all the .profile files in the system?

(i) ls profile
(ii) find /-name profile -print
(iii) cd /.profile
(iv) l -u .profile

(ii) find /-name profile -print

Q20. 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) #NAME*
(iii) #NAME?
(iv) -1

(iii) #NAME?

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