Top 50+ Solved Linux MCQ Questions Answer

From 16 to 30 of 49

Q. mv command can be used to ?

a. Move the file to different directory.

b. Renaming a file

c. Both a and b.

d. Only a.

  • c. Both a and b.

Q. Which command is used to print the login shell of an user?

a. echo $SHELL

b. echo $LOGIN

c. echo $LSHELL

d. None of the Above

  • a. echo $SHELL

Q. which command is used to print the current working direcotry?

a. pwd

b. echo $PWD

c. Both A and B

d. Only A

  • c. Both A and B

Q. Which command is used to set terminal IO characteristic?

a. tty

b. ctty

c. ptty

d. sty

  • d. sty

Q. Which option of ls command used to view file inode number

a. –l

b. -o

c. –a

d. –i

  • d. –i

Q. What is the right command to save file and exit in Vim?

a. :wq

b. :a

c. :q

d. :q!

  • a. :wq

Q. Which of the following is not an editor?

a. expr

b. vi

c. emacs

d. ex

  • a. expr

Q. What command is used with vi editor to delete a single character?

a. x

b. y

c. a

d. None of the above

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

a. grep

b. mail

c. mesg

d. write

  • a. grep
Subscribe Now

Get All Updates & News