Top 150+ Solved Linux Operating System MCQ Questions Answer
Q. What command is used to count the total number of lines, words, and characters contained in a file?
a. countw
b. wcount
c. wc
d. count p
Q. What hardware architectures are not supported by Red Hat?
a. SPARC
b. IBM-compatible
c. Alpha
d. Macintosh
Q. How can you add Amit, a new user, to your system?
a. Using useradd
b. Using adduser
c. Using linuxconf
d. All of the above
Q. How could you install the file ipchains-1.3.9-5.i386.rpm?
a. rpm -qip ipchains
b. rpm -Uvh ipchains
c. rpm -i ipchains* .i386.rpm
d. rpm -e ipchains-1.3.9-5.i386.rpm
Q. What does FSF stand for?
a. Free Software File
b. File Server First
c. First Serve First
d. Free Software Foundation
Q. Which of the following command can you execute to count the number of lines in a file?
a. lc
b. wc - l
c. cl
d. count
Q. What command is used to list only the files chap0l, chap02 and chap04?
a. ls chap*
b. ls chap[124]
c. ls - x chap0[124]
d. ls chap0[124]
Q. What command is used to sort the lines of data in a file in alphabetical order?
a. sort - r
b. st
c. sh
d. sort