QCM


Troubleshooting


Récapitulatif


 

 

 

 

 

 

 

 

 

TEST N ° 1



1. What does COPS stand for?

A. Company Oriented Password System
B. Computer Oriented Password Security
C. Computer Oracle and Password System
D. Computer Oracle and Points System
E. None of the above
You answered this question incorrectly
Explanation: COPS (Computer Oracle and Password System) can check your system for things that are insecure.


2. What file do you edit to set the default runlevel?

A. /etc/grub.conf
B. /etc/lilo.conf
C. either A or B
D. /etc/inittab
E. /etc/runlevel
You answered this question incorrectly
Explanation: /etc/inittab is the standard place to do this and is the best answer.


3. What directory contains the kernel?

A. /
B. /kernel
C. /etc
D. /boot
E. /var/log
You answered this question incorrectly
Explanation: The Kernel is in /boot.


4. What does the -H option do for the dhcpcd program?

A. Sets the hostname of the machine to the name provided by DHCP.
B. Kills any previous version of the dhcpcd program that may be running.
C. Passes the machine name to DHCP as part of the DHCP request.
D. Only tries to get a new ip address if the current one is older than a certain number of hours.
E. None of the above
You answered this question incorrectly
Explanation: The -H option forces dhcpcd to set the hostname of the host to the hostname option supplied by the DHCP server.


5. Where are source RPMs installed?

A. /usr/src/linux/rpms/
B. /var/src/linux/rpm/
C. /var/rpm/src/
D. /var/linux/rpm/src/
E. /usr/src/redhat/
You answered this question incorrectly
Explanation: Source RPMs are installed in /usr/src/redhat. There are 5 subdirectories under there. SOURCES contains the original source code. SPECS contains the specification files that control the RPM build process. BUILD is where source code is uncompressed and built. SRPMS contains the source RPM that is created when you build one.


6. You want to compile a new kernel. You have just run


A. make bzImage
B. make dep
C. make clean
D. make mrproper
E. make xconfig
You answered this question incorrectly
Explanation: The first thing you should do in the /usr/src/linux-2.4 directory is
make mrproper
Thencomma you should do the following:
make config | make menuconfig | make xconfig
make dep
make clean
make bzImage
make modules (if modular kernel)
make modules_install (if modular kernel)
cp System.map /boot/System.map-2.4.17
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.17
cp .config /boot/config-2.4.17
mkinitrd /boot/initrd- # Depending on kernel configuration
Update LILO or GRUB
Reboot into new kernel


7. What file do I edit to prevent specific users from accessing an ftp server?

A. /etc/hosts.allow
B. /etc/hosts.deny
C. /etc/ftpacess
D. /etc/ftpusers
E. /etc/ftpd.conf
You answered this question incorrectly
Explanation: The /etc/ftpusers file lists users not allowed to FTP.


8. How do I immeadiately shut down a Linux system?

A. Turn off the monitor then turn off the CPU.
B. /sbin/stop
C. init 6
D. shutdown -h now
E. None of the above
You answered this question incorrectly
Explanation: A is wrong because you should always gracefully shut down a machine. B is wrong because there is no such command. C is wrong becauuse it will reboot the machine. Hence D is correct.


9. What program allows you to acess SMB shares using ftp-like commmands?

A. mount
B. smbftp
C. smbclient
D. smbmount
E. samba
You answered this question incorrectly
Explanation: The smbclient program allows you to acess SMB shares using commands similar to FTP.


10. You want to compile a new kernel. You have just run

A. make bzImage
B. make dep
C. make clean
D. make mrproper
E. make xconfig
You answered this question incorrectly
Explanation: The first thing you should do in the /usr/src/linux-2.4 directory is
make mrproper
Thencomma you should do the following:
make config | make menuconfig | make xconfig
make dep
make clean
make bzImage
make modules (if modular kernel)
make modules_install (if modular kernel)
cp System.map /boot/System.map-2.4.17
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.17
cp .config /boot/config-2.4.17
mkinitrd /boot/initrd- # Depending on kernel configuration
Update LILO or GRUB
Reboot into new kernel


11. What file contains the list of terminals that root is allowed to log into?

A. /etc/rooterm.conf
B. /etc/terminals
C. /etc/secure
D. /etc/tty.conf
E. /etc/securetty
You answered this question incorrectly
Explanation: The /etc/securetty file contains a list of all terminals that root is allowed to log into.


12. What program can be used to test the smb.conf file for errors?

A. mount
B. test
C. samba --checkparm
D. testparm
E. smbfs
You answered this question incorrectly
Explanation: the testparm program parses the smb.conf file and reports any errors. If you make a typo this program is likely to find it.


13. What does the -N option do for the dhcpcd program?

A. Sets the hostname of the machine to the name provided by DHCP.
B. If the dhcpcd server is already running then it sends it an ALRM signal to get it to renew its lease.
C. Passes the machine name to DHCP as part of the DHCP request.
D. Only tries to get a new ip address if the current one is older than a certain number of hours.
E. None of the above
You answered this question incorrectly
Explanation: The -N option will an ALRM signal to dhcpcd,if it is already running, to cause it to attempt to renew it's lease.


14. You want to add a directory to all users paths. What file should you edit to do this?

A. /etc/sysconfig/profile
B. /etc/sysconfig/profile
C. /etc/bashrc
D. /etc/profile
E. /etc/env
You answered this question incorrectly
Explanation: The /etc/profile script is used for system-wide enviornment variables and startup files. You could also create a new file in /etc/profile.d/ that ends in .sh and set the enviornment variable in there. Keep in mind that not all users will necessarily use bash.


15. Which installation class will automatically delete all of your DOS partitions?

A. Custom
B. Workstation
C. Laptop
D. Server
E. All of the above
You answered this question incorrectly
Explanation: The Server installation class will automatically delete all DOS partitions. The workstation class will use availiable free space. The laptop class is very similar to the workstation class (but for laptops.)