Top 150+ Solved Linux Operating System MCQ Questions Answer
Q. Which is the commmand used to remove or delete file with out confirmation msg ?
a. rm-f
b. rm
c. del
d. remove
Q. "cat" is the command used to
a. change directory
b. move directory
c. come out of shell
d. see the contents of file
Q. What command, followed by the directory name is used to access that specific directory?
a. cp
b. cd
c. access
d. acs
Q. How would you show a list of files and directories that are inside the current directory.
a. list
b. listfiles
c. ls
d. lst
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
Q. Which of the following commands can be used to change the group owner of a file?
a. chown
b. chmod
c. chattr
d. attrch
Q. You need to change some settings on your Apache server. Which is the best tool to use for logging in remotely?
a. rsh
b. ssh
c. rlogin
d. telnet
Q. You want to change the permissions on the file named “fifteen” so that root has all permissions and they are denied all other users. Which command should you use?
a. chmod fifteen 700
b. chmod 100 fifteen
c. chmod 700 fifteen
d. chmod fifteen 100