Unix MCQ of Computer Science SET-9 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 command addresses all users who are currently hooked on?

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

(iii) wall

Q2. Which of are following internal commands is used in mail to forward mail to user in user-list?

(i) r user-list
(ii) m user-list
(iii) d user-list
(iv) e user-list

(ii) m user-list

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. The cat command is used to

(i) capture a file
(ii) display a file
(iii) print a file
(iv) copy a file

(ii) display a file

Q5. Which option will be used with disk free command to include the total amount of disk space in the file system?

(i) -t
(ii) -tt
(iii) -4
(iv) -i

(i) -t

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

Q8. The UNIX file system stores a date in physical blocks of

(i) 1024 bytes
(ii) 2048 bytes
(iii) 512 bytes
(iv) 256 bytes

(iv) 256 bytes

Q9. Which command is used to print a file?

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

(iv) lp

Q10. Which of command is used to copy a file?

(i) copy
(ii) cp
(iii) cpio
(iv) tar

(ii) cp

Q11. Which command is used to display the device name of the terminal you are using?

(i) who
(ii) ls
(iii) tty
(iv) stty

(iii) tty

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

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

(i) cat

Q13. Which command is used to assign only read permission to all three categories of the file ‘note’?

(i) chmod go+r note
(ii) chmod a-rw
(iii) chmod ugo=r note
(iv) chmod u+r,g+r,o-x note

(iii) chmod ugo=r note

Q14. The special shell variable $* is used

(i) to exit status of ast command executed.
(ii) to process number of the current shell
(iii) to list the positional parameters
(iv) to name the command being executed

(iii) to list the positional parameters

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 commands is used to have a two-way communication with any person who is currently logged in?

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

(iii) write

Q17. Which command is used to display the end of the file?

(i) head – r
(ii) tail
(iii) eof
(iv) bof

(ii) tail

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

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

(i) -a

Q19. Which of the following is not a filter?

(i) cat
(ii) grep
(iii) wc
(iv) None of the above

(iv) None of the above

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.

Leave a Comment