Online Computer Science Test - Linux Test

Instruction:

  • This is a FREE online test. Beware of scammers who ask for money to attend this test.
  • Total number of questions: 20.
  • Time allotted: 30 minutes.
  • Each question carries 1 mark; there are no negative marks.
  • DO NOT refresh the page.
  • All the best!

Marks : 2/20


Total number of questions
20
Number of answered questions
0
Number of unanswered questions
20
Test Review : View answers and explanation for this test.

1.
What command is used to remove files?
dm
rm
delete
erase
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

2.
What TCP/IP protocol is used for remote terminal connection service?
UDP
RARP
FTP
TELNET
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

3.
In which directory can you store system user default files used for creating user directories?
/usr/tmp
/etc/default
/etc/skel
/etc/users
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option
Explanation:
The /etc/skel directory contains files and directories that are automatically copied over to a new user's home directory when such user is created.

4.
Which of the following is the main Apache configuration file?
/etc/apache.conf
/etc/httpd/config.ini
/etc/httpd/conf/httpd.conf
/etc/srm.conf
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

5.
What shell's wild-card is used to match any number of characters including none?
*
?
[!ijk]
[ijk]
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

6.
How can you navigate around virtual consoles?
Alt+Function Key
Ctrl+Function Key
Ctrl+Alt+Del
Alt+a+w+Function Key
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

7.
For you to create a swap partition by using fdisk, what must the partition's system ID type be?
83
82
5
4
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

8.
What file contains the list of port numbers (and associated names) monitored by inetd?
/etc/services
/etc/nsorder
/etc/nsswitch.conf/
/etc/hosts
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

9.
The location for subdirectories for local programs and executables for user and administrative commands, is:
/usr
/tmp
/opt
/mnt
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

10.
What command is used to assign executable permission to all of the files named "report"?
chmod ugo + x report
chmod u + x report
chmod ugo + rw report
chmod ugo + r report
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

11.
LILO
stands for Linux loader
is the Linux boot loader
is a tool used to boot the Kernel on x86 hardware
All of the above
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

12.
What command is used to set user and group quotas?
/sbin/usrquota
/sbin/edquota
/sbin/quotaon
/sbin/quota
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

13.
Where can system and mail logs be found in Ret Hat Linux?
/var/log
/etc/log
/mail
All of the above
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

14.
Which of the following command can be used to rename a file in UNIX?
ren
mv
remove
change
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

15.
Which of the following is the main Apache configuration file?
httpd.conf
apache.con
/etc/profile
system.ini
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

16.
What shell's wild-card is used to match a single character?
[!ijk]
[ijk]
?
*
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

17.
What command is used with vi editor to move the cursor to the left?
h
k
j
i
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

18.
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?
/usr/local
/usr/src/linux
/usr/sre/redhat
/usr/bin
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

19.
After you have compiled your kernel, what do you have to edit to boot your new kernel image?
/boot/lilo.conf
/etc/conf.modules
/etc/named.boot
/etc/lilo.conf
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

20.
What command is used to compare the files?
ccp
du
cmp
comp
None of the above
Your Answer: Option
(Not Answered)
Correct Answer: Option

*** END OF THE TEST ***
Time Left: 00:29:56
Post your test result / feedback here: