Top 150+ Solved Linux Programming MCQ Questions Answer
Q. What command is used to count the total number of lines, words, and characterscontained in a file?
a. countw
b. wcount
c. wc
d. count p
Q. What command is used to save the standard output in a file, as well as display it on theterminal?
a. tee
b. grep
c. cat
d. more
Q. What command is used to count just the number of lines contained in a file?
a. wc –r
b. wc –w
c. wc –c
d. wc –l
Q. What command is used to sort the lines of data in a file in reverse order?
a. sort –r
b. st
c. sh
d. sort
Q. Which statement resumes the next iteration of a for, while, select, or untill loop?
a. continue
b. break
c. complete
d. command
Q. Which of the following is not a major Unix shell?
a. X Shell
b. C Shell
c. Bash Shell
d. Korn Shell
Q. The purpose of the PATH variable is to
a. Show the current directory
b. Show the directory path of a file
c. Tells the shell what directories to search when a command is entered
d. Both A and C
Q. The shell in the Unix system is the
a. Outer layer of a seed
b. User interface with the operating system
c. Provides a prompt
d. Both (b) and (c)