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

Unix MCQ of Computer Science SET-2 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 operator will be used with chmod command to assign absolute permission?

(i) +
(ii) –
(iii) =
(iv) %

(iii) =

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

Q3. The second set of the three permissions (r-) indicates that

(i) group has read permission only
(ii) other has read permission only
(iii) owner has read permission only
(iv) group has write permission only

(i) group has read permission only

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

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

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

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

(ii) nu

Q7. The UNIX file system stores a data in physical blocks of

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

(iii) 512 bytes

Q8. Which command is used to create a directory?

(i) crdir
(ii) md
(iii) mkdir
(iv) cr

(iii) mkdir

Q9. Which command is used to make all files and sub-directories in the directory (progs) executable by all users?

(i) chmod -R a+x progs
(ii) chmod -R 222 progs
(iii) chmod -1 a+x progs
(iv) chmod -x a+x progs

(i) chmod -R a+x progs

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

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

(i) }

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

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

(ii) cp

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

Q13. The seventh field of /etc/password is

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

(iii) shell

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

Q15. The field separator in cut command is specified with

(i) -a option
(ii) -d option
(iii) -r option
(iv) -x option

(ii) -d option

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 copy a file wb with the same name from the programs directory to the misc directory?

(i) copy programs/wb misc/wb
(ii) cp programs/wb misc
(iii) tar programs/wb misc/wb
(iv) copy a:programs/wb b:misc/wb

(ii) cp programs/wb misc

Q18. Which command is used with vi editor to move the cursor to the left?

(i) i
(ii) j
(iii) k
(iv) h

(iv) h

Q19. Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?

(i) copy programs/wb misc/wbx
(ii) cp programs/wb misc/wbx
(iii) tar programs/wb misc/wbx
(iv) copy a:programs/wb b:misc/wbx

(ii) cp programs/wb misc/wbx

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

(i) -1
(ii) #NAME?
(iii) #NAME?
(iv) -R

(iv) -R

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