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 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.
The service command is used to start - stop - and manage system services.
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.
2. What is the last rule in the iptables file?
3. What is the benefit to using centralized authentication?
4. What does the rdnc-confgen command do?
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
5. What is the main config file for the DHCP service?
getfacl
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
service dhcpd configtest
rpcbind service
6. Runlevel 0 ___________. Runlevel 6 reboots the system.
The -t nfs option is used with the mount command to mount NFS resources.
halts the system
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.
Using the chcon command - you can change the context of a file to work with Apache.
7. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
rpcbind service
The htpasswd command can be used to password-protect a web page.
generates errors under Red Hat Enterprise Linux 6
atq
8. A PXE server eases the automation process but isn't required for...
useradd -c "Jr Admin" George
schedule one-time-only jobs
kickstart installations to work
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
9. What file is used to maintain custom parameters for the kernel during system boot?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The TFTP server uses UDP port 69.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
user's home directory in the /etc/skel directory
10. Through its main config file - SSH can be configured to...
11. What port does NFS use by default?
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.
browseable option
Apache uses port 80 for HTTP and port 443 for HTTPS.
The NFS service uses TCP port 2049 by default.
12. What command and option do you use to view the description of Boolean values?
have the same effect
The du and df commands are used to view available space on the system.
semanage boolean -l
service httpd configtest
13. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
This command sets the eth1 interface to have a static IP address of 172.168.1.100 with a netmask of 255.255.255.0.
Use the top command to view CPU and memory usage.
14. GRUB has three stages. Can you name them?
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.
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The vsftpd package is used to install an FTP server.
15. What directory is used to represent the virtual file system created by the kernel?
The yum and rpm commands are used for package management.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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.
semanage boolean -l
16. What is the benefit of using public/private key authentication?
17. What options with the yum command would you use to remove a package?
Version 2 is the latest and most secure version of SSH.
Sendmail
The htpasswd command can be used to password-protect a web page.
You can use the remove or erase options with yum to remove a package.
18. What is VNC?
run on any port you'd like (provided that port is available)
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
VNC is used to control a remote desktop session.
useradd -c "Jr Admin" George
19. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
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.
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.
Version 2 is the latest and most secure version of SSH.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
20. Red Hat Enterprise Linux 6 is the only version that officially supports _______
rpmbuild
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The yum and rpm commands are used for package management.
LUKS encryption
21. What are the three different types of RAID described in this chapter?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
LUKS encryption
The yum and rpm commands are used for package management.
22. What three commands can you use to help verify that the DNS server is functioning properly?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
This command sets the eth1 interface to have a static IP address of 172.168.1.100 with a netmask of 255.255.255.0.
getsebool
The dig - host - and ping commands can be used to test DNS server functionality.
23. What port does the SMTP service run on?
SSH is used for secure remote management of Linux systems.
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 SMTP service runs on TCP port 110.
You must open TCP ports 20 and 21 for the FTP server to function properly.
24. What command can you use to check the config file of the DHCP server?
The vsftpd package is used to install an FTP server.
The user_list file can be used to limit which users have access to the FTP server.
service dhcpd configtest
This command sets the eth1 interface to have a static IP address of 172.168.1.100 with a netmask of 255.255.255.0.
25. What option is used to allow anonymous uploads to the FTP server?
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.
Using the chcon command - you can change the context of a file to work with Apache.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
Use the ps command to view processes and their CPU usage.
26. What file needs to be edited so that the system will mount a file system at boot time?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
mkfs.ext4
Use the yum groupinstall command to install multiple packages in a single group at once.
The /etc/fstab file.
27. What is SSH used for?
rpmbuild
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
SSH is used for secure remote management of Linux systems.
28. What does it mean if you ping a host and you receive the response Destination Unreachable?
choose which mode you'd like it to operate in
The lastlog and faillog commands are used to view user login-related events?
Use the resize2fs command to grow a file system.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
29. What is the name of the section used to run scripts after a kickstart installation?
halts the system
support TCP Wrappers
By defining a %post section - you can run scripts after a kickstart installation is complete.
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.
30. What command is used to show all services being controlled by the xinetd daemon?
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.
chkconfig xinetd --list
The lastlog and faillog commands are used to view user login-related events?
halts the system
31. Which file shows you all the client IP addresses?
Enforcing during installation
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
support TCP Wrappers
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
32. Explain the difference between soft and hard limits in quotas.
33. What are the side effects of shrinking a volume group or logical volume?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
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 /etc/fstab file.
34. Before you work with quotas - what do you need to do to the file system?
This chapter described tdbsm and smbpasswd back-end authentication.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
35. What command do you use to report information on quota usage?
The mount command lists all currently mounted file systems.
repquota
The dig - host - and ping commands can be used to test DNS server functionality.
createrepo
36. What happens if you call the command from question 3 with the -c option after it has already been run?
SELinux provides enhanced granular security for the Linux operating system.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
37. What is the virsh command used for?
The virsh command is used to manage virtual guests.
The /var/log/audit/audit.log file contains all policy violations.
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.
By default - Squid runs on port 3128.
38. 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.
LUKS encryption
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Use the ps command to view processes and their CPU usage.
39. By default - what is the path to a user's home directory?
40. What command can you use to create a password-protected page?
The rndc utility provides a method for managing the DNS server remotely and securely.
The htpasswd command can be used to password-protect a web page.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The TFTP server uses UDP port 69.
41. What is the name of the package used to install an FTP?
Enforcing during installation
The rndc utility provides a method for managing the DNS server remotely and securely.
The vsftpd package is used to install an FTP server.
This command reboots virtual guest Client04.
42. What command can you use to query Boolean values?
export one or all resources
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The tcpdump command is used to monitor network connections on different interfaces.
getsebool
43. The ____________ is available for each share.
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.
LUKS encryption
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
browseable option
44. What is the /etc/hosts file used for?
45. What does the testparm command do?
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 testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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.
setsebool -P nfs_export_all_rw=1
46. How would you go about creating a static route?
run on any port you'd like (provided that port is available)
Enforcing during installation
Use the route command with the add option to create a static route.
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
47. To create a RAID or LVM partition using kickstart
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
Kickstart supports both basic and advanced partitioning (RAID/LVM).
DNS uses port 53.
The lastlog and faillog commands are used to view user login-related events?
48. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
getsebool
you have access to the correct packages or repositories.
Enforcing during installation
49. What command can you use to validate the syntax of the Apache config file?
mkfs.ext4
service httpd configtest
The mount command lists all currently mounted file systems.
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.
50. What option would you use to query an installed package using the rpm command?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
getsebool
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.
This command reboots virtual guest Client04.