SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
RHCSA
Start Test
Study First
Subjects
:
certifications
,
it-skills
,
rhcsa
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. How can you display all virtual guests after they're connected to a hypervisor?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The htpasswd command can be used to password-protect a web page.
lvdisplay
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
2. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
getsebool -a | grep http
You should never use the -U option because it erases the prior kernel when updating. This leaves you with no fallback kernel should your system not boot properly.
The chmod command is used to change the permissions of files and directories. The chown command is used to change the ownership of files and directories.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
3. To create a RAID or LVM partition using kickstart
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The nfsstat command can be used to view NFS statistics.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
4. Are additional packages besides httpd required for a secure website - If so - what are they?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The -t nfs option is used with the mount command to mount NFS resources.
5. What is the name of the package used to install an FTP?
You can use the -q option to query an installed package. Combining grep and the -qa options - you can search among all installed packages on the system.
The du and df commands are used to view available space on the system.
The vsftpd package is used to install an FTP server.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
6. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. There are four types of DNS servers. Name them.
entering rescue mode and repairing the problem.
The four types of DNS servers are master - slave - caching-only - and forwarding.
If you shrink a volume group or logical volume - there is a chance you could lose data depending on how much you shrink the volume.
VNC is used to control a remote desktop session.
8. What commands can you use to add a client machine to an LDAP server?
You can use the authconfig-tui command or the authconfig command.
mkfs.ext4
Network address translation (NAT) maintains a table that allows the use of multiple internal IP addresses to a multiple public IP address (called address translation). It can also be used for one-to-one or one-to-many relationships as well.
export one or all resources
9. What file is used to maintain custom parameters for the kernel during system boot?
Use the top command to view CPU and memory usage.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
By defining a %post section - you can run scripts after a kickstart installation is complete.
10. What happens to jobs that are scheduled to run while the system is off?
lvdisplay
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
When the system starts up again - the cron service will run any jobs that were missed while the system was off. On Red Hat Enterprise Linux 5 - the anacron service handles this functionality.
11. What command can you use to validate the syntax of the Apache config file?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
service httpd configtest
A gateway is used as an entry and exit point for a subnet on a network. To contact hosts outside your subnet - you need to pass through a gateway.
getfacl
12. What is the /etc/vsftpd/user_list file used for?
The user_list file can be used to limit which users have access to the FTP server.
The /var/log/audit/audit.log file contains all policy violations.
chkconfig sshd off
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
13. Editing the /etc/xinetd.d/tftp file and enabling the service are the same as running the chkconfig tftp on command. Both of these actions...
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
have the same effect
alternatives --config mta
This is actually a trick question because the answer could go either way. In this chapter - we discussed only software RAID setups - in which case the answer is no. If - however - you were using a hardware RAID 5 - the answer would be yes.
14. What three commands can you use to help verify that the DNS server is functioning properly?
The dig - host - and ping commands can be used to test DNS server functionality.
have the same effect
Typing the mail or mutt command allows you to read mail from the command line.
support for TCP Wrappers
15. What port on the firewall needs to be open for the TFTP server to work?
kickstart installations to work
The TFTP server uses UDP port 69.
chcon
Yum repository config files (.repo files) are located in the /etc/yum.repos.d directory. You can also make direct entries into the main /etc/yum.conf file.
16. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Sendmail
The TFTP server uses UDP port 69.
17. Does a DHCP server allow reserved IP addresses - If so - how?
load balancing and redundancy benefits
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the resize2fs command to grow a file system.
You can use the authconfig-tui command or the authconfig command.
18. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
The rndc utility provides a method for managing the DNS server remotely and securely.
The install.log.syslog file contains messages that are generated during the installation. If you run into trouble during the installation - this is a good place to start.
support TCP Wrappers
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
19. Most boot issues can be resolved by...
The du and df commands are used to view available space on the system.
entering rescue mode and repairing the problem.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
20. What are the three different types of RAID described in this chapter?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
chkconfig sshd off
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
21. What is the main config file for the DHCP service?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Use the yum groupinstall command to install multiple packages in a single group at once.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Use the resize2fs command to grow a file system.
22. How can virtual hosts be used?
LUKS encryption
The user_list file can be used to limit which users have access to the FTP server.
If you are a hosting company or want to run multiple websites/applications from a single IP address - you can use virtual hosts to accomplish this.
The smbpasswd command is used to create Samba users.
23. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
browseable option
cat /proc/mdstat
This command reboots virtual guest Client04.
24. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
25. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The three utilities are: route - ping - and nslookup.
ifconfig
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The smbstatus command shows you currently mounted Samba resources.
26. What is the /var/lib/nfs/etab file used for?
useradd -c "Jr Admin" George
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
generates errors under Red Hat Enterprise Linux 6
choose which mode you'd like it to operate in
27. Can you put your /boot partition on a RAID 5 array?
When the system enters into runlevel 2 - the rsyslog service has a priority of 12 when starting. Anything with a lower number (or the same number and lower first letter) starts before the rsyslog service.
This is actually a trick question because the answer could go either way. In this chapter - we discussed only software RAID setups - in which case the answer is no. If - however - you were using a hardware RAID 5 - the answer would be yes.
You must ensure that the /boot/grub/grub.conf file has the new entry for your newly updated kernel to be able to boot into it.
This chapter described tdbsm and smbpasswd back-end authentication.
28. What option at the GRUB boot menu can you use to append something to a kernel?
support TCP Wrappers
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
load balancing and redundancy benefits
You can use the -q option to query an installed package. Combining grep and the -qa options - you can search among all installed packages on the system.
29. It is possible to run scripts before a kickstart installation. This is done by...
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The dig - host - and ping commands can be used to test DNS server functionality.
defining a %pre section although it is rarely used
The TFTP server uses UDP port 69.
30. What command-line program can you use to check your mail?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
browseable option
By default - Squid runs on port 3128.
Typing the mail or mutt command allows you to read mail from the command line.
31. What command can be used to view the queue for at service jobs?
atq
If you shrink a volume group or logical volume - there is a chance you could lose data depending on how much you shrink the volume.
schedule one-time-only jobs
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
32. What command can you use to check the config file of the DHCP server?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The tcpdump command is used to monitor network connections on different interfaces.
service dhcpd configtest
33. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The firewall rule is inserted into the fifth line of the iptables rules and opens up TCP port 80 (for the HTTP service) on the firewall to allow incoming connections.
support for TCP Wrappers
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Network address translation (NAT) maintains a table that allows the use of multiple internal IP addresses to a multiple public IP address (called address translation). It can also be used for one-to-one or one-to-many relationships as well.
34. What are the three items that make up LVM?
This is actually a trick question because the answer could go either way. In this chapter - we discussed only software RAID setups - in which case the answer is no. If - however - you were using a hardware RAID 5 - the answer would be yes.
The virsh command is used to manage virtual guests.
Physical volumes - volume groups - and logical volumes.
The smbstatus command shows you currently mounted Samba resources.
35. The ____________ is available for each share.
browseable option
A soft limit acts like an alarm - signaling you when you are reaching your limit. If you don't specify a grace period - the soft limit is the max. A hard limit is required only when a grace period exists. It is the max limit you can hit before your g
LUKS encryption
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
36. Can you name three utilities that can be used for network or DNS client troubleshooting?
rpmbuild
The three utilities are: route - ping - and nslookup.
serve both files and printers to users
The virsh command is used to manage virtual guests.
37. What two ports should be opened on the firewall for the FTP server to function properly?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
You must open TCP ports 20 and 21 for the FTP server to function properly.
The virsh command is used to manage virtual guests.
Version 2 is the latest and most secure version of SSH.
38. What is the difference between an A record and a PTR record?
service named configtest
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
39. Before you work with ACLs - what do you need to do to the file system?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The rpm command can operate in install - query - or verify modes.
The firewall rule is inserted into the fifth line of the iptables rules and opens up TCP port 80 (for the HTTP service) on the firewall to allow incoming connections.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
40. What command is used to create an RPM package?
entering rescue mode and repairing the problem.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
rpmbuild
The nfsstat command can be used to view NFS statistics.
41. What command can you use to test the config files before starting the DNS service?
service named configtest
browseable option
A gateway is used as an entry and exit point for a subnet on a network. To contact hosts outside your subnet - you need to pass through a gateway.
This command reboots virtual guest Client04.
42. What command is used to create a user for Samba?
The /etc/fstab file.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The smbpasswd command is used to create Samba users.
A virtual host is a way of hosting multiple sites using a single IP address.
43. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
enabled by default
generates errors under Red Hat Enterprise Linux 6
44. A PXE server eases the automation process but isn't required for...
kickstart installations to work
The service command is used to start - stop - and manage system services.
getsebool
The SSH service is almost always installed by default in Red Hat. It uses TCP port 22 - and this port is open on the default firewall rules.
45. Which remote management service is installed by default?Can you name the port that it uses?
You should never allow remote root access. Should your root account become compromised and you use the same password - someone could gain access to all your systems. You also don't want the most powerful user of your system (with no accountability) l
alternatives --config mta
The rndc utility provides a method for managing the DNS server remotely and securely.
The SSH service is almost always installed by default in Red Hat. It uses TCP port 22 - and this port is open on the default firewall rules.
46. What is a swap? Is it created as a partition or device file?
A swap is scratch space on your file system used as virtual memory. A swap can be created as a partition or a device file.
Use the resize2fs command to grow a file system.
The firewall rule is inserted into the fifth line of the iptables rules and opens up TCP port 80 (for the HTTP service) on the firewall to allow incoming connections.
The vsftpd package is used to install an FTP server.
47. SSH does...
support TCP Wrappers
Yum repository config files (.repo files) are located in the /etc/yum.repos.d directory. You can also make direct entries into the main /etc/yum.conf file.
By default - the rndc utility listens on port 953.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
48. You must dictate the ____________ you want allocated to your virtual machine when you create it.
semanage boolean -l
Apache uses port 80 for HTTP and port 443 for HTTPS.
amount of RAM
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
49. What file needs to be edited so that the system will mount a file system at boot time?
getsebool
The /etc/fstab file.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
halts the system
50. GRUB has three stages. Can you name them?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Stage 1: During this stage - the primary bootloader is read into memory by the BIOS from the MBR. Stage 1.5: During this stage - the bootloader is read into memory by the stage 1 bootloader (only if necessary). Stage 2: During this stage - the bootlo
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
getfacl