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. 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...
alternatives --config mta
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
have the same effect
2. By default - what is the path to a user's home directory?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
3. What is the virsh command used for?
The service command is used to start - stop - and manage system services.
The virsh command is used to manage virtual guests.
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.
The vsftpd package is used to install an FTP server.
4. 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
5. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The user_list file can be used to limit which users have access to the FTP server.
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
LUKS encryption
6. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. What command can be used to easily list all the options in the FTP main config file?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Version 2 is the latest and most secure version of SSH.
service httpd configtest
8. What two commands are used for package management?
The yum and rpm commands are used for package management.
Using the chcon command - you can change the context of a file to work with Apache.
ifconfig
The anonymous_enable=YES option in the main config file allows anonymous uploads.
9. How can you verify the status of the SSH service after the system has booted?
service sshd statuts
service dhcpd configtest
kickstart installations to work
alternatives --config mta
10. How would you view all Boolean options for the HTTP service?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
getsebool -a | grep http
11. What are the two types of back-end authentication mechanisms discussed in this chapter?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
This chapter described tdbsm and smbpasswd back-end authentication.
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
12. Which version of SSH should you use?
DNS uses port 53.
Version 2 is the latest and most secure version of SSH.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
schedule one-time-only jobs
13. What option would you use to query an installed package using the rpm command?
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
enabled by default
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.
have the same effect
14. What three components are needed to fully automate a kickstart installation?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
load balancing and redundancy benefits
Use the top command to view CPU and memory usage.
15. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Enforcing during installation
The /etc/fstab file.
serve both files and printers to users
16. 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
17. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
kickstart installations to work
The /etc/fstab file.
createrepo
used for kickstart and/or network installs
18. What are the five required directories when building RPMS?
serve both files and printers to users
lvdisplay
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
service named configtest
19. A service needs to have _______________ to be able to use it.
The smbstatus command shows you currently mounted Samba resources.
rpcbind service
The DHCP server listens on port 67 by default.
support for TCP Wrappers
20. You must dictate the ____________ you want allocated to your virtual machine when you create it.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
amount of RAM
you have access to the correct packages or repositories.
entering rescue mode and repairing the problem.
21. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
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.
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.
rpcbind service
22. What command and options can you use to update the time?
defining a %pre section although it is rarely used
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
rpmbuild
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
23. A PXE server eases the automation process but isn't required for...
kickstart installations to work
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
24. How can you check the currently mounted file systems?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
A virtual host is a way of hosting multiple sites using a single IP address.
The mount command lists all currently mounted file systems.
chkconfig sshd off
25. The firewall service is...
enabled by default
schedule one-time-only jobs
support TCP Wrappers
have the same effect
26. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
service sshd statuts
used for kickstart and/or network installs
A user's home directory is created under the /home directory.
generates errors under Red Hat Enterprise Linux 6
27. Through its main config file - SSH can be configured to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
28. How would you disable SELinux protection for NFS - allowing shares to be read/write?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
have the same effect
setsebool -P nfs_export_all_rw=1
29. There are four types of DNS servers. Name them.
This command reboots virtual guest Client04.
halts the system
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The four types of DNS servers are master - slave - caching-only - and forwarding.
30. What are the three items that make up LVM?
The two main config files are master.cf and main.cf.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Physical volumes - volume groups - and logical volumes.
31. What is the format of the /etc/shadow file?
generates errors under Red Hat Enterprise Linux 6
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
halts the system
32. Can you name three utilities that can be used for network or DNS client troubleshooting?
getsebool -a | grep http
The three utilities are: route - ping - and nslookup.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Using the chcon command - you can change the context of a file to work with Apache.
33. What command is used to create an RPM package?
The lftp command can be used on a client to test FTP server connections.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
rpmbuild
service named configtest
34. GRUB has three stages. Can you name them?
rpmbuild
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.
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
Using the chcon command - you can change the context of a file to work with Apache.
35. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
You can use the remove or erase options with yum to remove a package.
Use the ps command to view processes and their CPU usage.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
36. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The dig - host - and ping commands can be used to test DNS server functionality.
The ping command can be used to verify connectivity to another host.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
37. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
Use the top command to view CPU and memory usage.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
38. What is a swap? Is it created as a partition or device file?
chcon
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
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.
39. What command can be used to view the queue for at service jobs?
chkconfig xinetd --list
have the same effect
atq
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
40. What does it mean if you ping a host and you receive the response Destination Unreachable?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Physical volumes - volume groups - and logical volumes.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
41. To grow a file system
entering rescue mode and repairing the problem.
Use the resize2fs command to grow a file system.
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.
support TCP Wrappers
42. Before you work with quotas - what do you need to do to the file system?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The smbstatus command shows you currently mounted Samba resources.
useradd -c "Jr Admin" George
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.
43. What port does the Apache web server run on - What about HTTPS?
Apache uses port 80 for HTTP and port 443 for HTTPS.
setsebool -P nfs_export_all_rw=1
By default - the rndc utility listens on port 953.
chkconfig sshd off
44. What command can you use to create your own repositories?
The service command is used to start - stop - and manage system services.
createrepo
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The rpm command can operate in install - query - or verify modes.
45. What is the name of the package that allows you to install VNC?
This command reboots virtual guest Client04.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The SMTP service runs on TCP port 110.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
46. What is a gateway used for on a network?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
createrepo
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.
service dhcpd configtest
47. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
rpmbuild
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
chkconfig—list
48. It is possible to run scripts before a kickstart installation. This is done by...
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
defining a %pre section although it is rarely used
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.
49. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
atq
50. What command can you use to view system processes and their CPU usage?
useradd -c "Jr Admin" George
Use the ps command to view processes and their CPU usage.
run on any port you'd like (provided that port is available)
Physical volumes - volume groups - and logical volumes.