Top 50+ Solved Linux MCQ Questions Answer
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.
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
Q. which command is used to print the current working direcotry?
a. pwd
b. echo $PWD
c. Both A and B
d. Only A
Q. Which directory contains all the files needed to boot the Linux system?
a. /dev
b. /boot
c. /bin
d. none
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. What command is used with vi editor to search a pattern in the forward direction?
a. ??
b. //
c. ?
d. /