Top 150+ Solved Linux Operating System MCQ Questions Answer
Q. What command is used to display your current working directory?
a. path
b. pwd
c. prompt $p$g
d. dir
Q. Which of the following command is used to mount NFS filesystems?
a. nfsmount
b. knfsd
c. mount
d. All of the above
Q. You just added a new user, kara, to the system. What group is kara added to by default?
a. root
b. kara
c. group
d. user
Q. What command is used to assign only read permission to all three categories of the file'letter'?
a. chmod u + r, g + r, o - x letter
b. chmod ugo = r letter
c. chmod a - rw letter
d. chmod go + r letter
Q. What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?
a. chmod go + x, u - x letter
b. chmod g - x, uo + r letter
c. chmod go + r, u + x letter
d. chmod u - x, go + r letter
Q. What command is used to assign executable permission to the owner of the file named "letter"?
a. chmod ugo + x letter
b. chmod u + x letter
c. chmod u + w letter
d. chmod g + x letter
Q. What is the following syntax used for command 2> /dev/null
a. Send the output of command to a file called /dev/null
b. Discard standard error entirely.
c. Append the output of command to a file called /dev/null
d. Send error messages from command to a file called /dev/null