Red Hat RHCE certification reference written 56 questions

Source: Internet
Author: User
Tags squid proxy
Red Hat RHCE certification reference 56 Questions, 1. WhatfiledoIedittopreventspecificusersfromaccessinganftpserver? Choosethebestanswer: A./etc/hosts. allowB./etc/hosts. denyC./etc/ftpacessD./etc/ftpusersE./etc/ftpd.

Red Hat RHCE certification references 56 written examination questions,
1. What file do I edit to prevent specific users from accessing an ftp server?
Choose the best answer:
A./etc/hosts. allow
B./etc/hosts. deny
C./etc/ftpacess
D./etc/ftpusers
E./etc/ftpd. conf 2. You have just added a new NFS share to the appropriate file. What must you do to activate the share?
Choose the best answer:
A. reboot
B. exportfs-
C. ndc restart
D. server nfs start
E. mount-

3. What does the-H option do for the dhcpcd program?
Choose the best answer:
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

4. What command will map all of the dependencies between modules into a file?
Choose the best answer:
A. modmap
B. depmod-
C. depmod-rebuild
D. modmap-rebuild
E. modprobe-rebuild

5. What file contains the list of terminals that root is allowed to log?
Choose the best answer:
A./etc/rooterm. conf
B./etc/terminals
C./etc/secure
D./etc/tty. conf
E./etc/securetty

6. How do you install an RPM?
Choose the best answer:
A. rpm-evh packagename. rpm
B. rpm-ivh packagename. rpm
C. rpm-q packagename. rpm
D. rpm-qa *. rpm
E. rpm-ql *. rpm

7. What command will turn off the ftpd service in all runlevels?
Choose the best answer:
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

8. What file wocould you edit to share out a directory via NFS?
Choose the best answer:
A./etc/nfsd. conf
B./etc/nsf
C./etc/fstab
D./etc/exports
E./etc/export. conf

9. How can you see the kernel routing table?
Choose the best answer:
A. netstat-Route
B. netstat-rn
C. netstat-
D. route show default gw
E. netstat

10. Sendmail is an example of a (n ):?
Choose the best answer:
A. MTA
B. MUA
C. MDA
D. MLA
E. All of the above
11. What command can you enter to find out which rpm contains the/etc/foo file?
Choose the best answer:
A. rpm-qa | grep foo
B. rpm-ql/etc/foo
C. rpm-qlf/etc/foo
D. rpm-q-f/etc/foo
E. man foo

12. How can I see what directories are being shared via NFS on a remote host called fileserver?
Choose the best answer:
A. ping fileserver
B. mount-a-t NFS fileserver
C. showmount-e fileserver
D. nfstalk-query fileserver
E. None of the above

13. What command do you use to edit the default grace period for quotas?
Choose the best answer:
A. quotaconfig-g
B. editquota-g
C. quotaconfig-t
D. edquota-t
E. quotaeditor-grace

14. You want to compile a new kernel. You have just run "make dep". What should you do next?
Choose the best answer:
A. make bzImage
B. make dep
C. make clean
D. make mrproper
E. make xconfig

15. What command will create the quota. user and quota. group files for me?
Choose the best answer:
A. quotacheck-avug
B. quotacheck-cugf
C. quotacheck-rugf
D. repquota-u
E. none of the above

16. You want to add a directory to all users paths. What file shocould you edit to do this?
Choose the best answer:
A./etc/sysconfig/profile
B./etc/sysconfig/profile
C./etc/bashrc
D./etc/profile
E./etc/env

17. How can you turn off interface eth1?
Choose the best answer:
A. service network stop
B. service netork stop eth1
C. ifstop eth1
D. ifdown eth1
E. ps-aux | grep eth1 | kill 'awk-f {$1 }'

18. You have Linux installed on a machine and you use LILO as your boot loader. How do you boot into single user mode?
Choose all correct answers:
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.

19. 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?
Choose the best answer:
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.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

20. What command do you use to edit quotas?
Choose the best answer:
A. quotaconfig
B. editquota
C. quotaconfig
D. edquota
E. quotaeditor
21. If you want to allow X-Windows programs from hostB to run on the display on hostA what wocould you need to do?
Choose the best answer:
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.

22. What port does the Squid proxy server use by default?
Choose the best answer:
A. 80
B. 1080
C. 3028
D. 3128.
E. 8080

23. What program can be used to test the smb. conf file for errors?
Choose the best answer:
A. mount
B. test
C. samba-checkparm
D. testparm
E. smbfs

24. What file contains the configuration for the Network Time Protocol server?
Choose the best answer:
A./etc/ntp. conf
B./etc/xntp. conf
C./etc/NTP
D./etc/time. conf
E./etc/timeserver. conf

25. 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?
Choose the best answer:
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

26. What program allows you to acess SMB shares using ftp-like commmands?
Choose the best answer:
A. mount
B. smbftp
C. smbclient
D. smbmount
E. samba

27. What does the-N option do for the dhcpcd program?
Choose the best answer:
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

28. Where are kernel modules stored assuming you are using kernel version 2.4.16-9?
Choose the best answer:
A./lib/RedHat/modules/2.4.16-9
B./lib
C./lib/modules/2.4.16-9
D./lib/modules
E./usr/lib/modules/

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

Choose the best answer:
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

30. What directory contains the DNS zone files?
Choose the best answer:
A./etc/bind/
B./etc/named/
C./etc/bind. d
D./var/named
E./var/bind. d

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.