McqMate
1. |
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 |
Answer» C. wc |
2. |
What command is used to remove files? |
A. | dm |
B. | rm |
C. | delete |
D. | erase |
Answer» B. rm |
3. |
What command is used to remove the directory? |
A. | rdir |
B. | remove |
C. | rd |
D. | rmdir |
Answer» D. rmdir |
4. |
What command is used with vi editor to delete a single character? |
A. | x |
B. | y |
C. | a |
D. | z |
Answer» A. x |
5. |
What hardware architectures are not supported by Red Hat? |
A. | SPARC |
B. | IBM-compatible |
C. | Alpha |
D. | Macintosh |
Answer» D. Macintosh |
6. |
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 |
Answer» D. All of the above |
7. |
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 |
Answer» C. rpm -i ipchains* .i386.rpm |
8. |
What does FSF stand for? |
A. | Free Software File |
B. | File Server First |
C. | First Serve First |
D. | Free Software Foundation |
Answer» D. Free Software Foundation |
9. |
What command do you use to create Linux file systems? |
A. | fdisk |
B. | mkfs |
C. | fsck |
D. | mount |
Answer» B. mkfs |
10. |
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 |
Answer» B. wc - l |
11. |
Which of the following is not a communication command? |
A. | grep |
B. | |
C. | mesg |
D. | write |
Answer» A. grep |
12. |
What command is used to display the characteristics of a process? |
A. | au |
B. | ps |
C. | du |
D. | pid |
Answer» B. ps |
13. |
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] |
Answer» C. ls - x chap0[124] |
14. |
What command is used with vi editor to replace text from cursor to right |
A. | S |
B. | s |
C. | R |
D. | r |
Answer» C. R |
15. |
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 |
Answer» D. sort |
16. |
What command is used with vi editor to save file and remain in the editing mode? |
A. | x |
B. | q! |
C. | :w |
D. | :q |
Answer» C. :w |
17. |
What command is used with vi editor to move back to the beginning of a word? |
A. | w |
B. | e |
C. | a |
D. | b |
Answer» D. b |
18. |
What command is used with vi editor to search a pattern in the forward direction? |
A. | ?? |
B. | // |
C. | ? |
D. | / |
Answer» D. / |
19. |
What command is used to add printing jobs to the queue? |
A. | Lpd |
B. | Lpr |
C. | Lpq |
D. | Lpc |
Answer» B. Lpr |
20. |
What protocol(s) is(are) allowed a user to retrieve her/his mail from the mail server to her/his mail reader? |
A. | POP3 |
B. | FTP |
C. | MAP |
D. | All of the above |
Answer» A. POP3 |
21. |
What project is currently developing X server support? |
A. | XFree86 Project, Inc. |
B. | RHAD Labs |
C. | GNOME Project |
D. | All of the above |
Answer» A. XFree86 Project, Inc. |
22. |
What X-based tool is available for configuring the X Window system? |
A. | XConfigurator |
B. | XF86Setup |
C. | xf86config |
D. | All of the above |
Answer» B. XF86Setup |
23. |
Which of the following server is used with the BIND package? |
A. | httpd |
B. | shttp |
C. | dns |
D. | named |
Answer» D. named |
24. |
What port does squid listen, by default? |
A. | 4322 |
B. | 2314 |
C. | 7334 |
D. | 3128 |
Answer» D. 3128 |
25. |
Which of the following is the main Apache configuration file? |
A. | /etc/apache.conf |
B. | /etc/httpd/config.ini |
C. | /etc/httpd/conf/httpd.conf |
D. | /etc/srm.conf |
Answer» C. /etc/httpd/conf/httpd.conf |
26. |
Which of the following command is used to access an SMB share on a Linux system? |
A. | NFS |
B. | SMD |
C. | smbclient |
D. | smbserver |
Answer» C. smbclient |
27. |
Which of the following command is used to see the services running in NFS server? |
A. | rpcinfo |
B. | serverinfo |
C. | NFSinfo |
D. | infserv |
Answer» A. rpcinfo |
28. |
In which tcp_wrappers file can you specify to allow all connections from all hosts? |
A. | /etc/hosts.allow |
B. | /etc/hosts.deny |
C. | /etc/hosts |
D. | /etc/tcp.conf |
Answer» A. /etc/hosts.allow |
29. |
What does GNU stand for? |
A. | GNU's not Unix |
B. | Greek Needed Unix |
C. | General Unix |
D. | General Noble Unix |
Answer» A. GNU's not Unix |
30. |
What command is used to remove jobs from the print queue? |
A. | lpq |
B. | lpr |
C. | lprm |
D. | lpc |
Answer» C. lprm |
31. |
How can you navigate around virtual consoles? |
A. | Alt+Function Key |
B. | Ctrl+Function Key |
C. | Ctrl+Alt+Del |
D. | Alt+a+w+Function Key |
Answer» A. Alt+Function Key |
32. |
Which of the following NIS clients, finds and stores information about an NIS domain and server? |
A. | ypwhich |
B. | ypbind |
C. | ypcat |
D. | yppoll |
Answer» B. ypbind |
33. |
RPM |
A. | stands for Red Hat Package Manager |
B. | is used to install, uninstall, and manage packages |
C. | is used to keep track of the users |
D. | assigns a dynamic IP address |
Answer» A. stands for Red Hat Package Manager |
34. |
What command is used to query for a specific package with RPM? |
A. | rpm -q |
B. | rpm -a |
C. | rpm -d |
D. | rpm -1 |
Answer» A. rpm -q |
35. |
Who founded the Linux Kernel? |
A. | Bill Gates |
B. | Ben Thomas |
C. | Richard Stallman |
D. | Linus Torvalds |
Answer» D. Linus Torvalds |
36. |
_____ tool allows you to change your default X Window desktop. |
A. | utilinux |
B. | cempre |
C. | switchdesk |
D. | window |
Answer» C. switchdesk |
37. |
In what file can you specify which users are not allowed to access a system via FTP? |
A. | /etc/ftpusers |
B. | /etc/hosts.deny |
C. | /etc/ftpaccess |
D. | All of the above |
Answer» A. /etc/ftpusers |
38. |
Which program is used to schedule particular jobs or programs at particular times on the system? |
A. | vi |
B. | Outlook |
C. | Scheduler |
D. | cron |
Answer» D. cron |
39. |
The location of some system configuration and system administrator executable files, is: |
A. | /home |
B. | /proc |
C. | /var |
D. | /sbin |
Answer» D. /sbin |
40. |
The location for subdirectories for local programs and executables for user and administrative commands, is: |
A. | /usr |
B. | /tmp |
C. | /opt |
D. | /mnt |
Answer» A. /usr |
41. |
Which of the following is not a filter command? |
A. | sort |
B. | wc |
C. | grep |
D. | cat |
Answer» D. cat |
42. |
What command is used to assign executable permission to all of the files named "report"? |
A. | chmod ugo + x report |
B. | chmod u + x report |
C. | chmod ugo + rw report |
D. | chmod ugo + r report |
Answer» A. chmod ugo + x report |
43. |
What command is used to change the working directory? |
A. | cdir |
B. | chdir |
C. | changedir |
D. | cd |
Answer» D. cd |
44. |
What command is used to count just the number of characters in a file? |
A. | wc - r |
B. | wc - w |
C. | wc - c |
D. | wc - 1 |
Answer» C. wc - c |
45. |
What command can be used to get information about yourself? |
A. | which |
B. | pwd |
C. | i /4 |
D. | who am i |
Answer» D. who am i |
46. |
Which of the following subdirectory(ies) contains the device files? |
A. | /dev |
B. | /bin |
C. | /etc |
D. | /home |
Answer» A. /dev |
47. |
Which of the following subdirectory(ies) contains the system configuration scripts. |
A. | /dev |
B. | /bin |
C. | /etc |
D. | /home |
Answer» C. /etc |
48. |
What of the following tool is used to check and repair Linux file systems? |
A. | mkfs |
B. | fdisk |
C. | fsck |
D. | mount |
Answer» C. fsck |
49. |
Which of the following is the main Apache configuration file? |
A. | httpd.conf |
B. | apache.con |
C. | /etc/profile |
D. | system.ini |
Answer» A. httpd.conf |
50. |
What command is used to display and create files? |
A. | lyrix |
B. | ed |
C. | vi |
D. | cat |
Answer» D. cat |
51. |
Which of the following command can be used to rename a file in LINUX? |
A. | ren |
B. | mv |
C. | remove |
D. | change |
Answer» B. mv |
52. |
What command is used to remove a file? |
A. | del |
B. | mv |
C. | rm |
D. | remove |
Answer» C. rm |
53. |
What command is used to display the top of the file? |
A. | grep |
B. | more |
C. | head |
D. | cat |
Answer» C. head |
54. |
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 |
Answer» A. sort - r |
55. |
What command is used to print a file? |
A. | lp |
B. | pg |
C. | prn |
D. | |
Answer» A. lp |
56. |
The command chmod 761 letter is equivalent to |
A. | chmod 4=7, g = 6, o = 1 letter |
B. | chmod a = 761 letter |
C. | chmod u = rwx, g = rw, o = x letter |
D. | chmod 167 letter |
Answer» C. chmod u = rwx, g = rw, o = x letter |
57. |
What command is used with vi editor to move forward to the end of a word? |
A. | c |
B. | d |
C. | b |
D. | e |
Answer» D. e |
58. |
The IP address are based on |
A. | 16-bit addresses |
B. | 32-bit addresses |
C. | 64-bit addresses |
D. | 8-bit addresses |
Answer» B. 32-bit addresses |
59. |
Which daemon is used for the Apache server? |
A. | apached |
B. | httpd |
C. | html |
D. | shttp |
Answer» B. httpd |
60. |
Who founded the FSF? |
A. | Linus Torvalds |
B. | Richard Stallman |
C. | Bob Young |
D. | All of the above |
Answer» B. Richard Stallman |
61. |
What command is used to copy a file? |
A. | tar |
B. | cpio |
C. | cp |
D. | copy |
Answer» C. cp |
62. |
What command is used to display your current working directory? |
A. | path |
B. | pwd |
C. | prompt $p$g |
D. | dir |
Answer» B. pwd |
63. |
What command is used with vi editor to move the cursor to the left? |
A. | h |
B. | k |
C. | j |
D. | i |
Answer» A. h |
64. |
Which of the following command is used to mount NFS filesystems? |
A. | nfsmount |
B. | knfsd |
C. | mount |
D. | All of the above |
Answer» C. mount |
65. |
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 |
Answer» B. kara |
66. |
Which of the following command lists the last 10 lines of a file? |
A. | grep |
B. | tail |
C. | head |
D. | cat |
Answer» B. tail |
67. |
What command is used to terminate a process? |
A. | kill |
B. | cancel |
C. | haltsys |
D. | shutdown |
Answer» A. kill |
68. |
What command is used with vi editor to delete three words? |
A. | 3$d |
B. | 3 dw |
C. | 3 x |
D. | 3 dd |
Answer» B. 3 dw |
69. |
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 |
Answer» B. chmod ugo = r letter |
70. |
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 |
Answer» D. chmod u - x, go + r letter |
71. |
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 |
Answer» B. chmod u + x letter |
72. |
What command is used to summarize the disk usage? |
A. | disk |
B. | du |
C. | fdisk |
D. | chkdsk |
Answer» B. du |
73. |
What command is used to list the jobs currently in print queues? |
A. | lpq |
B. | lpr |
C. | lprm |
D. | lpc |
Answer» A. lpq |
74. |
What is the following syntax used for command 2> /dev/null |
A. | Send the output of command to a file called /dev/null |
B. | Discard standard error entirely. |
C. | Append the output of command to a file called /dev/null |
D. | Send error messages from command to a file called /dev/null |
Answer» D. Send error messages from command to a file called /dev/null |
75. |
How do you delete your crontab entry? |
A. | crontab -d |
B. | crontab -e |
C. | crontab -r |
D. | del -crontab |
Answer» C. crontab -r |
76. |
How do you create a crontab entry? |
A. | crontab --create |
B. | crontab -make |
C. | crontab -e |
D. | crontab –c |
Answer» C. crontab -e |
77. |
How would you display running httpd processes? |
A. | ps -C httpd |
B. | ps -d httpd |
C. | ps -r httpd |
D. | ps -D httpd |
Answer» A. ps -C httpd |
78. |
How would you avoid accidentally removing files? |
A. | rm -i |
B. | rm -chk |
C. | rm -a |
D. | rm -r |
Answer» A. rm -i |
79. |
How would you search for the string clothes at the end of the line in a file called shopping? |
A. | grep 'clothes#' shopping |
B. | grep 'clothes!' shopping |
C. | grep 'clothes$' shopping |
D. | grep 'clothes^' shopping |
Answer» C. grep 'clothes$' shopping |
80. |
Which runlevel allows full multiuser mode but with no graphical login manager? |
A. | Runlevel 1 |
B. | Runlevel 2 |
C. | Runlevel 3 |
D. | Runlevel 0 |
Answer» C. Runlevel 3 |
81. |
How would you sort a file called shopping on column 3? |
A. | sort -n 3 shopping |
B. | sort -k 3 shopping |
C. | sort -c 3 shopping |
D. | sort -c3 shopping |
Answer» B. sort -k 3 shopping |
82. |
How do you run a job that will continue running even if you are logged out? |
A. | hup.out command |
B. | hup command |
C. | jobc command |
D. | nohup command |
Answer» D. nohup command |
83. |
What is the following syntax used for? command >file1 2>file2 |
A. | Send command's standard output to file1,and its standard error to file2 |
B. | Send command's standard error to file1, and its standard output to file2 |
C. | Send command's standard error to file1, and its standard input to file2 |
D. | Send command's standard input to file1,and its standard output to file2 |
Answer» A. Send command's standard output to file1,and its standard error to file2 |
84. |
What does the 2>&1 at the end of the following command mean?find / -name fred.txt > names 2>&1 |
A. | Send standard error to a file called &1 |
B. | Append standard error to a file called &1 |
C. | Send standard error to the same place as standard output |
D. | Send the output of the find command to /dev/null |
Answer» C. Send standard error to the same place as standard output |
85. |
Which command is used to unmount a filesystem? |
A. | dmount |
B. | dismount |
C. | unmount |
D. | umount |
Answer» D. umount |
86. |
Which file determines what will be run at each runlevel? |
A. | /etc/init/runlevels |
B. | /etc/levels/fstab |
C. | /etc/fstab |
D. | /etc/inittab |
Answer» D. /etc/inittab |
87. |
What is the full path for grub's configuration file |
A. | /boot/grub/lsof.conf |
B. | /boot/grub/menu.lst |
C. | /etc/grub/grub.conf |
D. | /etc/grub/grub.txt |
Answer» B. /boot/grub/menu.lst |
88. |
How do you display the kernel release? |
A. | kernel -r |
B. | uname -r |
C. | cat /proc/etc/kernel/release |
D. | cat /etc/config/kernel/release |
Answer» B. uname -r |
89. |
What does the permission string rwxr-xr-- correspond with in octal? |
A. | 742 |
B. | 754 |
C. | 724 |
D. | 624 |
Answer» B. 754 |
90. |
How do you display your current crontab entry? |
A. | crontab -display |
B. | crontab -d |
C. | list --crontab |
D. | crontab -l |
Answer» D. crontab -l |
91. |
How do you see hidden files in your home directory? |
A. | ls -h |
B. | ls -la |
C. | ls -hn |
D. | ls -R |
Answer» B. ls -la |
92. |
How do you direct the shell to execute a command in the background? |
A. | Put an & symbol at the end of the command line. |
B. | Key in fg followed by the command name. |
C. | Press Ctrl+c after you have keyed in the command. |
D. | Press Ctrl+d after you have keyed in the command. |
Answer» A. Put an & symbol at the end of the command line. |
93. |
What keyboard combination can be used to exit the shell? |
A. | Ctrl+E |
B. | Ctrl+C |
C. | Ctrl+D |
D. | Ctrl+Z |
Answer» C. Ctrl+D |
94. |
What is the purpose of the following operator? >> |
A. | It is used to send the output of one command so it becomes the input of a second command. |
B. | It is used to send both input and output to the same file. |
C. | It is used to overwrite the contents of a file. |
D. | It appends data to a file without overwriting it. |
Answer» D. It appends data to a file without overwriting it. |
95. |
How would you remove a directory that is not empty? |
A. | rm -r |
B. | rm -f |
C. | rmdir -f |
D. | rmdir -le |
Answer» A. rm -r |
96. |
To display information about the processor itself - display the contents of which file? |
A. | /bin/cpu |
B. | /dev/cpuinfo |
C. | /etc/cpu |
D. | /proc/cpuinfo |
Answer» D. /proc/cpuinfo |
97. |
To run date first, and then ls -l, which of the following is correct? |
A. | date $ ls -l |
B. | date ; ls -l |
C. | date - ls -l |
D. | date > ls -l |
Answer» B. date ; ls -l |
98. |
Which file is the list of commands you recently entered stored in? |
A. | .bashrc_history |
B. | .history |
C. | .bash_history |
D. | .bash_list_history |
Answer» C. .bash_history |
99. |
Which of the following runs the last command you entered? |
A. | ~! |
B. | !~ |
C. | !! |
D. | .. |
Answer» C. !! |
100. |
What is the shortest command to take you to your home directory? |
A. | cd ~ |
B. | cd $HOME |
C. | cd |
D. | . |
Answer» C. cd |
Done Reading?