UNIX Module 2 MCQ QUESTION
UNIX Module 2 MCQ QUESTION
MODULE – 2
1. What is the primary purpose of the Unix file system?
a) Data storage
b) User authentication
c) Graphics rendering
d) Network communication
10. In Unix, which character represents the home directory of the current user?
A) /
B) .
C) ~
D) *
16. Which command is used to change the current user's password in Unix?
A) passwd
B) password
C) pwd
D) pswd
22. Which command is used to display the last lines of a file in Unix?
A) head
B) display
C) read
D) tail
24. In Unix, how do you give execute permission to all users on a file?
A) chmod u+x file.txt
B) chmod g+x file.txt
C) chmod o+x file.txt
D) chmod a+x file.txt
25. Which command is used to change the group ownership of a file in Unix?
a) chgrp
b) chown
c) groupchown
d) owngrp
36. In Unix, what is the purpose of the "ln" command without the "-s" option?
A) Create a hard link
B) Create a symbolic link
C) List files in a directory
D) Remove a file
37. Which command is used to change the ownership of a file and its group in Unix?
A) chown
B) chgrp
C) chmod
D) ownchown
40. Which command is used to display the current working directory in Unix?
A) pwd
B) dir
C) cd
D) ls
41. In Unix, what is the purpose of the "mv" command with the "-i" option?
A) Move files and ask for confirmation before overwriting
B) Move files and overwrite without asking for confirmation
C) Move files and preserve timestamps
D) Move files and make them hidden
42. Which command is used to display the permissions of a file in Unix?
A) chmod
B) chown
C) ls
D) perm
46. Which command is used to search for a specific string within files in Unix?
A) find
B) Grep
C) locate
D) Search