Top 50+ Solved Linux MCQ Questions Answer
Q. Which combination of keys is used to exit from terminal?
a. Ctrl + t
b. Ctrl + z
c. Ctrl + d
d. Ctrl + e
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
Q. Which command is used to get the kernel version in Linux?
a. uname -r
b. kernel
c. uname -n
d. uname –s
Q. Which command is used to list all the files in your current directory(including hidden)?
a. ls -l
b. ls -t
c. ls -a
d. ls –i
Q. Which command is/are used to remove directory in Linux?
a. rmdir
b. rm -r
c. only 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
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
Q. Which command is used see the list of users who are currently logged-in?
a. login
b. users
c. who
d. which
Q. Which directory in Linux contains all the config file of the system?
a. /etc
b. /var
c. /lib
d. /bin
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
Q. Which special character should be avoided during naming a file?
a. .(dot)
b. $
c. _(underscore)
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