Top 50+ Solved Linux MCQ Questions Answer

From 31 to 45 of 49

Q. Which of the following is not a filter command?

a. sort

b. wc

c. grep

d. cat

  • d. cat

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

  • b. Creates a child shell to execute it

Q. Which variable contains current shell process id

a. $*

b. $?

c. $$

d. $!

  • c. $$

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

  • c. Files that begin with a ‘.’

Q. Shell is ?

a. Command Interpreter

b. Interface between Kernel and Hardware

c. Interface between user and applications

d. Command Compiler

  • a. Command Interpreter

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

  • a. / or ?

Q. Which command sets the number for all lines?

a. :set li

b. :set ln

c. :set nu

d. :set nl

  • c. :set nu

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

  • c. Shell is a wrapper for all the commands and utilities

Q. Effective group id can be set using following permission

a. 0777

b. 2666

c. 4744

d. 1711

  • b. 2666

Q. The permission -rwSr–r– represented in octal expression will be

a. 0777

b. 2666

c. 4744

d. 4644

  • d. 4644

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

  • c. chmod u=rw file

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”

  • a. date +%d/%m/%Y

Q. How to execute ls command inside a vi editor?

a. !ls

b. :ls

c. :!ls

d. we can’t execute

  • c. :!ls
Subscribe Now

Get All Updates & News