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. You must dictate the ____________ you want allocated to your virtual machine when you create it.
service named configtest
Enforcing during installation
amount of RAM
repquota
2. What file needs to be edited so that the system will mount a file system at boot time?
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.
service dhcpd configtest
The /etc/fstab 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.
3. What command can you use to create a file system?
chkconfig sshd off
run on any port you'd like (provided that port is available)
mkfs.ext4
By defining a %post section - you can run scripts after a kickstart installation is complete.
4. What options with the yum command would you use to remove a package?
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.
You can use the remove or erase options with yum to remove a package.
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
5. What three protocols can you use to perform network installations?
defining a %pre section although it is rarely used
Network installations can be performed using the HTTP - FTP - and NFS 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.
halts the system
6. 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
7. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
run on any port you'd like (provided that port is available)
service sshd statuts
Physical volumes - volume groups - and logical volumes.
8. What is the xinetd service used for?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The dig - host - and ping commands can be used to test DNS server functionality.
The du and df commands are used to view available space on the system.
Apache uses port 80 for HTTP and port 443 for HTTPS.
9. Runlevel 0 ___________. Runlevel 6 reboots the system.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
semanage boolean -l
The rndc utility provides a method for managing the DNS server remotely and securely.
halts the system
10. What two ports should be opened on the firewall for the FTP server to function properly?
The /var/log/audit/audit.log file contains all policy violations.
mkfs.ext4
You must open TCP ports 20 and 21 for the FTP server to function properly.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
11. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
You can use the remove or erase options with yum to remove a package.
browseable option
You add your action to the end of the /home/user01/.bashrc file.
12. How can you display all virtual guests after they're connected to a hypervisor?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
13. 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.
alternatives --config mta
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
By default - the rndc utility listens on port 953.
14. What are the three items that make up LVM?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
rpcbind service
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Physical volumes - volume groups - and logical volumes.
15. Before you work with ACLs - what do you need to do to the file system?
The DHCP server listens on port 67 by default.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
choose which mode you'd like it to operate in
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
16. What command can you use to test connectivity to another host?
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 ping command can be used to verify connectivity to another host.
have the same effect
Physical volumes - volume groups - and logical volumes.
17. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The service command is used to start - stop - and manage system services.
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.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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.
18. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
SELinux provides enhanced granular security for the Linux operating system.
chkconfig sshd off
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
19. What are the five required directories when building RPMS?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Using the chcon command - you can change the context of a file to work with Apache.
20. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
used for kickstart and/or network installs
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
21. 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
22. The package selection screen allows you to install any software you want during the installation process as long as...
Use the yum groupinstall command to install multiple packages in a single group at once.
LUKS encryption
you have access to the correct packages or repositories.
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
23. What directory is used to represent the virtual file system created by the kernel?
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.
Use the ps command to view processes and their CPU usage.
The dig - host - and ping commands can be used to test DNS server functionality.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
24. 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
25. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
The vsftpd package is used to install an FTP server.
semanage boolean -l
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
26. What command is used to create an RPM package?
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.
rpmbuild
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
27. A service needs to have _______________ to be able to use it.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
support for TCP Wrappers
The SMTP service runs on TCP port 110.
By default - the rndc utility listens on port 953.
28. What command can you use to query Boolean values?
getsebool
service dhcpd configtest
The /var/log/audit/audit.log file contains all policy violations.
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.
29. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
getsebool -a | grep http
generates errors under Red Hat Enterprise Linux 6
The virsh command is used to manage virtual guests.
30. Samba servers can...
Use the ps command to view processes and their CPU usage.
VNC is used to control a remote desktop session.
Using the chcon command - you can change the context of a file to work with Apache.
serve both files and printers to users
31. GRUB has three stages. Can you name them?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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 four types of DNS servers are master - slave - caching-only - and forwarding.
The nfsstat command can be used to view NFS statistics.
32. The ____________ is available for each share.
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
Use the ps command to view processes and their CPU usage.
atq
33. What happens if you call the command from question 3 with the -c option after it has already been run?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
service dhcpd configtest
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
34. What are the three different types of RAID described in this chapter?
The yum and rpm commands are used for package management.
getsebool
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Use the setgid flag to create the appropriate permissions (chmod 2770).
35. A slave DNS server provides...
Network installations can be performed using the HTTP - FTP - and NFS protocols.
load balancing and redundancy benefits
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.
The /etc/fstab file.
36. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
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
kickstart installations to work
Enforcing during installation
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.
37. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
38. What is the name of the package that allows you to install VNC?
Use the ps command to view processes and their CPU usage.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
39. Can you put your /boot partition on a RAID 5 array?
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.
rpcbind service
The /var/log/audit/audit.log file contains all policy violations.
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.
40. Can you name three utilities that can be used for network or DNS client troubleshooting?
chkconfig—list
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
DNS uses port 53.
The three utilities are: route - ping - and nslookup.
41. What option at the GRUB boot menu can you use to append something to a kernel?
load balancing and redundancy benefits
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
42. 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
43. Which file shows you all the client IP addresses?
getsebool
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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
A user's home directory is created under the /home directory.
44. What command and option do you use to view the description of Boolean values?
semanage boolean -l
createrepo
The /etc/fstab file.
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.
45. What command can be used to view the queue for at service jobs?
atq
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The lftp command can be used on a client to test FTP server connections.
46. What command disables the SSH service from running when the system boots?
service httpd configtest
Use the ps command to view processes and their CPU usage.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
chkconfig sshd off
47. 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.
mkfs.ext4
Use the top command to view CPU and memory usage.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
48. What happens to jobs that are scheduled to run while the system is off?
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.
The lastlog and faillog commands are used to view user login-related events?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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.
49. What command do you use to report information on quota usage?
load balancing and redundancy benefits
chkconfig—list
By defining a %post section - you can run scripts after a kickstart installation is complete.
repquota
50. Can you name the two commands that can be used to view the free space on the system?
The du and df commands are used to view available space on the system.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
cat /proc/mdstat
You can use the authconfig-tui command or the authconfig command.