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 the Apache web server run on - What about HTTPS?
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
2. What are SELinux Booleans?
kickstart installations to work
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
SELinux Booleans provide restrictions to different aspects of a service.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
3. Explain the difference between soft and hard limits in quotas.
4. Can you name three utilities that can be used for network or DNS client troubleshooting?
atq
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The three utilities are: route - ping - and nslookup.
5. How can you change the security context of a directory to work with Apache?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Enforcing during installation
Using the chcon command - you can change the context of a file to work with Apache.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
6. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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.
schedule one-time-only jobs
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
7. Which version of SSH should you use?
The /etc/fstab file.
The ping command can be used to verify connectivity to another host.
cat /proc/mdstat
Version 2 is the latest and most secure version of SSH.
8. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
via the command line
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
9. What command can you use to create a new SSL certificate?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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.
The user_list file can be used to limit which users have access to the FTP server.
ifconfig
10. Most boot issues can be resolved by...
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 lastlog and faillog commands are used to view user login-related events?
entering rescue mode and repairing the problem.
The two main config files are master.cf and main.cf.
11. How would you go about creating a static route?
Use the route command with the add option to create a static route.
The ping command can be used to verify connectivity to another host.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
12. What is the default port that Squid runs on?
By default - Squid runs on port 3128.
You add your action to the end of the /home/user01/.bashrc file.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
13. What is the rndc utility used for?
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 rndc utility provides a method for managing the DNS server remotely and securely.
The user_list file can be used to limit which users have access to the FTP server.
The ping command can be used to verify connectivity to another host.
14. By default - what is the path to a user's home directory?
15. What command can you use to create a password-protected page?
halts the system
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The htpasswd command can be used to password-protect a web page.
16. 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.
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.
atq
DNS uses port 53.
17. What three commands can you use to help verify that the DNS server is functioning properly?
The dig - host - and ping commands can be used to test DNS server functionality.
service dhcpd configtest
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The NFS service uses TCP port 2049 by default.
18. What happens if you call the command from question 3 with the -c option after it has already been run?
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 smbstatus command shows you currently mounted Samba resources.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
You must open TCP ports 20 and 21 for the FTP server to function properly.
19. What command disables the SSH service from running when the system boots?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
chkconfig sshd off
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
20. A service needs to have _______________ to be able to use it.
used for kickstart and/or network installs
Apache uses port 80 for HTTP and port 443 for HTTPS.
service httpd configtest
support for TCP Wrappers
21. What command can you use to create a file system?
enabled by default
chcon
SELinux provides enhanced granular security for the Linux operating system.
mkfs.ext4
22. 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.
enabled by default
kickstart installations to work
The ping command can be used to verify connectivity to another host.
23. What is VNC?
VNC is used to control a remote desktop session.
The /etc/fstab file.
The htpasswd command can be used to password-protect a web page.
The DHCP server listens on port 67 by default.
24. What command can you use to view the current ACL on a file?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
getfacl
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The four types of DNS servers are master - slave - caching-only - and forwarding.
25. What command and option do you use to view the description of Boolean values?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
semanage boolean -l
Apache uses port 80 for HTTP and port 443 for HTTPS.
entering rescue mode and repairing the problem.
26. What command can be used to easily list all the options in the FTP main config file?
browseable option
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
A virtual host is a way of hosting multiple sites using a single IP address.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
27. What command can you use to query information from the kernel about RAID arrays?
Use the route command with the add option to create a static route.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
useradd -c "Jr Admin" George
cat /proc/mdstat
28. What is the virsh command used for?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The virsh command is used to manage virtual guests.
The yum and rpm commands are used for package management.
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.
29. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
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.
This chapter described tdbsm and smbpasswd back-end authentication.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
30. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
useradd -c "Jr Admin" George
A virtual host is a way of hosting multiple sites using a single IP address.
Apache uses port 80 for HTTP and port 443 for HTTPS.
31. Which log file is used to keep track of policy violations?
The /var/log/audit/audit.log file contains all policy violations.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The rndc utility provides a method for managing the DNS server remotely and securely.
A virtual host is a way of hosting multiple sites using a single IP address.
32. What client-side command can you use to test your FTP server connection?
Use the resize2fs command to grow a file system.
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.
The lftp command can be used on a client to test FTP server connections.
33. What are the side effects of shrinking a volume group or logical volume?
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.
alternatives --config mta
rpcbind service
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
34. What command can you use to check the config file of the DHCP server?
The three utilities are: route - ping - and nslookup.
The vsftpd package is used to install an FTP server.
The service command is used to start - stop - and manage system services.
service dhcpd configtest
35. The ____________ is available for each share.
browseable option
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Enforcing during installation
This command reboots virtual guest Client04.
36. GRUB has three stages. Can you name them?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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 can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
This command reboots virtual guest Client04.
37. What command is used to create an RPM package?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
rpmbuild
38. What command can you use to validate the syntax of the Apache config file?
support TCP Wrappers
load balancing and redundancy benefits
service httpd configtest
Use the top command to view CPU and memory usage.
39. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
chkconfig sshd off
semanage boolean -l
LUKS encryption
40. What is the name of the package used to install an FTP?
The vsftpd package is used to install an 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.
Using the chcon command - you can change the context of a file to work with Apache.
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
41. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
By default - Squid runs on port 3128.
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
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
42. What command can you use to manage system services?
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
have the same effect
The service command is used to start - stop - and manage system services.
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.
43. What is the format of the /etc/shadow file?
you have access to the correct packages or repositories.
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
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
44. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
chkconfig xinetd --list
45. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
you have access to the correct packages or repositories.
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 nfsstat command can be used to view NFS statistics.
46. To export directories as resources - what file needs to be edited?
47. What are the three items that make up LVM?
The mount command lists all currently mounted file systems.
run on any port you'd like (provided that port is available)
Physical volumes - volume groups - and logical volumes.
browseable option
48. What is the main config file for the DHCP service?
The two main config files are master.cf and main.cf.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The lastlog and faillog commands are used to view user login-related events?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
49. What are the two config files for Postfix called?
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.
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.
The two main config files are master.cf and main.cf.
A virtual host is a way of hosting multiple sites using a single IP address.
50. Before you work with quotas - what do you need to do to the file system?
defining a %pre section although it is rarely used
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Version 2 is the latest and most secure version of SSH.