Exercise 1

Question 21 :

Which file defines all users on your system? Choose one:


A). /etc/passwd
B). /etc/users
C). /etc/password
D). /etc/user.conf
Answer : Option A

Explanation :

The /etc/passwd file contains all the information on users who may log into your system. If a user account is not contained in this file, then the user cannot log in.


Question 22 :

Which two commands can you use to delete directories?


A). rm
B). rm -rf
C). rmdir
D). rd
E). rd -rf
Answer : Option B, Option C

Explanation :

You can use rmdir or rm -rf to delete a directory. Answer a is incorrect, because the rm command without any specific flags will not delete a directory, it will only delete files. Answers d and e point to a non-existent command.


Question 23 :

Which partitioning tool is available in all distributions?


A). Disk Druid
B). fdisk
C). Partition Magic
D). FAT32
E). System Commander
Answer : Option B

Explanation :

The fdisk partitioning tool is available in all Linux distributions. Answers a, c, and e all handle partitioning, but do not come with all distributions. Disk Druid is made by Red Hat and used in its distribution along with some derivatives. Partition Magic and System Commander are tools made by third-party companies. Answer d is not a tool, but a file system type. Specifically, FAT32 is the file system type used in Windows 98.


Question 24 :

Which partitions might you create on the mail server's hard drive(s) other than the root, swap, and boot partitions? [Choose all correct answers]


A). /var/spool
B). /tmp
C). /proc
D). /bin
E). /home
Answer : Option A, Option B, Option E

Explanation :

Separating /var/spool onto its own partition helps to ensure that if something goes wrong with the mail server or spool, the output cannot overrun the file system. Putting /tmp on its own partition prevents either software or user items in the /tmp directory from overrunning the file system. Placing /home off on its own is mostly useful for system re-installs or upgrades, allowing you to not have to wipe the /home hierarchy along with other areas. Answers c and d are not possible, as the /proc portion of the file system is virtual-held in RAM-not placed on the hard drives, and the /bin hierarchy is necessary for basic system functionality and, therefore, not one that you can place on a different partition.


Question 25 :

Of the following technologies, which is considered a client-side script?


A). JavaScript
B). Java
C). ASP
D). C++
Answer : Option A

Explanation :

JavaScript is the only client-side script listed. Java and C++ are complete programming languages. Active Server Pages are parsed on the server with the results being sent to the client in HTML