Top 50+ Solved Linux MCQ Questions Answer
Q. While executing a command, the shell
a. Executes it in the same process (as shell)
b. Creates a child shell to execute it
c. Loads a special program to take care of the execution
d. None of the mentioned
Q. Hidden files are
a. Those whose ‘read’ bit is set to ‘h’
b. Permitted for (can be accessed) only superusers
c. Files that begin with a ‘.’
d. Files that cannot be opened by ordinary user for writing
Q. Shell is ?
a. Command Interpreter
b. Interface between Kernel and Hardware
c. Interface between user and applications
d. Command Compiler
Q. Which command searches the string in file opened in vi editor?
a. / or ?
b. f or F
c. t or T
d. none of the mentioned
Q. Which of the following is true?
a. Shell is a process and can be started by superuser only
b. Shell is a built-in Kernel functionality
c. Shell is a wrapper for all the commands and utilities
d. None of the mentioned
Q. Which command is used to assign read-write permission to the owner?
a. chmod a+r file
b. chmod o+r file
c. chmod u=rw file
d. chmod og-r file
Q. Which of the following umask settings doesn’t allow execute permission to be set by defaulton directory files
a. 222
b. 111
c. 000
d. 444
Q. Write the command to display the current date in the form dd/mm/yyyy.
a. date +%d/%m/%Y
b. date +”%d/%m/%Y”
c. date +/%d/%m/20%y
d. date +”/%d/%m/20%y”