Top 50+ Solved Linux MCQ Questions Answer

From 1 to 15 of 49

Q. Maximum how long can a Linux filename be?

a. 128 bytes

b. 255 bytes

c. 32 bytes

d. 64 bytes

  • b. 255 bytes

Q. Which combination of keys is used to exit from terminal?

a. Ctrl + t

b. Ctrl + z

c. Ctrl + d

d. Ctrl + e

  • c. Ctrl + d

Q. Which command(s) is/are used to get help about a command in Linux?

a. info

b. man

c. None of these

d. Both a and b

  • a. info

Q. Which command is used to get the kernel version in Linux?

a. uname -r

b. kernel

c. uname -n

d. uname –s

  • a. uname -r

Q. Which command is/are used to remove directory in Linux?

a. rmdir

b. rm -r

c. only b

d. Both a and b

  • d. Both a and b

Q. Which of the following command is used to create file in Linux?

a. touch

b. cat

c. echo

d. All of the above

  • d. All of the above

Q. In Linux everything stored as a

a. file

b. directory

c. executables

d. None of the above

  • a. file

Q. Which of the following command can be used as an alternative to echo command?

a. print

b. printr

c. printf

d. none of these

  • c. printf

Q. Which of the following command is used to count number of lines in a file?

a. wc -l

b. wc -c

c. wc -w

d. None of these

  • a. wc -l

Q. Which command is used to copy entire directory?

a. cp -r

b. cp -i

c. cp

d. none of these

  • a. cp -r

Q. Which special character should be avoided during naming a file?

a. .(dot)

b. $

c. _(underscore)

d. -(Hyphen)

  • d. -(Hyphen)

Q. Suppose I am in /etc directoy, after executing cd .(single dot), where am I now?

a. /etc

b. /(root)

c. /home

d. None of these

  • a. /etc
Subscribe Now

Get All Updates & News