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 is the last rule in the iptables file?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
2. What are the two config files for Postfix called?
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.
export one or all resources
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.
3. There are four types of DNS servers. Name them.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
This chapter described tdbsm and smbpasswd back-end authentication.
The four types of DNS servers are master - slave - caching-only - and forwarding.
4. What is the name of the package that allows you to install VNC?
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.
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 print option is used with both the fdisk and parted commands to display the current partition tables.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
5. What happens to jobs that are scheduled to run while the system is off?
you have access to the correct packages or repositories.
entering rescue mode and repairing the problem.
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
6. How can you list all services on the system to tell whether they will boot during startup?
The lastlog and faillog commands are used to view user login-related events?
chkconfig—list
service dhcpd configtest
mkfs.ext4
7. What command and option do you use to view the description of Boolean values?
enabled by default
Sendmail
semanage boolean -l
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
8. What are the three different types of RAID described in this chapter?
The du and df commands are used to view available space on the system.
lvdisplay
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
service sshd statuts
9. Can you name the two commands that can be used to view the free space on the system?
By defining a %post section - you can run scripts after a kickstart installation is complete.
The du and df commands are used to view available space on the system.
Use the resize2fs command to grow a file system.
The four types of DNS servers are master - slave - caching-only - and forwarding.
10. The ____________ is available for each share.
The virsh command is used to manage virtual guests.
The du and df commands are used to view available space on the system.
browseable option
getsebool -a | grep http
11. Before you work with quotas - what do you need to do to the file system?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
atq
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Typing the mail or mutt command allows you to read mail from the command line.
12. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
The dig - host - and ping commands can be used to test DNS server functionality.
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
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 /var/lib/nfs/etab file is used to keep track of currently exported resources.
13. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. What command can you use to create your own repositories?
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
createrepo
lvdisplay
15. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
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 DHCP server listens on port 67 by default.
support TCP Wrappers
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
16. What command would you use to create a group - to add the user George to the group?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
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.
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
17. What command can you use to create a password-protected page?
The mount command lists all currently mounted file systems.
The htpasswd command can be used to password-protect a web page.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
support TCP Wrappers
18. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
The two main config files are master.cf and main.cf.
The print option is used with both the fdisk and parted commands to display the current partition tables.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
19. What command do you use to report information on quota usage?
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 TFTP server uses UDP port 69.
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
20. What three commands can you use to help verify that the DNS server is functioning properly?
setsebool -P nfs_export_all_rw=1
The two main config files are master.cf and main.cf.
useradd -c "Jr Admin" George
The dig - host - and ping commands can be used to test DNS server functionality.
21. 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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
Enforcing during installation
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
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.
22. What port must be opened on the firewall for DNS?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
DNS uses port 53.
The rndc utility provides a method for managing the DNS server remotely and securely.
23. What is the virsh command used for?
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.
Enforcing during installation
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The virsh command is used to manage virtual guests.
24. How would you go about creating a static route?
The lftp command can be used on a client to test FTP server connections.
By default - Squid runs on port 3128.
The ping command can be used to verify connectivity to another host.
Use the route command with the add option to create a static route.
25. How would you view all Boolean options for the HTTP service?
This chapter described tdbsm and smbpasswd back-end authentication.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
getsebool -a | grep http
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.
26. 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
27. What command can be used to easily list all the options in the FTP main config file?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
chcon
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
28. What does the partprobe command do?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The dig - host - and ping commands can be used to test DNS server functionality.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
29. What is PAM used for?
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.
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
used for kickstart and/or network installs
30. GRUB has three stages. Can you name them?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
A user's home directory is created under the /home directory.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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
31. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
generates errors under Red Hat Enterprise Linux 6
32. Can you put your /boot partition on a RAID 5 array?
The dig - host - and ping commands can be used to test DNS server functionality.
atq
choose which mode you'd like it to operate in
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.
33. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The SMTP service runs on TCP port 110.
The NFS service uses TCP port 2049 by default.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
34. What is a virtual host?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
A virtual host is a way of hosting multiple sites using a single IP address.
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.
The ping command can be used to verify connectivity to another host.
35. 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.
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 add your action to the end of the /home/user01/.bashrc file.
chkconfig sshd off
36. What protocols are used with Dovecot?
The print option is used with both the fdisk and parted commands to display the current partition tables.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
37. How can you display all virtual guests after they're connected to a hypervisor?
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
38. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The service command is used to start - stop - and manage system services.
The vsftpd package is used to install an FTP server.
39. What port on the firewall needs to be open for the TFTP server to work?
VNC is used to control a remote desktop session.
semanage boolean -l
A user's home directory is created under the /home directory.
The TFTP server uses UDP port 69.
40. 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
41. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
Enforcing during installation
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
42. What command disables the SSH service from running when the system boots?
chkconfig sshd off
This chapter described tdbsm and smbpasswd back-end authentication.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The ping command can be used to verify connectivity to another host.
43. What is the point of using SELinux?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Enforcing during installation
Sendmail
SELinux provides enhanced granular security for the Linux operating system.
44. 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
45. What client-side command can you use to test your FTP server connection?
Use the top command to view CPU and memory usage.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
chcon
The lftp command can be used on a client to test FTP server connections.
46. What does the rdnc-confgen command do?
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 nfsstat command can be used to view NFS statistics.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
amount of RAM
47. How can you verify the status of the SSH service after the system has booted?
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.
service sshd statuts
createrepo
The smbstatus command shows you currently mounted Samba resources.
48. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
createrepo
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.
support for TCP Wrappers
Physical volumes - volume groups - and logical volumes.
49. To create a RAID or LVM partition using kickstart
ifconfig
The SMTP service runs on TCP port 110.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
load balancing and redundancy benefits
50. What is the format of the /etc/shadow file?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.