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 command can you use to query Boolean values?
The two main config files are master.cf and main.cf.
you have access to the correct packages or repositories.
Typing the mail or mutt command allows you to read mail from the command line.
getsebool
2. SSH does...
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
createrepo
support TCP Wrappers
generates errors under Red Hat Enterprise Linux 6
3. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
You add your action to the end of the /home/user01/.bashrc file.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
VNC is used to control a remote desktop session.
4. What directory is used to represent the virtual file system created by the kernel?
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.
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.
defining a %pre section although it is rarely used
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
5. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
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.
chcon
rpcbind service
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.
6. How would you install a group of packages all at a single time?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Using the chcon command - you can change the context of a file to work with Apache.
Use the yum groupinstall command to install multiple packages in a single group at once.
choose which mode you'd like it to operate in
7. What is a virtual host?
The yum and rpm commands are used for package management.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
A virtual host is a way of hosting multiple sites using a single IP address.
8. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. What file is used to maintain custom parameters for the kernel during system boot?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
defining a %pre section although it is rarely used
10. How can virtual hosts be used?
Use the yum groupinstall command to install multiple packages in a single group at once.
have the same effect
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
11. What is the top command used for?
repquota
Physical volumes - volume groups - and logical volumes.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Use the top command to view CPU and memory usage.
12. How would you go about creating a static route?
Use the route command with the add option to create a static route.
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 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.
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.
13. A PXE server eases the automation process but isn't required for...
Use the setgid flag to create the appropriate permissions (chmod 2770).
kickstart installations to work
By defining a %post section - you can run scripts after a kickstart installation is complete.
Use the top command to view CPU and memory usage.
14. What command can you use to view the current ACL on a file?
getfacl
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
schedule one-time-only jobs
15. What is the rndc utility used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
load balancing and redundancy benefits
This chapter described tdbsm and smbpasswd back-end authentication.
The rndc utility provides a method for managing the DNS server remotely and securely.
16. What is the name of the package used to install an FTP?
The -t nfs option is used with the mount command to mount NFS resources.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The vsftpd package is used to install an FTP server.
The nfsstat command can be used to view NFS statistics.
17. What three commands can you use to help verify that the DNS server is functioning properly?
atq
service httpd configtest
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 dig - host - and ping commands can be used to test DNS server functionality.
18. Can you put your /boot partition on a RAID 5 array?
schedule one-time-only jobs
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 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.
19. How can you change the security context of a directory to work with Apache?
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Using the chcon command - you can change the context of a file to work with Apache.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
20. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
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.
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.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The /var/log/audit/audit.log file contains all policy violations.
21. 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.
Physical volumes - volume groups - and logical volumes.
user's home directory in the /etc/skel directory
The /etc/fstab file.
22. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
service httpd configtest
SELinux Booleans provide restrictions to different aspects of a service.
The two main config files are master.cf and main.cf.
23. What is the virsh command used for?
The virsh command is used to manage virtual guests.
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 three utilities are: route - ping - and nslookup.
The tcpdump command is used to monitor network connections on different interfaces.
24. 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.
The lastlog and faillog commands are used to view user login-related events?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The three utilities are: route - ping - and nslookup.
25. Which log file is used to keep track of policy violations?
The three utilities are: route - ping - and nslookup.
The /var/log/audit/audit.log file contains all policy violations.
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.
atq
26. What is the name of the package that allows you to install VNC?
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
27. A service needs to have _______________ to be able to use it.
LUKS encryption
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
support for TCP Wrappers
28. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
The lftp command can be used on a client to test FTP server connections.
Use the setgid flag to create the appropriate permissions (chmod 2770).
service dhcpd configtest
29. Can you name three utilities that can be used for network or DNS client troubleshooting?
amount of RAM
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 three utilities are: route - ping - and nslookup.
Enforcing during installation
30. 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
31. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
alternatives --config mta
Apache uses port 80 for HTTP and port 443 for HTTPS.
The service command is used to start - stop - and manage system services.
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.
32. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
service sshd statuts
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
defining a %pre section although it is rarely used
via the command line
33. Which remote management service is installed by default?Can you name the port that it uses?
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.
user's home directory in the /etc/skel directory
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.
34. What command can you use to create your own repositories?
Use the resize2fs command to grow a file system.
The /etc/fstab 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.
createrepo
35. What is the name of the section used to run scripts after a kickstart installation?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The /etc/fstab file.
By defining a %post section - you can run scripts after a kickstart installation is complete.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
36. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The user_list file can be used to limit which users have access to the FTP server.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
Use the top command to view CPU and memory usage.
37. What option is used to allow anonymous uploads to the FTP server?
browseable option
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The lastlog and faillog commands are used to view user login-related events?
38. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
browseable option
The dig - host - and ping commands can be used to test DNS server functionality.
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.
39. To export directories as resources - what file needs to be edited?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. What is the main config file for the DHCP service?
support TCP Wrappers
chcon
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
41. What commands can you use to add a client machine to an LDAP server?
enabled by default
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.
createrepo
You can use the authconfig-tui command or the authconfig command.
42. What does it mean if you ping a host and you receive the response Destination Unreachable?
The mount command lists all currently mounted file systems.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
43. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
44. What command do you use to change the permissions on a file or directory - To change ownership?
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.
choose which mode you'd like it to operate in
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
45. What command can you use to view NFS statistics?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The nfsstat command can be used to view NFS statistics.
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 DHCP server listens on port 67 by default.
46. What option would you use to query an installed package using the rpm command?
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.
browseable option
Apache uses port 80 for HTTP and port 443 for HTTPS.
createrepo
47. Runlevel 0 ___________. Runlevel 6 reboots the system.
You can use the authconfig-tui command or the authconfig command.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
halts the system
48. What is the default port that Squid runs on?
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 sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
By default - Squid runs on port 3128.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
49. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
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.
The DHCP server listens on port 67 by default.
Enforcing during installation
getfacl
50. What are the two config files for Postfix called?
atq
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.
support for TCP Wrappers
The two main config files are master.cf and main.cf.