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 name of the section used to run scripts after a kickstart installation?
SELinux Booleans provide restrictions to different aspects of a service.
chkconfig sshd off
By defining a %post section - you can run scripts after a kickstart installation is complete.
The vsftpd package is used to install an FTP server.
2. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
SELinux provides enhanced granular security for the Linux operating system.
The /etc/fstab file.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
3. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
generates errors under Red Hat Enterprise Linux 6
via the command line
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
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
4. What protocols are used with Dovecot?
Typing the mail or mutt command allows you to read mail from the command line.
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
5. What is PAM used for?
This chapter described tdbsm and smbpasswd back-end authentication.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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.
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.
6. What two commands are special for dealing with user login events?
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
The lastlog and faillog commands are used to view user login-related events?
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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
7. What is the /var/lib/nfs/etab file used for?
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 SMTP service runs on TCP port 110.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Enforcing during installation
8. The firewall service is...
chkconfig xinetd --list
Use the top command to view CPU and memory usage.
enabled by default
Use the route command with the add option to create a static route.
9. 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...
A user's home directory is created under the /home directory.
kickstart installations to work
defining a %pre section although it is rarely used
have the same effect
10. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
cat /proc/mdstat
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The two main config files are master.cf and main.cf.
11. What command can you use to test the config files before starting the DNS service?
useradd -c "Jr Admin" George
service named configtest
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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.
12. What are the three items that make up LVM?
Physical volumes - volume groups - and logical volumes.
useradd -c "Jr Admin" George
LUKS encryption
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
13. What options with the yum command would you use to remove a package?
You can use the remove or erase options with yum to remove a package.
The yum and rpm commands are used for package management.
ifconfig
Version 2 is the latest and most secure version of SSH.
14. What does the rdnc-confgen command do?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
15. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
The du and df commands are used to view available space on the system.
The yum and rpm commands are used for package management.
enabled by default
16. What command do you use to change the permissions on a file or directory - To change ownership?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
setsebool -P nfs_export_all_rw=1
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.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
17. Which file shows you all the client IP addresses?
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
You can use the authconfig-tui command or the authconfig command.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
18. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
choose which mode you'd like it to operate in
alternatives --config mta
A virtual host is a way of hosting multiple sites using a single IP address.
Use the ps command to view processes and their CPU usage.
19. Which remote management service is installed by default?Can you name the port that it uses?
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.
The /etc/fstab file.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
chkconfig—list
20. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
By defining a %post section - you can run scripts after a kickstart installation is complete.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
serve both files and printers to users
21. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
You add your action to the end of the /home/user01/.bashrc file.
load balancing and redundancy benefits
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
22. It is possible to run scripts before a kickstart installation. This is done by...
ifconfig
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.
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.
defining a %pre section although it is rarely used
23. 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
24. What command can you use to create a password-protected page?
The vsftpd package is used to install an FTP server.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The htpasswd command can be used to password-protect a web page.
rpcbind service
25. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
26. What port does the SMTP service run on?
browseable option
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
The SMTP service runs on TCP port 110.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
27. What command and option do you use to view the description of Boolean values?
The service command is used to start - stop - and manage system services.
A user's home directory is created under the /home directory.
semanage boolean -l
By defining a %post section - you can run scripts after a kickstart installation is complete.
28. What are the two config files for Postfix called?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
cat /proc/mdstat
The two main config files are master.cf and main.cf.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
29. What happens to jobs that are scheduled to run while the system is off?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
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.
halts the system
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.
30. 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
31. What command can you use to create a new SSL certificate?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The DHCP server listens on port 67 by default.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The four types of DNS servers are master - slave - caching-only - and forwarding.
32. The ____________ is available for each share.
getsebool
browseable option
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
33. What command (and options) can be used to create a user named George with the description "Jr Admin"?
generates errors under Red Hat Enterprise Linux 6
useradd -c "Jr Admin" George
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
34. What is the rndc utility used for?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
VNC is used to control a remote desktop session.
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
35. What two ports should be opened on the firewall for the FTP server to function properly?
Typing the mail or mutt command allows you to read mail from the command line.
You add your action to the end of the /home/user01/.bashrc file.
You must open TCP ports 20 and 21 for the FTP server to function properly.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
36. What command can be used to view the queue for at service jobs?
This command reboots virtual guest Client04.
Use the resize2fs command to grow a file system.
atq
The rndc utility provides a method for managing the DNS server remotely and securely.
37. What is the biggest benefit to using LVM over basic partitions?
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.
By default - the rndc utility listens on port 953.
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.
lvdisplay
38. What command disables the SSH service from running when the system boots?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
chkconfig sshd off
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
39. 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
40. What does it mean if you ping a host and you receive the response Destination Unreachable?
service named configtest
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The smbpasswd command is used to create Samba users.
41. What is the name of the package used to install an FTP?
support TCP Wrappers
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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 vsftpd package is used to install an FTP server.
42. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
This chapter described tdbsm and smbpasswd back-end authentication.
service sshd statuts
The /etc/fstab file.
43. 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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
SELinux provides enhanced granular security for the Linux operating system.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
44. What does the testparm command do?
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 TFTP server uses UDP port 69.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Using the chcon command - you can change the context of a file to work with Apache.
45. Does a DHCP server allow reserved IP addresses - If so - how?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The tcpdump command is used to monitor network connections on different interfaces.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Apache uses port 80 for HTTP and port 443 for HTTPS.
46. To create a RAID or LVM partition using kickstart
setsebool -P nfs_export_all_rw=1
For Apache to run a secure site - the mod_ssl package is required to be installed.
The TFTP server uses UDP port 69.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
47. What option at the GRUB boot menu can you use to append something to a kernel?
kickstart installations to work
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
Use the resize2fs command to grow a file system.
You can use the authconfig-tui command or the authconfig command.
48. What command can you use to check the config file of the DHCP server?
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.
service dhcpd configtest
This command reboots virtual guest Client04.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
49. What is the xinetd service used for?
Enforcing during installation
service httpd configtest
The user_list file can be used to limit which users have access to the FTP server.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
50. What is a swap? Is it created as a partition or device file?
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.
serve both files and printers to users
The NFS service uses TCP port 2049 by default.
getfacl