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 port does NFS use by default?
Use the yum groupinstall command to install multiple packages in a single group at once.
The NFS service uses TCP port 2049 by default.
VNC is used to control a remote desktop session.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
2. What is a gateway used for on a network?
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.
choose which mode you'd like it to operate in
The -t nfs option is used with the mount command to mount NFS resources.
amount of RAM
3. What command can you use to validate the syntax of the Apache config file?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
service httpd configtest
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
load balancing and redundancy benefits
4. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
The htpasswd command can be used to password-protect a web page.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
5. Which log file is used to keep track of policy violations?
The vsftpd package is used to install an FTP server.
user's home directory in the /etc/skel directory
The /var/log/audit/audit.log file contains all policy violations.
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.
6. A service needs to have _______________ to be able to use it.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
support for TCP Wrappers
The /etc/fstab file.
7. What is the rndc utility used for?
By default - the rndc utility listens on port 953.
The rndc utility provides a method for managing the DNS server remotely and securely.
getfacl
you have access to the correct packages or repositories.
8. What port does the DHCP server listen on by default?
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 last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The DHCP server listens on port 67 by default.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
9. What is the name of the section used to run scripts after a kickstart installation?
Use the yum groupinstall command to install multiple packages in a single group at once.
The print option is used with both the fdisk and parted commands to display the current partition tables.
By defining a %post section - you can run scripts after a kickstart installation is complete.
load balancing and redundancy benefits
10. What is the superblock used for?
cat /proc/mdstat
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
lvdisplay
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.
11. What protocols are used with Dovecot?
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
12. What command can you use to test the config files before starting the DNS service?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The yum and rpm commands are used for package management.
service named configtest
13. What port does the rndc utility listen on by default?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
By default - the rndc utility listens on port 953.
The SMTP service runs on TCP port 110.
14. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
15. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
By default - Squid runs on port 3128.
rpcbind service
service dhcpd configtest
Using the chcon command - you can change the context of a file to work with Apache.
16. Place all files you want added to a _______________ during creation.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
17. There are four types of DNS servers. Name them.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
18. 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.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
cat /proc/mdstat
used for kickstart and/or network installs
19. What happens to jobs that are scheduled to run while the system is off?
cat /proc/mdstat
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
You can use the remove or erase options with yum to remove a package.
20. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
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.
rpcbind service
The /var/log/audit/audit.log file contains all policy violations.
21. How can you verify the status of the SSH service after the system has booted?
have the same effect
The lastlog and faillog commands are used to view user login-related events?
service sshd statuts
Use the route command with the add option to create a static route.
22. What command can you use to query Boolean values?
repquota
The three utilities are: route - ping - and nslookup.
support TCP Wrappers
getsebool
23. What happens if you call the command from question 3 with the -c option after it has already been run?
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Use the resize2fs command to grow a file system.
24. What command displays your current interfaces and IP address?
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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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.
ifconfig
25. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
user's home directory in the /etc/skel directory
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
support for TCP Wrappers
26. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
load balancing and redundancy benefits
27. Samba servers can...
serve both files and printers to users
rpmbuild
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
By default - the rndc utility listens on port 953.
28. The package selection screen allows you to install any software you want during the installation process as long as...
The user_list file can be used to limit which users have access to the FTP server.
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.
you have access to the correct packages or repositories.
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.
29. SSH does...
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
support TCP Wrappers
30. What command can you use to create a new SSL certificate?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
31. What is SSH used for?
DNS uses port 53.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
SSH is used for secure remote management of Linux systems.
The smbpasswd command is used to create Samba users.
32. What port does the SMTP service run on?
The SMTP service runs on TCP port 110.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the ps command to view processes and their CPU usage.
Using the chcon command - you can change the context of a file to work with Apache.
33. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
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.
service dhcpd configtest
alternatives --config mta
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.
34. What command can you use to create your own repositories?
createrepo
Use the yum groupinstall command to install multiple packages in a single group at once.
The two main config files are master.cf and main.cf.
The rpm command can operate in install - query - or verify modes.
35. How can you list all services on the system to tell whether they will boot during startup?
chkconfig—list
halts the system
Use the route command with the add option to create a static route.
getsebool
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 htpasswd command can be used to password-protect a web page.
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 using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
37. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
via the command line
setsebool -P nfs_export_all_rw=1
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
38. What two commands are special for dealing with user login events?
You can use the remove or erase options with yum to remove a package.
The lastlog and faillog commands are used to view user login-related events?
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 lftp command can be used on a client to test FTP server connections.
39. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
enabled by default
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.
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.
40. What port must be opened on the firewall for DNS?
By default - the rndc utility listens on port 953.
The SMTP service runs on TCP port 110.
DNS uses port 53.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
41. What directory is used to represent the virtual file system created by the kernel?
getfacl
getsebool -a | grep http
You must open TCP ports 20 and 21 for the FTP server to function properly.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
42. How would you go about creating a static route?
Use the route command with the add option to create a static route.
The print option is used with both the fdisk and parted commands to display the current partition tables.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Using the chcon command - you can change the context of a file to work with Apache.
43. What is the format of the /etc/shadow file?
run on any port you'd like (provided that port is available)
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The TFTP server uses UDP port 69.
The smbstatus command shows you currently mounted Samba resources.
44. What is the top command used for?
load balancing and redundancy benefits
Use the top command to view CPU and memory usage.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
45. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
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.
Sendmail
Enforcing during installation
46. Do you need to write changes to the disk when using the parted command? What about fdisk?
Use the top command to view CPU and memory usage.
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.
Physical volumes - volume groups - and logical volumes.
By defining a %post section - you can run scripts after a kickstart installation is complete.
47. What command can you use to check the config file of the DHCP server?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
service dhcpd configtest
48. How would you disable SELinux protection for NFS - allowing shares to be read/write?
setsebool -P nfs_export_all_rw=1
For Apache to run a secure site - the mod_ssl package is required to be installed.
The user_list file can be used to limit which users have access to the FTP server.
By default - Squid runs on port 3128.
49. Most boot issues can be resolved by...
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
entering rescue mode and repairing the problem.
halts the system
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.
50. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183