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. What option is used to allow anonymous uploads to the FTP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
You must open TCP ports 20 and 21 for the FTP server to function properly.
This chapter described tdbsm and smbpasswd back-end authentication.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
2. What is the main config file for the DHCP service?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Enforcing during installation
run on any port you'd like (provided that port is available)
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
3. What command can you use to manage system services?
Use the route command with the add option to create a static route.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The service command is used to start - stop - and manage system services.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
4. What file needs to be edited so that the system will mount a file system at boot time?
VNC is used to control a remote desktop session.
chkconfig—list
The tcpdump command is used to monitor network connections on different interfaces.
The /etc/fstab file.
5. What is a gateway used for on a network?
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.
Use the route command with the add option to create a static route.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
6. The at command is used to ____________. The cron service handles reoccurring system jobs.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
schedule one-time-only jobs
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
7. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
alternatives --config mta
Physical volumes - volume groups - and logical volumes.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
8. What option needs to be used with the mount command to mount an NFS resource?
The -t nfs option is used with the mount command to mount NFS resources.
Enforcing during installation
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
PAM is used as a modular way to leverage security. In this chapter - the main function we discussed was for managing password policies and complexity.
9. What command do you use to change the permissions on a file or directory - To change ownership?
kickstart installations to work
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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.
10. What command can be used to view the queue for at service jobs?
used for kickstart and/or network installs
run on any port you'd like (provided that port is available)
atq
The anonymous_enable=YES option in the main config file allows anonymous uploads.
11. What is SSH used for?
Public/private key authentication provides an additional layer of security because you need the correct key instead of just knowing someone's password. Passwords combined with public/private keys take the security one additional step.
SSH is used for secure remote management of Linux systems.
useradd -c "Jr Admin" George
Use the resize2fs command to grow a file system.
12. How can you display all virtual guests after they're connected to a hypervisor?
The TFTP server uses UDP port 69.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
service named configtest
user's home directory in the /etc/skel directory
13. The exportfs command is used to...
The three utilities are: route - ping - and nslookup.
export one or all resources
mkfs.ext4
amount of RAM
14. What command can you use to monitor and troubleshoot network connections?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
This chapter described tdbsm and smbpasswd back-end authentication.
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
The tcpdump command is used to monitor network connections on different interfaces.
15. Can you name three utilities that can be used for network or DNS client troubleshooting?
browseable option
The smbpasswd command is used to create Samba users.
The three utilities are: route - ping - and nslookup.
By defining a %post section - you can run scripts after a kickstart installation is complete.
16. 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...
have the same effect
A user's home directory is created under the /home directory.
mkfs.ext4
A virtual host is a way of hosting multiple sites using a single IP address.
17. What command can be used to easily list all the options in the FTP main config file?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
A virtual host is a way of hosting multiple sites using a single IP address.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
SELinux Booleans provide restrictions to different aspects of a service.
18. To export directories as resources - what file needs to be edited?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
19. In Red Hat Enterprise Linux 6 - the default for SELinux is _______________ (which can be changed after the installation completes). For Red Hat Enterprise Linux 5 - you were able to choose what mode you wanted SELinux to start in.
Enforcing during installation
The rndc utility provides a method for managing the DNS server remotely and securely.
Use the route command with the add option to create a static route.
rpmbuild
20. How can you verify the status of the SSH service after the system has booted?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
service sshd statuts
getfacl
rpcbind service
21. What port does NFS use by default?
The yum and rpm commands are used for package management.
The service command is used to start - stop - and manage system services.
The NFS service uses TCP port 2049 by default.
You must open TCP ports 20 and 21 for the FTP server to function properly.
22. What critical step must you take after updating the kernel to a newer version?
You can use the authconfig-tui command or the authconfig command.
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.
LUKS encryption
service named configtest
23. What is the /var/lib/nfs/etab file used for?
By default - the rndc utility listens on port 953.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
service httpd configtest
The virsh command is used to manage virtual guests.
24. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
support for TCP Wrappers
via the command line
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
support TCP Wrappers
25. What commands can you use to add a client machine to an LDAP server?
This chapter described tdbsm and smbpasswd back-end authentication.
You can use the authconfig-tui command or the authconfig command.
kickstart installations to work
Sendmail
26. What are the five required directories when building RPMS?
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.
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 last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
27. It is possible to run scripts before a kickstart installation. This is done by...
Using the chcon command - you can change the context of a file to work with Apache.
The SMTP service runs on TCP port 110.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
defining a %pre section although it is rarely used
28. What option at the GRUB boot menu can you use to append something to a kernel?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
29. What command can you use to test connectivity to another host?
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
The ping command can be used to verify connectivity to another host.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
30. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
31. What is the biggest benefit to using LVM over basic partitions?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
You have the flexibility to resize and add new volumes on the fly. With basic partitions - any time that you want to make a change - you need to destroy the partition and create it again.
32. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
chcon
rpcbind service
alternatives --config mta
The DHCP server listens on port 67 by default.
33. What is the /etc/vsftpd/user_list file used for?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The lastlog and faillog commands are used to view user login-related events?
The user_list file can be used to limit which users have access to the FTP server.
load balancing and redundancy benefits
34. Most boot issues can be resolved by...
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
entering rescue mode and repairing the problem.
By default - the rndc utility listens on port 953.
Physical volumes - volume groups - and logical volumes.
35. What port must be opened on the firewall for DNS?
This chapter described tdbsm and smbpasswd back-end authentication.
support for TCP Wrappers
DNS uses port 53.
lvdisplay
36. Where are Yum repository config files located?
SSH is used for secure remote management of Linux systems.
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.
chkconfig xinetd --list
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
37. The package selection screen allows you to install any software you want during the installation process as long as...
browseable option
you have access to the correct packages or repositories.
The TFTP server uses UDP port 69.
enabled by default
38. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
Public/private key authentication provides an additional layer of security because you need the correct key instead of just knowing someone's password. Passwords combined with public/private keys take the security one additional step.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
39. What are the side effects of shrinking a volume group or logical volume?
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.
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.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
40. What are the three different types of RAID described in this chapter?
For Apache to run a secure site - the mod_ssl package is required to be installed.
The yum and rpm commands are used for package management.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The /etc/fstab file.
41. What command can you use to get information about logical volumes?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
lvdisplay
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
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.
42. 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
43. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
44. There are four types of DNS servers. Name them.
The -t nfs option is used with the mount command to mount NFS resources.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Typing the mail or mutt command allows you to read mail from the command line.
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.
45. What benefit does a web proxy provide to your network?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The htpasswd command can be used to password-protect a web page.
amount of RAM
46. What command can you use to create a file system?
LUKS encryption
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.
getsebool
mkfs.ext4
47. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
generates errors under Red Hat Enterprise Linux 6
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
You must open TCP ports 20 and 21 for the FTP server to function properly.
used for kickstart and/or network installs
48. What command can you use to view NFS statistics?
The nfsstat command can be used to view NFS statistics.
useradd -c "Jr Admin" George
The two main config files are master.cf and main.cf.
The yum and rpm commands are used for package management.
49. What command and option do you use to view the description of Boolean values?
semanage boolean -l
via the command line
The service command is used to start - stop - and manage system services.
The DHCP server listens on port 67 by default.
50. What command can you use to create your own repositories?
createrepo
service httpd configtest
The user_list file can be used to limit which users have access to the FTP server.
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.