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. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
The four types of DNS servers are master - slave - caching-only - and forwarding.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
defining a %pre section although it is rarely used
This chapter described tdbsm and smbpasswd back-end authentication.
2. What three commands can you use to help verify that the DNS server is functioning properly?
chkconfig sshd off
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 dig - host - and ping commands can be used to test DNS server functionality.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
3. 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.
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.
useradd -c "Jr Admin" George
chkconfig sshd off
4. The ____________ is available for each share.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
run on any port you'd like (provided that port is available)
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
browseable option
5. What are the three modes in which the rpm command can operate?
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.
The du and df commands are used to view available space on the system.
The rpm command can operate in install - query - or verify modes.
6. Can you put your /boot partition on a RAID 5 array?
semanage boolean -l
lvdisplay
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.
generates errors under Red Hat Enterprise Linux 6
7. What critical step must you take after updating the kernel to a newer version?
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 partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
8. What does it mean if you ping a host and you receive the response Destination Unreachable?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
service dhcpd configtest
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
9. How would you install a group of packages all at a single time?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The service command is used to start - stop - and manage system services.
Use the top command to view CPU and memory usage.
Use the yum groupinstall command to install multiple packages in a single group at once.
10. What happens if you call the command from question 3 with the -c option after it has already been run?
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
getsebool -a | grep http
This chapter described tdbsm and smbpasswd back-end authentication.
11. Can you name three utilities that can be used for network or DNS client troubleshooting?
You can use the authconfig-tui command or the authconfig command.
The vsftpd package is used to install an FTP server.
The three utilities are: route - ping - and nslookup.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
12. GRUB has three stages. Can you name them?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The smbstatus command shows you currently mounted Samba resources.
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
generates errors under Red Hat Enterprise Linux 6
13. What command would you use to create a group - to add the user George to the group?
service named configtest
The NFS service uses TCP port 2049 by default.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
14. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
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 -t nfs option is used with the mount command to mount NFS resources.
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.
repquota
15. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The -t nfs option is used with the mount command to mount NFS resources.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Sendmail
alternatives --config mta
16. There are four types of DNS servers. Name them.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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 last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Sendmail
17. What command can be used to view the queue for at service jobs?
Enforcing during installation
atq
The three utilities are: route - ping - and nslookup.
Use the route command with the add option to create a static route.
18. What command do you use to report information on quota usage?
The three utilities are: route - ping - and nslookup.
repquota
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
choose which mode you'd like it to operate in
19. How can you list all services on the system to tell whether they will boot during startup?
choose which mode you'd like it to operate in
Version 2 is the latest and most secure version of SSH.
The yum and rpm commands are used for package management.
chkconfig—list
20. What is the /etc/vsftpd/user_list file used for?
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
support for TCP Wrappers
The user_list file can be used to limit which users have access to the FTP server.
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.
21. You must dictate the ____________ you want allocated to your virtual machine when you create it.
generates errors under Red Hat Enterprise Linux 6
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
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.
amount of RAM
22. 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.
The rndc utility provides a method for managing the DNS server remotely and securely.
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 defining a %post section - you can run scripts after a kickstart installation is complete.
23. What is a gateway used for on a network?
getsebool -a | grep http
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 user_list file can be used to limit which users have access to the FTP server.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
24. What is the benefit to using centralized authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
25. Can you name the two commands that can be used to view the free space on the system?
The three utilities are: route - ping - and nslookup.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
chkconfig sshd off
The du and df commands are used to view available space on the system.
26. How can you change the security context of a directory to work with Apache?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
rpcbind service
alternatives --config mta
Using the chcon command - you can change the context of a file to work with Apache.
27. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
28. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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 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.
SSH is used for secure remote management of Linux systems.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
29. What are the two config files for Postfix called?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
30. What is the point of using SELinux?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
This command reboots virtual guest Client04.
SELinux provides enhanced granular security for the Linux operating system.
The SMTP service runs on TCP port 110.
31. A PXE server eases the automation process but isn't required for...
schedule one-time-only jobs
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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
kickstart installations to work
32. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
lvdisplay
A large warning message appears indicating that the key doesn't match the host you are connecting to. You have to remove the key/host pair from the known_hosts file to proceed.
The NFS service uses TCP port 2049 by default.
33. Which log file is used to keep track of policy violations?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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
service named configtest
The /var/log/audit/audit.log file contains all policy violations.
34. How can virtual hosts be used?
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 yum and rpm commands are used for package management.
The /var/log/audit/audit.log file contains all policy violations.
SELinux Booleans provide restrictions to different aspects of a service.
35. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
mkfs.ext4
The lftp command can be used on a client to test FTP server connections.
rpcbind service
36. What benefit does a web proxy provide to your network?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Sendmail
The htpasswd command can be used to password-protect a web page.
37. What option is used with both the fdisk and parted commands to display the current partition tables?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The print option is used with both the fdisk and parted commands to display the current partition tables.
amount of RAM
The /var/log/audit/audit.log file contains all policy violations.
38. What command-line program can you use to check your mail?
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 htpasswd command can be used to password-protect a web page.
rpmbuild
Typing the mail or mutt command allows you to read mail from the command line.
39. What two ports should be opened on the firewall for the FTP server to function properly?
You must open TCP ports 20 and 21 for the FTP server to function properly.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The du and df commands are used to view available space on the system.
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.
40. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
ifconfig
serve both files and printers to users
The /var/log/audit/audit.log file contains all policy violations.
41. 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.
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 two main config files are master.cf and main.cf.
have the same effect
42. What command can you use to get information about logical volumes?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
lvdisplay
defining a %pre section although it is rarely used
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
43. What command can you use to test the config files before starting the DNS service?
Typing the mail or mutt command allows you to read mail from the command line.
The DHCP server listens on port 67 by default.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
service named configtest
44. What is NAT - How is it used?
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.
lvdisplay
setsebool -P nfs_export_all_rw=1
service httpd configtest
45. To create a RAID or LVM partition using kickstart
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
A virtual host is a way of hosting multiple sites using a single IP address.
46. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
By default - Squid runs on port 3128.
used for kickstart and/or network installs
Use the yum groupinstall command to install multiple packages in a single group at once.
via the command line
47. Does a DHCP server allow reserved IP addresses - If so - how?
mkfs.ext4
The TFTP server uses UDP port 69.
Use the route command with the add option to create a static route.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
48. Where are Yum repository config files located?
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
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 lastlog and faillog commands are used to view user login-related events?
49. What command can you use to view NFS statistics?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The nfsstat command can be used to view NFS statistics.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
50. What command can you use to manage system services?
generates errors under Red Hat Enterprise Linux 6
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Use the ps command to view processes and their CPU usage.
The service command is used to start - stop - and manage system services.