Unix MCQ of Computer Science SET-6 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 directories contain all the Alias created by a user, including his login directory?

(i) /tmp
(ii) /etc
(iii) /usr
(iv) /dev

(iii) /usr

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

Q3. Which of the following set options is used with vi editor to ignore case while searching for patterns?

(i) ic
(ii) ai
(iii) sm
(iv) ts

(i) ic

Q4. Which of the following keys is used to move the cursor to the end of the paragraph.

(i) }
(ii) {
(iii) |
(iv) $

(i) }

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

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

Q7. Which of the following command addresses all users who are currently hooked on?

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

(iii) wall

Q8. Which command is used to save the standard output in a file, as well as display it on the terminal?

(i) more
(ii) cat
(iii) grep
(iv) tee

(iv) tee

Q9. Which command is used to print a file?

(i) print
(ii) prn
(iii) pg
(iv) lp

(iv) lp

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

Q11. Which of the following commands is used to rename a file?

(i) rename
(ii) remove
(iii) mv
(iv) ren

(iii) mv

Q12. Which of the following command is used to count just the number of lines contained in a file?

(i) wc -l
(ii) wc -c
(iii) wc -w
(iv) wc -r

(i) wc -l

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

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

(i) $!

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

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

(iii) cd

Q15. Which commands is used to assign executable permission to all of the files named “letter”?

(i) chmod ugo+r letter
(ii) chmod ugo+rw letter
(iii) chmod u+x letter
(iv) chmod ugo+x letter

(iv) chmod ugo+x letter

Q16. Which of the following files will displayed by this command cat ch

(i) patch
(ii) catch
(iii) .ch
(iv) All of the above

(iv) All of the above

Q17. Which command is used to terminate all processes in your own system except the login shell?

(i) kill 1
(ii) kill 0
(iii) cancel all
(iv) cancel 1

(ii) kill 0

Q18. The File that contains a set of instructions which are performed when a user logs in, is

(i) .exrc
(ii) .profile
(iii) .autoexec
(iv) autoexec.bat

(ii) .profile

Q19. Which command will be used with vi editor to insert text to left of cursor?

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

(iv) i

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

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