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

Unix MCQ of Computer Science SET-13 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 keys is used to delete the character beneath the cursor?

(i) x
(ii) X
(iii) dd
(iv) D

(i) x

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

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

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

Q5. Which set option is used with vi editor to display line numbers on screen?

(i) nm
(ii) nu
(iii) ic
(iv) li

(ii) nu

Q6. Which of the following commands is used to display the directory attributes rather than its contents?

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

(i) ls -l -d

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

(i) -c
(ii) -i
(iii) -d
(iv) -s

(iv) -s

Q8. Which of the following commands can be used to get information about all users who are currently logged into the system?

(i) which
(ii) who
(iii) who am i
(iv) 1 /u

(ii) who

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

Q10. Which command sends the word count of the file infile to the newfile.

(i) wc infile >newfile
(ii) wc newfile
(iii) wc infile – newfile
(iv) wc infile | newfile

(i) wc infile >newfile

Q11. Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?

(i) chmod u+x emp[1-3]
(ii) chmod 777 emp*
(iii) chmod u+r ??? emp
(iv) chmod 222 emp?

(i) chmod u+x emp[1-3]

Q12. Which command is used to display the top of the file?

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

(ii) head

Q13. Which command is used to set the three permissions for all the three categories of users of a file?

(i) chgrp
(ii) chown
(iii) chmod
(iv) chusr

(iii) chmod

Q14. The ls -l command tells

(i) who the owner of the file is
(ii) the name of the group owner of the file
(iii) how large the file is and when the file was last modified.
(iv) All of the above

(iv) All of the above

Q15. The seventh field of /etc/password is

(i) password
(ii) login
(iii) shell
(iv) home

(iii) shell

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

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

Q18. Which of the following commands is used to view your file 24 lines at a time?

(i) pg
(ii) cat
(iii) lp
(iv) /p

(i) pg

Q19. 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 *

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

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