1. If you want to allow X-Windows programs from hostB to run on the display on hostA what would you need to do?
A. run xhost +hostB on hostA.
B. run xhost +hostA on hostB.
C. run xhost + on hostA.
D. run xhost + on hostB.
E. just set the DISPLAY environment variable and it will work.
You answered this question incorrectly
Explanation: You want programs from hostB to display on hostA. So you must tell hostA to allow Xclients from hostB. Hence A is correct. The xhost + command is too broad and allows anyone to connect to your X-server.
2. 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.
3. You have a Linux machine that does not have X-Windows configured. What command can you use to find out what kind of graphics card it has?
A. Xfind
B. SuperProbe
C. Xsetup
D. cat /proc/video
E. videocfg
You answered this question incorrectly
Explanation: The SuperProbe program is used to find information about your graphics card.
4. 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.)
5. How do you install an RPM?
A. rpm -evh packagename.rpm
B. rpm -ivh packagename.rpm
C. rpm -q packagename.rpm
D. rpm -qa *.rpm
E. rpm -ql *.rpm
You answered this question incorrectly
Explanation: A is wrong because the -e option is for uninstalling. B is right. C D and E are wrong because the -q option is for querrying.
6. 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.
7. 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.
8. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in /etc/fstab)?
A. mount /dev/floppy /mnt/fd0
B. mount -t iso9660 /dev/fd0 /mnt/floppy
C. mount -t vfat /dev/fd0 /mnt/floppy
D. mount -t msdos /dev/floppy /mnt/floppy
E. mdir
You answered this question incorrectly
Explanation: A will only work if there is an entry in /etc/fstab. B is wrong because iso9660 is for CDROM’s. C is correct. D is wrong becuase the device should be /dev/fd0 rather than /dev/floppy.
9. You have created a /home/projectfoo directory. How can you change its group ownership to the projectfoo group?
A. chmod g+rwx projectfoo /home/projectfoo
B. chown projectfoo /home/projectfoo
C. chgrp projectfoo /home/projectfoo
D. newgrp projectfoo /home/projectfoo
E. chown projectfoo.users /home/projectfoo
You answered this question incorrectly
Explanation: The chgrp command sets the group ownership of a file or directory.
10. You have installed a DHCP server on your Linux machine and edited the configuration file. What else must you do before it will give out ip addresses?
A. reboot
B. Put fixed-addresses in the configuration for each client.
C. service dhcp begin
D. touch /var/lib/dhcp/dhcpd.leases
E. All of the above
You answered this question incorrectly
Explanation: You must touch the /var/lib/dhcp/dhcpd.leases file in order to get DHCP to begin giving out ip addresses.
11. How do you enable quotas on a partition in /etc/fstab?
A. Add the enforcequotas option.
B. You don’t. Quotas are turned on automatically when you install the quota rpm.
C. Add the quota option.
D. Add the usrquota and grpquota options.
E. You put a 1 in the last column.
You answered this question incorrectly
Explanation: To enable quotas on a partition you put the userquota and groupquota option in the options section for the partition in /etc/fstab.
12. 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
13. You are configuring a Linux DHCP server. You have it setup and working (as Linux clients are getting ip addresses from the DHCP server fine) but some Windows 95 clients are not getting ip addresses properly from your DHCP server. What do you need to do?
A. route add -host 255.255.255.255 dev eth0
B. route add -net 255.255.255.255 dev eth0
C. service dhcp restart
D. touch /var/state/leases
E. Windows 95 is not compatible with a Linux DHCP server.
You answered this question incorrectly
Explanation: Windows 95 insists that the DHCPOFFER messages be sent to 255.255.255.255. Linux will send them to the broadcast address instead. Adding a host entry for the host 255.255.255.255 will trick Linux into working with the Windows 95 clients.
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 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.
16. How can you see the kernel routing table?
A. netstat -Route
B. netstat -rn
C. netstat -an
D. route show default gw
E. netstat
You answered this question incorrectly
Explanation: The netstat -rn command shows the kernel routing table.
17. How can a user set up their own crontab entry?
A. vi ~/.crontab
B. cp /etc/crontab .
C. crontab -v
D. crontab -e
E. cron -edit
You answered this question incorrectly
Explanation: The crontab -e command is used to edit your own crontab.
18. 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.
19. You want to compile a new kernel. You have already compiled the kernel and modules. How do you install the modules?
A. make modules_install
B. make install
C. make modules
D. make install_modules
E. make bzImage
You answered this question incorrectly
Explanation: The first thing you should do in the /usr/src/linux-2.4 directory is
make mrproper
Then, 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
20. 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.
21. 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.
22. 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.
23. 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.
24. Your IP address is 10.0.0.2 and your subnet mask is 255.255.255.0. You have one ethernet card. You want to set your default gateway to be 10.0.0.1. Which of the following is the correct syntax to accomplish this?
A. route add default 10.0.0.1 eth0
B. route add default gw 10.0.0.1 dev eth0
C. route add default gw 10.0.0.2 eth0 255.255.255.0
D. route add default gw 10.0.0.2 /dev/eth0 255.255.255.0
E. route add default gw 10.0.0.2 255.255.255.0
You answered this question incorrectly
Explanation: A and B don’t set the proper subnet mask. C is correct. D’s syntax is wrong. E’s syntax is wrong.
25. 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.*
26. 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.
27. 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.
28. 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.
29. Which options to chmod allow read access to all but only allow write and execute access to the owner?
A. chmod 777 filename
B. chmod 700 filename
C. chmod 744 filename
D. chmod 447 filename
E. chmod 775 filename
You answered this question incorrectly
Explanation: A is wrong because it allows read write and execute to everyone. B is wrong because it does not allow read access to everyone. C is correct. D is wrong because it allows write acess to everyone. E is wrong because it allows write access to the group.
30. 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.
31. 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.
32. Where are kernel modules stored assuming you are using kernel version 2.4.16-9?
A. /lib/redhat/modules/2.4.16-9
B. /lib
C. /lib/modules/2.4.16-9
D. /lib/modules
E. /usr/lib/modules/
You answered this question incorrectly
Explanation: kernel modules are stored in /lib/modules/.
33. Sendmail is an example of a(n):?
A. MTA
B. MUA
C. MDA
D. MLA
E. All of the above
You answered this question incorrectly
Explanation: Only A is correct. Sendmail is an MTA
34. 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.
35. 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.
36. 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.
37. What file contains the configuration for the Network Time Protocol server?
A. /etc/ntp.conf
B. /etc/xntp.conf
C. /etc/NTP
D. /etc/time.conf
E. /etc/timeserver.conf
You answered this question incorrectly
Explanation: The XNTP server is configured in /etc/ntp.conf.
38. 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.
39. 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.
40. 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.
41. How can you create a file of all your ISA plug and play device settings?
A. pnpdump > isapnp.conf
B. pnpdump -isa > isapnp.conf
C. isadump > isapnp.conf
D. cat /proc/isa
E. isaadmin --dump >isapnp.conf
You answered this question incorrectly
Explanation: Only A is right
42. What command allows you to switch from using Gnome to using KDE?
A. Xconfigurator
B. Xsetup
C. Xwindowconfig
D. switchdesk
E. videocfg
You answered this question incorrectly
Explanation: The switchdesk program allows you to switch desktop enviornments and window managers.
43. 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.
foo:
44. 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.)
45. You have created a /home/projectx directory with the owner of projectx and a group of projectx. How can you set its permissions so that all files created in this directory are owned by the projectx group?
A. chown projectx.projextx /home/projectx
B. chgrp projectx /home/projectx
C. chmod 755 /home/projectx
D. chmod g-s /home/projectx
E. chmod g+s /home/projectx
You answered this question incorrectly
Explanation: The
46. How can you find out which ports are being used?
A. ifconfig -a
B. netstat -a
C. netstat -rn
D. ports
E. cat /etc/services
You answered this question incorrectly
Explanation: The netstat -a command shows you which ports are in use. A is wrong because the ifconfig -a command tells you about your NICs. B is correct. C is wrong because it shows you the routing table. D doesn’t do anyting. E just shows you the etc/ports file.
47. You install Linux and reboot your machine and you see only L instead of the expected LILO. What is wrong?
A. Lilo did not load at all.
B. The first stage boot loader loaded but not the second stage.
C. The descriptor table is corrupt.
D. The second stage boot loader loaded at an incorrect address
E. Nothing is wrong.
You answered this question incorrectly
Explanation: When Lilo just displays an L then the first stage boot loader loaded but not the second stage. If the second stage loaded then LILO would print an LI. When the descriptor table is corrupt LILO prints LIL-. When the second stage boot loader is loaded at an incorrect address LILO prints LIL?.
48. 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.
49. 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
50. 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
51. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in /etc/fstab)?
A. mount /dev/floppy /mnt/fd0
B. mount -t iso9660 /dev/fd0 /mnt/floppy
C. mount -t vfat /dev/fd0 /mnt/floppy
D. mount -t msdos /dev/floppy /mnt/floppy
E. mdir
You answered this question incorrectly
Explanation: A will only work if there is an entry in /etc/fstab. B is wrong because iso9660 is for CDROM’s. C is correct. D is wrong becuase the device should be /dev/fd0 rather than /dev/floppy.
52. 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.
53. What command will map all of the dependencies between modules into a file?
A. modmap
B. depmod -a
C. depmod --rebuild
D. modmap --rebuild
E. modprobe --rebuild
You answered this question incorrectly
Explanation: The depmod -a command finds all the dependcies betwen modules and puts the information in the modules.dep file.
54. 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.
55. What port does the Squid proxy server use by default?
A. 80
B. 1080
C. 3028
D. 3128
E. 8080
You answered this question incorrectly
Explanation: D is right!
56. How can I see what directories are being shared via NFS on a remote host called fileserver?
A. ping fileserver
B. mount -a -t NFS fileserver
C. showmount -e fileserver
D. nfstalk --query fileserver
E. None of the above
You answered this question incorrectly
Explanation: Only C is right!
阅读(2839) | 评论(1) | 转发(0) |