QCM


Troubleshooting


Récapitulatif


 

 

 

 

 

 

 

 

 

TEST N ° 2



1. Which option can not be specified to a Client using the DHCP protocol?

A. default gateway
B. primary WINS server
C. subnet mask
D. web proxy server
E. IP address
You answered this question incorrectly
Explanation: You can specify all of the above except the address of the web proxy server via DHCP.


2. What command do you use to edit the default grace period for quotas?

A. quotaconfig -g
B. editquota -g
C. quotaconfig -t
D. edquota -t
E. quotaeditor --grace
You answered this question incorrectly
Explanation: You use the edquota command to edit quotas. For example you can say edquota -u username to edit a specific user's quota. Or you can type edquota -g to set a quota for a group. You can say edquota -t to set up grace periods.


3. What directory contains the DNS zone files?

A. /etc/bind/
B. /etc/named/
C. /etc/bind.d
D. /var/named
E. /var/bind.d
You answered this question incorrectly
Explanation: The zone files are stored in /var/named by default. The location of this directory is specified in /etc/named.conf.


4. You have Linux installed on a machine and you use LILO as your boot loader. How do you boot into single user mode?

A. Wait for the machine to boot up then log in as root. Use the init 2 command.
B. At the LILO prompt use the linux single command.
C. At the LILO prompt use the linux 1 command.

D. At the LILO prompt use the linux command.
E. Linux only supports multi-user mode.
You answered this question incorrectly
Explanation: Either linux single or linux 1 will work at the LILO prompt. A will not work because single user mode is runlevel 1. D will only work if the default runlevel in /etc/inittab is set to 1 (which it is not normally.)


5. What command do you use to edit quotas?

A. quotaconfig
B. editquota
C. quotaconfig
D. edquota
E. quotaeditor
You answered this question incorrectly
Explanation: You use the edquota command to edit quotas. For example you can say edquota -u username to edit a specific user's quota. Or you can type edquota -g to set a quota for a group. You can say edquota -t to set up grace periods.


6. How can you turn off interface eth1?

A. service network stop
B. service netork stop eth1
C. ifstop eth1
D. ifdown eth1
E. ps -aux |grep eth1| kill `awk -f {$1}`
You answered this question incorrectly
Explanation: The ifdown eth1 command will turn off the eth1 interface. the service network stop command will stop all networking which is not what you want. The ifstop command does not exist. The last command is just nonsense.


7. What file contains the configuration for BIND?

A. /etc/bind.conf
B. /etc/named.conf
C. /etc/dns.conf
D. /var/named/bind.conf
E. /var/named.conf
You answered this question incorrectly
Explanation: BIND (the Berkely Internet Name Daemon) which is a DNS server is configured in /etc/named.conf.


8. What command will turn off the ftpd service in all runlevels?

A. chkconfig ftpd off
B. rm /etc/rc.d/init.d/*ftpd*
C. chkconfig --levels 12345 ftpd off
D. service ftpd stop
E. service ftpd stop -persistant
You answered this question incorrectly
Explanation: The chkconfig command is used to do this. You should also know how to use ntsysv.


9. What command will create the quota.user and quota.group files for me?

A. quotacheck -avug
B. quotacheck -cugf
C. quotacheck -rugf
D. repquota -u
E. none of the above
You answered this question incorrectly
Explanation: A is right. You can also do it like this:
touch /quota.user
touch /quota.group
chmod 600 /quota.*


10. Which files are used to configure TCP Wrappers?

A. /etc/tcpwrapper.conf and /etc/hosts.conf
B. /etc/hosts.allow and /etc/hosts.deny
C. /etc/tcpwrapper.conf and /etc/xinetd.conf
D. /etc/access.conf and /etc/xinetd.conf
E. /etc/tcpwrapper and /etc/access.conf
You answered this question incorrectly
Explanation: TCP Wrappers are configured in the /etc/hosts.allow and /etc/hosts.deny files.


11. What command can you enter to find out which rpm contains the /etc/foo file?

A. rpm -qa |grep foo
B. rpm -ql /etc/foo
C. rpm -qlf /etc/foo
D. rpm -q -f /etc/foo
E. man foo
You answered this question incorrectly
Explanation: You can find out which rpm a file belongs to by using the rpm -q -f command. You must have the redhatrpmdb rpm installed though.


12. You have just added a new NFS share to the appropriate file. What must you do to activate the share?

A. reboot
B. exportfs -a
C. ndc restart
D. server nfs start
E. mount -A
You answered this question incorrectly
Explanation: To share a directory via NFS you must edit the /etc/exports file and then run exportfs -a.


13. What file would you edit to share out a directory via NFS?

A. /etc/nfsd.conf
B. /etc/nsf
C. /etc/fstab
D. /etc/exports
E. /etc/export.conf
You answered this question incorrectly
Explanation: To share a directory via NFS you must edit the /etc/exports file and then run exportfs -a.


14. The PCMCIA card configuration file is read by cardmgr (8) at startup time. It defines what resources are available for use by Card Services describes how to load and initialize device drivers and describes specific PCMCIA cards. Where is this file located?

A. /etc/pcmcia/config.opts
B. /etc/sysconfig/pcmcia
C. /etc/config.pcmcia
D. /etc/pcmcia
E. /etc/pcmcia/config
You answered this question incorrectly
Explanation: The card configuration file that contains specific PCMCIA files is /etc/pcmcia/config.opts.


15. What does the following cron entry do?
10 5 * * * /bin/foo

A. runs /bin/foo every 10 minutes 5 days a week
B. runs /bin/foo at 10:05 AM every day
C. runs /bin/foo on the 10th of May every year
D. runs /bin/foo at 5:10 AM every day
E. none of the above
You answered this question incorrectly
Explanation: The fields are: minute hour day of month month day of week command


précédent
Untitled Document