Computer Science - Linux MCQs Part 3
1. What command is used to sort the lines of data in a file in reverse order?
A.
sort - r
sort - r
B.
st
st
C.
sh
sh
D.
sort
sort
E.
None of the above
None of the above
Answer Option A
2. What command is used to print a file?
A.
lp
lp
B.
pg
pg
C.
prn
prn
D.
print
E.
None of the above
None of the above
Answer Option A
3. The command chmod 761 letter is equivalent to
A.
chmod 4=7, g = 6, o = 1 letter
chmod 4=7, g = 6, o = 1 letter
B.
chmod a = 761 letter
chmod a = 761 letter
C.
chmod u = rwx, g = rw, o = x letter
chmod u = rwx, g = rw, o = x letter
D.
chmod 167 letter
chmod 167 letter
E.
None of the above
None of the above
Answer Option C
4. What command is used with vi editor to move forward to the end of a word?
A.
c
c
B.
d
d
C.
b
b
D.
e
e
E.
None of the above
None of the above
Answer Option D
5. The IP address are based on
A.
16-bit addresses
16-bit addresses
B.
32-bit addresses
32-bit addresses
C.
64-bit addresses
64-bit addresses
D.
8-bit addresses
8-bit addresses
E.
None of the above
None of the above
Answer Option B
6. What TCP/IP protocol is used for file transfer with minimal capability and minimal overhead?
A. TELNET
B. TFTP
C. FTP
D. RARP
E. None of the above
Answer Option B
7. What TCP/IP protocol is used for transferring electronic mail messages from one machine to another?
A. FTP
B. SNMP
C. SMTP
D. RPC
E. None of the above
Answer Option C
8. What command is used to halt a Linux system?
A. init 0
B. Shutdown -t
C. Shutdown -g -y0
D. Ctrl+Alt+Del
E. None of the above
Answer Option A
9. Which daemon is used for the Apache server?
A. apached
B. httpd
C. html
D. shttp
E. None of the above
Answer Option B
10. GNOME is based on
A. CORBA toolkit
B. COM/DCOM toolkit
C. ORE toolkit
D. OLE DB toolkit
E. None of the above
Answer Option A
11. What can he used to set up a firewall on a Linux system?
A. netstat
B. route
C. trace
D. ipchains
E. None of the above
Answer Option D
12. Which program is used to automatically install Red Mat Linux on identical hardware?
A. bzimage.img
B. tar
C. ghost
D. mkkickstart
E. None of the above
Answer Option D
13. What service is not monitored by inetd ?
A. SSH
B. time
C. ntalk
D. finger
E. None of the above
Answer Option A
14. Who founded the FSF?
A. Linus Torvalds
B. Richard Stallman
C. Bob Young
D. All of the above
E. None of the above
Answer Option B
15. What shell's wild-card is used to match a single character?
A. [!ijk]
B. [ijk]
C. ?
D. *
E. None of the above
Answer Option C
16. What command is used to copy a file?
A. tar
B. cpio
C. cp
D. copy
E. None of the above
Answer Option C
17. What command is used to display your current working directory?
A. path
B. pwd
C. prompt $p$g
D. dir
E. None of the above
Answer Option B
18. What command is used with vi editor to move the cursor to the left?
A. h
B. k
C. j
D. i
E. None of the above
Answer Option A
19. What command do you use to add routes to a Linux router?
A. addroute
B. route
C. netstat
D. net
E. None of the above
Answer Option B
20. Which of the following command is used to mount NFS filesystems?
A. nfsmount
B. knfsd
C. mount
D. All of the above
E. None of the above
Answer Option C
21. To build a modularized kernel, the kernel-headers and kernel-source packages must first be installed. Where will you find the kernel-headers and kernel-source?
A. /usr/local
B. /usr/src/linux
C. /usr/sre/redhat
D. /usr/bin
E. None of the above
Answer Option B
22. After you have compiled your kernel, what do you have to edit to boot your new kernel image?
A. /boot/lilo.conf
B. /etc/conf.modules
C. /etc/named.boot
D. /etc/lilo.conf
E. None of the above
Answer Option D
23. To create an installation boot floppy disk from Linux (or another Unix) machine, what command could you use?
A. fdisk
B. fsck
C. dd
D. rawrite
E. None of the above
Answer Option C
24. You just added a new user, kara, to the system. What group is kara added to by default?
A. root
B. kara
C. group
D. user
E. None of the above
Answer Option B
25. What are the appropriate Hex codes for setting Linux swap and Linux native partition types in fdisk?
A. 82 and 83
B. 92 and 93
C. 63 and 64
D. 82 and 85
E. None of the above
Answer Option A
26. What command do you use to delete a file?
A. rename
B. delete
C. rm
D. cp
E. None of the above
Answer Option C
27. Which of the following command lists the last 10 lines of a file?
A. grep
B. tail
C. head
D. cat
E. None of the above
Answer Option B
28. What command is used to terminate a process?
A. kill
B. cancel
C. haltsys
D. shutdown
E. None of the above
Answer Option A
29. What command is used with vi editor to delete three words?
A. 3$d
B. 3 dw
C. 3 x
D. 3 dd
E. None of the above
Answer Option B
30. What command is used to assign only read permission to all three categories of the file'letter'?
A. chmod u + r, g + r, o - x letter
B. chmod ugo = r letter
C. chmod a - rw letter
D. chmod go + r letter
E. None of the above
Answer Option B
31. What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?
A. chmod go + x, u - x letter
B. chmod g - x, uo + r letter
C. chmod go + r, u + x letter
D. chmod u - x, go + r letter
E. None of the above
Answer Option D
32. What command is used to assign executable permission to the owner of the file named "letter"?
A. chmod ugo + x letter
B. chmod u + x letter
C. chmod u + w letter
D. chmod g + x letter
E. None of the above
Answer Option B
33. What command is used to compare the files?
A. ccp
B. du
C. cmp
D. comp
E. None of the above
Answer Option C
34. What command is used to summarize the disk usage?
A. disk
B. du
C. fdisk
D. chkdsk
E. None of the above
Answer Option B
35. What command is used to list the jobs currently in print queues?
A. lpq
B. lpr
C. lprm
D. lpc
E. None of the above
Answer Option A
36. Which of the following format of partition tables does Linux use?
A. Linux
B. BSD
C. UnixWare
D. DOS
E. None of the above
Answer Option D
37. Which of the following NIS clients returns the name of the NIS server used by the NIS client?
A. ypwhich
B. ypbind
C. ypcat
D. yppoll
E. None of the above
Answer Option A
6. What TCP/IP protocol is used for file transfer with minimal capability and minimal overhead?
A. TELNET
B. TFTP
C. FTP
D. RARP
E. None of the above
Answer Option B
7. What TCP/IP protocol is used for transferring electronic mail messages from one machine to another?
A. FTP
B. SNMP
C. SMTP
D. RPC
E. None of the above
Answer Option C
8. What command is used to halt a Linux system?
A. init 0
B. Shutdown -t
C. Shutdown -g -y0
D. Ctrl+Alt+Del
E. None of the above
Answer Option A
9. Which daemon is used for the Apache server?
A. apached
B. httpd
C. html
D. shttp
E. None of the above
Answer Option B
10. GNOME is based on
A. CORBA toolkit
B. COM/DCOM toolkit
C. ORE toolkit
D. OLE DB toolkit
E. None of the above
Answer Option A
Comments
Post a Comment