Top 150+ Solved Linux Operating System MCQ Questions Answer

From 106 to 120 of 134

Q. Command used to create an empty file.

a. mtfile

b. touch

c. intouch

d. file

  • b. touch

Q. ........command is used to show the logger or user

a. ?

b. who

c. no of

d. ???

  • b. who

Q. "cat" is the command used to

a. change directory

b. move directory

c. come out of shell

d. see the contents of file

  • d. see the contents of file

Q. What command allows you to logout of the system?

a. lgt

b. logout

c. logot

d. out

  • b. logout

Q. You have written a shell script that must be run as root in order to work properly. What is the most secure way to give a normal user the ability to run this program?

a. Set permissions to 777 on the script

b. Make the user a member of the root group

c. Make the user the owner of the script

d. Set the SUID bit on the script

  • a. Set permissions to 777 on the script

Q. Which of the following modes of operation exist in vi?

a. insert

b. type

c. search

d. remove

  • a. insert
Subscribe Now

Get All Updates & News