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. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
serve both files and printers to users
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
2. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
This command reboots virtual guest Client04.
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.
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
service sshd statuts
3. What option would you use to query an installed package using the rpm command?
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.
You can use the remove or erase options with yum to remove a package.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
4. What is the biggest benefit to using LVM over basic partitions?
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.
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.
used for kickstart and/or network installs
A user's home directory is created under the /home directory.
5. Explain the difference between soft and hard limits in quotas.
6. What does the rdnc-confgen command do?
load balancing and redundancy benefits
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Use the route command with the add option to create a static route.
The DHCP server listens on port 67 by default.
7. A service needs to have _______________ to be able to use it.
rpmbuild
The TFTP server uses UDP port 69.
support for TCP Wrappers
export one or all resources
8. What is a swap? Is it created as a partition or device file?
The rpm command can operate in install - query - or verify modes.
The dig - host - and ping commands can be used to test DNS server functionality.
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
9. What command can you use to create your own repositories?
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.
The yum and rpm commands are used for package management.
The NFS service uses TCP port 2049 by default.
createrepo
10. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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 for TCP Wrappers
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.
11. What is the xinetd service used for?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
repquota
This command reboots virtual guest Client04.
semanage boolean -l
12. What two ports should be opened on the firewall for the FTP server to function properly?
via the command line
The two main config files are master.cf and main.cf.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
You must open TCP ports 20 and 21 for the FTP server to function properly.
13. What is the top command used for?
SELinux provides enhanced granular security for the Linux operating system.
Use the top command to view CPU and memory usage.
load balancing and redundancy benefits
getsebool
14. 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 lftp command can be used on a client to test FTP server connections.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
15. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The /var/log/audit/audit.log file contains all policy violations.
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. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
17. What three components are needed to fully automate a kickstart installation?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The lastlog and faillog commands are used to view user login-related events?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
18. What is the name of the package that allows you to install VNC?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
rpmbuild
support for TCP Wrappers
repquota
19. Which remote management service is installed by default?Can you name the port that it uses?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
A user's home directory is created under the /home directory.
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.
When you exit the parted utility - all your changes are automatically written to disk. With the fdisk command - you need to manually write your changes to disk for them to take effect.
20. To create a RAID or LVM partition using kickstart
ifconfig
Use the top command to view CPU and memory usage.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The mount command lists all currently mounted file systems.
21. Before you work with ACLs - what do you need to do to the file system?
Sendmail
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The tcpdump command is used to monitor network connections on different interfaces.
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
22. What option is used to allow anonymous uploads to the FTP server?
schedule one-time-only jobs
user's home directory in the /etc/skel directory
The anonymous_enable=YES option in the main config file allows anonymous uploads.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
23. How would you view all Boolean options for the HTTP service?
By default - the rndc utility listens on port 953.
The three utilities are: route - ping - and nslookup.
getsebool -a | grep http
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.
24. What are the side effects of shrinking a volume group or logical volume?
you have access to the correct packages or repositories.
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
25. Most boot issues can be resolved by...
SELinux provides enhanced granular security for the Linux operating system.
entering rescue mode and repairing the problem.
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.
repquota
26. What is the default port that Squid runs on?
By default - Squid runs on port 3128.
getsebool
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 smbstatus command shows you currently mounted Samba resources.
27. 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.
cat /proc/mdstat
Use the yum groupinstall command to install multiple packages in a single group at once.
The smbpasswd command is used to create Samba users.
28. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
amount of RAM
Use the yum groupinstall command to install multiple packages in a single group at once.
support for TCP Wrappers
29. Samba servers can...
This command reboots virtual guest Client04.
The NFS service uses TCP port 2049 by default.
serve both files and printers to users
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
30. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
generates errors under Red Hat Enterprise Linux 6
chkconfig sshd off
31. What command can you use to test the config files before starting the DNS service?
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.
service named configtest
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
32. How can virtual hosts be used?
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 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.
DNS uses port 53.
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.
33. What two commands are used for package management?
By default - the rndc utility listens on port 953.
The yum and rpm commands are used for package management.
useradd -c "Jr Admin" George
The service command is used to start - stop - and manage system services.
34. What port does the rndc utility listen on by default?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Use the setgid flag to create the appropriate permissions (chmod 2770).
By default - the rndc utility listens on port 953.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
35. Where are Yum repository config files located?
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.
The htpasswd command can be used to password-protect a web page.
The two main config files are master.cf and main.cf.
generates errors under Red Hat Enterprise Linux 6
36. What is the name of the package used to install an FTP?
The -t nfs option is used with the mount command to mount NFS resources.
The lastlog and faillog commands are used to view user login-related events?
ifconfig
The vsftpd package is used to install an FTP server.
37. What is the benefit of using public/private key authentication?
38. Does a DHCP server allow reserved IP addresses - If so - how?
The /var/log/audit/audit.log file contains all policy violations.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
39. What is the superblock used for?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The smbpasswd command is used to create Samba users.
40. What are the three different types of RAID described in this chapter?
A virtual host is a way of hosting multiple sites using a single IP address.
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
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
41. Do you need to write changes to the disk when using the parted command? What about fdisk?
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.
rpmbuild
The DHCP server listens on port 67 by default.
When you exit the parted utility - all your changes are automatically written to disk. With the fdisk command - you need to manually write your changes to disk for them to take effect.
42. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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.
43. What port does NFS use by default?
The smbstatus command shows you currently mounted Samba resources.
The NFS service uses TCP port 2049 by default.
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
44. What command can you use to validate the syntax of the Apache config file?
service httpd configtest
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
By default - the rndc utility listens on port 953.
The DHCP server listens on port 67 by default.
45. What command and option can you use to enable a service to start on boot?
When you exit the parted utility - all your changes are automatically written to disk. With the fdisk command - you need to manually write your changes to disk for them to take effect.
The vsftpd package is used to install an FTP server.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
enabled by default
46. SSH does...
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
support TCP Wrappers
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The mount command lists all currently mounted file systems.
47. What are the three items that make up LVM?
schedule one-time-only jobs
Physical volumes - volume groups - and logical volumes.
VNC is used to control a remote desktop session.
Use the route command with the add option to create a static route.
48. GRUB has three stages. Can you name them?
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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
alternatives --config mta
49. What critical step must you take after updating the kernel to a newer version?
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.
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.
chcon
DNS uses port 53.
50. What port must be opened on the firewall for DNS?
you have access to the correct packages or repositories.
DNS uses port 53.
have the same effect
cat /proc/mdstat