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 does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The dig - host - and ping commands can be used to test DNS server functionality.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
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.
2. 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.
have the same effect
The three utilities are: route - ping - and nslookup.
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.
3. What file needs to be edited so that the system will mount a file system at boot time?
The /etc/fstab file.
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The -t nfs option is used with the mount command to mount NFS resources.
4. What is PAM used for?
The TFTP server uses UDP port 69.
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.
service httpd configtest
The mount command lists all currently mounted file systems.
5. Which log file is used to keep track of policy violations?
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.
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.
The /var/log/audit/audit.log file contains all policy violations.
6. Where are Yum repository config files located?
kickstart installations to work
The service command is used to start - stop - and manage system services.
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
7. The exportfs command is used to...
service httpd configtest
By default - Squid runs on port 3128.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
export one or all resources
8. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Use the setgid flag to create the appropriate permissions (chmod 2770).
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
defining a %pre section although it is rarely used
9. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The smbpasswd command is used to create Samba users.
support TCP Wrappers
used for kickstart and/or network installs
support for TCP Wrappers
10. What command do you use to change the permissions on a file or directory - To change ownership?
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.
export one or all resources
The rpm command can operate in install - query - or verify modes.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
11. GRUB has three stages. Can you name them?
The two main config files are master.cf and main.cf.
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.
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
support for TCP Wrappers
12. What option at the GRUB boot menu can you use to append something to a kernel?
service httpd configtest
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
13. What command can you use to create a file system?
Apache uses port 80 for HTTP and port 443 for HTTPS.
mkfs.ext4
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
createrepo
14. 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
15. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
16. What does the partprobe command do?
SELinux Booleans provide restrictions to different aspects of a service.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
halts the system
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
17. Which version of SSH should you use?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
For Apache to run a secure site - the mod_ssl package is required to be installed.
Version 2 is the latest and most secure version of SSH.
18. What option would you use to query an installed package using the rpm command?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
getsebool
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.
getfacl
19. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Physical volumes - volume groups - and logical volumes.
You must open TCP ports 20 and 21 for the FTP server to function properly.
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.
20. What command is used to create a user for Samba?
rpmbuild
support for TCP Wrappers
The smbpasswd command is used to create Samba users.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
21. What is the difference between an A record and a PTR record?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
via the command line
browseable option
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
22. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
23. How can virtual hosts be used?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
24. SSH does...
support TCP Wrappers
useradd -c "Jr Admin" George
By default - the rndc utility listens on port 953.
A virtual host is a way of hosting multiple sites using a single IP address.
25. What command and options can you use to update the time?
setsebool -P nfs_export_all_rw=1
kickstart installations to work
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
26. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
A virtual host is a way of hosting multiple sites using a single IP address.
The smbpasswd command is used to create Samba users.
Enforcing during installation
chkconfig—list
27. 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
28. What two commands are special for dealing with user login events?
cat /proc/mdstat
The lastlog and faillog commands are used to view user login-related events?
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.
service httpd configtest
29. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The print option is used with both the fdisk and parted commands to display the current partition tables.
serve both files and printers to users
ifconfig
30. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The -t nfs option is used with the mount command to mount NFS resources.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
31. What file is used to maintain custom parameters for the kernel during system boot?
schedule one-time-only jobs
used for kickstart and/or network installs
Use the ps command to view processes and their CPU usage.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
32. 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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
You must open TCP ports 20 and 21 for the FTP server to function properly.
cat /proc/mdstat
33. The firewall service is...
repquota
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
enabled by default
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.
34. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The tcpdump command is used to monitor network connections on different interfaces.
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.
amount of RAM
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
35. What command can you use to test the config files before starting the DNS service?
service named configtest
service dhcpd configtest
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
36. What command can you use to monitor and troubleshoot network connections?
support for TCP Wrappers
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.
amount of RAM
The tcpdump command is used to monitor network connections on different interfaces.
37. The at command is used to ____________. The cron service handles reoccurring system jobs.
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.
schedule one-time-only jobs
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.
38. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
generates errors under Red Hat Enterprise Linux 6
SSH is used for secure remote management of Linux systems.
39. What commands can you use to add a client machine to an LDAP server?
You can use the authconfig-tui command or the authconfig command.
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.
DNS uses port 53.
40. What is NAT - How is it used?
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 chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Use the top command to view CPU and memory usage.
41. What three components are needed to fully automate a kickstart installation?
The dig - host - and ping commands can be used to test DNS server functionality.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The rpm command can operate in install - query - or verify modes.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
42. What is the default port that Squid runs on?
The three utilities are: route - ping - and nslookup.
Sendmail
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
43. There are four types of DNS servers. Name them.
amount of RAM
The four types of DNS servers are master - slave - caching-only - and forwarding.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The rpm command can operate in install - query - or verify modes.
44. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The mount command lists all currently mounted file systems.
The nfsstat command can be used to view NFS statistics.
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.
45. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
you have access to the correct packages or repositories.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The NFS service uses TCP port 2049 by default.
46. Which file shows you all the client IP addresses?
The rndc utility provides a method for managing the DNS server remotely and securely.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
load balancing and redundancy benefits
lvdisplay
47. How can you display all virtual guests after they're connected to a hypervisor?
getsebool
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Apache uses port 80 for HTTP and port 443 for HTTPS.
48. What is the name of the section used to run scripts after a kickstart installation?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The mount command lists all currently mounted file systems.
By defining a %post section - you can run scripts after a kickstart installation is complete.
By default - Squid runs on port 3128.
49. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
You add your action to the end of the /home/user01/.bashrc file.
Typing the mail or mutt command allows you to read mail from the command line.
50. What command can you use to manage system services?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The rndc utility provides a method for managing the DNS server remotely and securely.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The service command is used to start - stop - and manage system services.