Computer Science 822 Quiz 1 Name_______________________ 1. Which of the following best describes the relationship between Linux distributions (RedHat, Suse, Debian, etc...) and Linux Kernel code. a. The distributions have different b. The distributions have identical tools, init scripts, and kernel tools, init scripts, and kernel code bases. code bases. D c. The distributions have identical d. The distributions have different tools, init scripts, but different tools, init scripts, but use kernel code bases. identical kernel code bases. 2. In installing and configuring Linux identify the ORDER (1, 2, 3, 4) in which the following commands would be used: _3_ a. mkfs (Sets up a Linux file system) _4_ b. mount (Mounts the file system on a directory) _1_ c. mknod (Creates /dev/hda) _2_ d. fdisk (requires /dev/hda as operand) Consider the following two mount commands: (1) mount -t ext2 /dev/hda /parta (2) mount -t ext2 /dev/hda3 /parta 3. Which one demonstrates the correct way to mount a filesystem a. (1) b. (2) (2) c. Both are equivalent and d. Both are hopelessly broken work fine 4. Which best describes what /parta should be: a. a node in /dev created with b. A directory in the root directory mknod B c. a directory in /dev d. the name of a disk partition 5. An IP address is bound to the eth0 device in: a. /etc/sysconfig/network b. /etc/hosts C c. /etc/sysconfig/network-scripts/ifcfg-eth0 6. Bindings of various host names to IP addresses may be specified in: a. /etc/resolv.conf b. /etc/hosts B c. /etc/sysconfig/network d. /etc/passwd 7. The address of a system's primary and secondary DNS nameserver may be specified in: a. /etc/resolv.conf b. /etc/hosts A c. /etc/sysconfig/network d. /etc/passwd 8. To individually enable or disable the rlogin, telnet, ftp daemons it is necessary to edit files that reside in the directory: a. /etc/rc.d b. /etc/rc.d/init.d C c. /etc/xinetd.d d. /etc/rc.d/rc3.d 9. To specify file systems that are to be automatically mounted and boot time it is necessary to edit: a. /etc/mounttab b. /etc/exports C c. /etc/fstab d. /etc/passwd 10. Suppose I wish to install the newest kernel 2.4.17. I presently have 2.4.5 installed and configured as we did in lab1. I have linux-2.4.17.tgz resident in /usr/src which is my current working directory. Complete the following commands in such a way that 2.4.17 will be installed as the current kernel WITHOUT damaging the 2.4.5 sources: a. rm linux b. tar xzvf linux-2.4.17.tgz c. mv linux linux-2.4.17 d. ln -s linux-2.4.17 linux 11. After I compile the new 2.4.17 kernel and move it to /boot what else MUST I do to be able to boot it? (This is NOT asking about updating System.map which is optional) a. Add it to the config file /etc/lilo.conf b. Run /sbin/lilo 12. The register_chrdev() function is (we are talking here about the BODY OF CODE THAT IMPLEMENTS THE FUNCTION and NOT about a single line of code that calls the function): a. Present in device drivers b. Present in the kernel and and called by the kernel called by apps C c. Present in the kernel and d. Present in device drivers called by device drivers and called by apps. 13. One of the parameters that is passed to register_chrdev() is a table of pointers to functions. These pointers point to functions that are: a. Present in device drivers b. Present in the kernel and and called by the kernel called by apps A c. Present in the kernel and d. Present in device drivers called by device drivers and called by apps.