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. Place all files you want added to a _______________ during creation.
2. 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...
3. There are four types of DNS servers. Name them.
Physical volumes - volume groups - and logical volumes.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
4. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
amount of RAM
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.
browseable option
5. How would you disable SELinux protection for NFS - allowing shares to be read/write?
SELinux provides enhanced granular security for the Linux operating system.
browseable option
setsebool -P nfs_export_all_rw=1
Using the chcon command - you can change the context of a file to work with Apache.
6. What command can you use to view NFS statistics?
The nfsstat command can be used to view NFS statistics.
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.
atq
choose which mode you'd like it to operate in
7. What two ports should be opened on the firewall for the FTP server to function properly?
Use the top command to view CPU and memory usage.
A user's home directory is created under the /home directory.
You must open TCP ports 20 and 21 for the FTP server to function properly.
Sendmail
8. What command do you use to report information on quota usage?
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.
The mount command lists all currently mounted file systems.
kickstart installations to work
repquota
9. What is the xinetd service used for?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
getsebool -a | grep http
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
10. Most boot issues can be resolved by...
The tcpdump command is used to monitor network connections on different interfaces.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
entering rescue mode and repairing the problem.
used for kickstart and/or network installs
11. A slave DNS server provides...
SELinux provides enhanced granular security for the Linux operating system.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
cat /proc/mdstat
load balancing and redundancy benefits
12. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
choose which mode you'd like it to operate in
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The four types of DNS servers are master - slave - caching-only - and forwarding.
13. What three components are needed to fully automate a kickstart installation?
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.
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.
entering rescue mode and repairing the problem.
14. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
Typing the mail or mutt command allows you to read mail from the command line.
alternatives --config mta
The NFS service uses TCP port 2049 by default.
have the same effect
15. Which file shows you all the client IP addresses?
schedule one-time-only jobs
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
getsebool
16. 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.
The rpm command can operate in install - query - or verify modes.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
17. How can you list all services on the system to tell whether they will boot during startup?
chkconfig—list
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The vsftpd package is used to install an FTP server.
setsebool -P nfs_export_all_rw=1
18. What command and options can you use to update the time?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
LUKS encryption
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP 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.
19. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
support TCP Wrappers
service sshd statuts
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
20. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
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.
You add your action to the end of the /home/user01/.bashrc file.
Using the chcon command - you can change the context of a file to work with Apache.
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.
21. What happens to jobs that are scheduled to run while the system is off?
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
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.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
22. What option at the GRUB boot menu can you use to append something to a kernel?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
choose which mode you'd like it to operate in
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
23. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The nfsstat command can be used to view NFS statistics.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
generates errors under Red Hat Enterprise Linux 6
24. 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 dig - host - and ping commands can be used to test DNS server functionality.
By default - the rndc utility listens on port 953.
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.
25. What port does the DHCP server listen on by default?
A user's home directory is created under the /home directory.
The rndc utility provides a method for managing the DNS server remotely and securely.
You add your action to the end of the /home/user01/.bashrc file.
The DHCP server listens on port 67 by default.
26. Which remote management service is installed by default?Can you name the port that it uses?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
serve both files and printers to users
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.
LUKS encryption
27. What happens if a host changes its IP address and the keys don't match?
28. What is the rndc utility used for?
run on any port you'd like (provided that port is available)
generates errors under Red Hat Enterprise Linux 6
The rndc utility provides a method for managing the DNS server remotely and securely.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
29. What are the side effects of shrinking a volume group or logical volume?
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
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 print option is used with both the fdisk and parted commands to display the current partition tables.
30. How can you display all virtual guests after they're connected to a hypervisor?
A virtual host is a way of hosting multiple sites using a single IP address.
This command reboots virtual guest Client04.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
ifconfig
31. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
chkconfig sshd off
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The rpm command can operate in install - query - or verify modes.
32. What is the virsh command used for?
The rndc utility provides a method for managing the DNS server remotely and securely.
The virsh command is used to manage virtual guests.
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
33. What are the three items that make up LVM?
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.
Physical volumes - volume groups - and logical volumes.
The lftp command can be used on a client to test FTP server connections.
rpcbind service
34. What is the name of the section used to run scripts after a kickstart installation?
The ping command can be used to verify connectivity to another host.
The DHCP server listens on port 67 by default.
The /var/log/audit/audit.log file contains all policy violations.
By defining a %post section - you can run scripts after a kickstart installation is complete.
35. What command and option can you use to enable a service to start on boot?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
chkconfig sshd off
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Physical volumes - volume groups - and logical volumes.
36. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The TFTP server uses UDP port 69.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
37. How can you verify the status of the SSH service after the system has booted?
SELinux Booleans provide restrictions to different aspects of a service.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
service named configtest
service sshd statuts
38. What is VNC?
serve both files and printers to users
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
VNC is used to control a remote desktop session.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
39. What happens if you call the command from question 3 with the -c option after it has already been run?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
By default - Squid runs on port 3128.
Physical volumes - volume groups - and logical volumes.
40. What command can you use to test connectivity to another host?
The SMTP service runs on TCP port 110.
The ping command can be used to verify connectivity to another host.
Sendmail
via the command line
41. What is SSH used for?
SELinux provides enhanced granular security for the Linux operating system.
SSH is used for secure remote management of Linux systems.
LUKS encryption
This command reboots virtual guest Client04.
42. What is the benefit to using centralized authentication?
43. Through its main config file - SSH can be configured to...
44. What file is used to maintain custom parameters for the kernel during system boot?
The du and df commands are used to view available space on the system.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Sendmail
45. The ____________ is available for each share.
lvdisplay
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.
browseable option
chcon
46. What is the biggest benefit to using LVM over basic partitions?
Use the yum groupinstall command to install multiple packages in a single group at once.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
getfacl
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.
47. What client-side command can you use to test your FTP server connection?
Use the resize2fs command to grow a file system.
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.
The lftp command can be used on a client to test FTP server connections.
48. Which log file is used to keep track of policy violations?
The /var/log/audit/audit.log file contains all policy violations.
Using the chcon command - you can change the context of a file to work with Apache.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
You can use the remove or erase options with yum to remove a package.
49. What is the /etc/vsftpd/user_list file used for?
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
By default - the rndc utility listens on port 953.
The user_list file can be used to limit which users have access to the FTP server.
The ping command can be used to verify connectivity to another host.
50. What does the partprobe command do?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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
Using the chcon command - you can change the context of a file to work with Apache.