Top 150+ Solved Linux Programming MCQ Questions Answer
Q. Single Unix Specification Version 2 provides enhanced support for
a. 16 bit Unix
b. 32 bit Unix
c. 64 bit Unix
d. 8 bit Unix
Q. Under UNIX the key board is the default input device and the monitor is the default output device
a. True
b. False
c. none
d. all
Q. Which among the following interacts directly with system hardware?
a. Shell
b. Commands
c. Kernel
d. Applications
Q. Applications communicate with kernel by using:
a. System Calls
b. C Programs
c. Shell Script
d. Shell
Q. Solaris is the name of a flavor of UNIX from
a. HP
b. IBM
c. Digital Equipment Corp
d. Sun Microsystems
Q. Which of the following commands is used to summarize the disk usage?
a. chkdsk
b. du
c. fdisk
d. disk
Q. Which of the following commands is used to copy directory structures in and out?
a. cp
b. cp-p
c. cpio
d. copy
Q. Which of the following commands is used to change the working directory?
a. cd
b. chdir
c. changedir
d. cdir
Q. Which of the following commands is used to count the total number of line, words andcharacters contained in a file?
a. count p
b. wcount
c. wc
d. countw
Q. Which of the following commands is used to list contents of directories?
a. 1s
b. dir
c. 1p
d. tar
Q. Which of the following commands is used to count just the number of lines contained in afile?
a. wc – 1
b. wc - w
c. wc - c
d. wc - r
Q. Which of the following directories contain all the files created by a user, including his login directory?
a. /tmp
b. /usr
c. /etc
d. /dev
Q. Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?
a. copywb collect mon /mis
b. cpwb collect mon ../misc
c. copywb ../misccollect ../mismon ../misc
d. tarwb collect mon /misc
Q. Which command is used to assign only read permission to all three categories of the file ‘note’?
a. chmod a-rw
b. chmodgo+r note
c. chmodugo = r = note
d. chmodu+r, g+r, o-x note