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. 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
2. What are the five required directories when building RPMS?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The DHCP server listens on port 67 by default.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The lftp command can be used on a client to test FTP server connections.
3. What is the main config file for the DHCP service?
VNC is used to control a remote desktop session.
getsebool -a | grep http
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 /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
4. What two ports should be opened on the firewall for the FTP server to function properly?
halts the system
The virsh command is used to manage virtual guests.
Use the ps command to view processes and their CPU usage.
You must open TCP ports 20 and 21 for the FTP server to function properly.
5. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The rpm command can operate in install - query - or verify modes.
chkconfig sshd off
You add your action to the end of the /home/user01/.bashrc file.
6. What command can you use to test the config files before starting the DNS service?
support TCP Wrappers
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
service named configtest
The four types of DNS servers are master - slave - caching-only - and forwarding.
7. What command can you use to test connectivity to another host?
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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Sendmail
8. The firewall service is...
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
enabled by default
9. What protocols are used with Dovecot?
The user_list file can be used to limit which users have access to the FTP server.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
LUKS encryption
10. What is the difference between an A record and a PTR record?
The lftp command can be used on a client to test FTP server connections.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
schedule one-time-only jobs
The vsftpd package is used to install an FTP server.
11. How can you display all virtual guests after they're connected to a hypervisor?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
service sshd statuts
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Use the yum groupinstall command to install multiple packages in a single group at once.
12. What command is used to create a user for Samba?
The smbpasswd command is used to create Samba users.
Enforcing during installation
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
generates errors under Red Hat Enterprise Linux 6
13. What options with the yum command would you use to remove a package?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The DHCP server listens on port 67 by default.
You can use the remove or erase options with yum to remove a package.
entering rescue mode and repairing the problem.
14. What does the rdnc-confgen command do?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
You add your action to the end of the /home/user01/.bashrc file.
The rpm command can operate in install - query - or verify modes.
15. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
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.
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.
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.
16. What are the three modes in which the rpm command can operate?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Typing the mail or mutt command allows you to read mail from the command line.
The rpm command can operate in install - query - or verify modes.
This command reboots virtual guest Client04.
17. What command can you use to view mounted Samba shares?
The nfsstat command can be used to view NFS statistics.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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 smbstatus command shows you currently mounted Samba resources.
18. What three components are needed to fully automate a kickstart installation?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work 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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
19. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
service named configtest
The tcpdump command is used to monitor network connections on different interfaces.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
20. What does the partprobe command do?
Physical volumes - volume groups - and logical volumes.
createrepo
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
You add your action to the end of the /home/user01/.bashrc file.
21. What command and option do you use to view the description of Boolean values?
semanage boolean -l
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
kickstart installations to work
22. What happens to jobs that are scheduled to run while the system is off?
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 lftp command can be used on a client to test FTP server connections.
semanage boolean -l
The vsftpd package is used to install an FTP server.
23. How do you run a command with elevated privileges?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
halts the system
atq
Sendmail
24. What command can you use to validate the syntax of the Apache config file?
service httpd configtest
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The mount command lists all currently mounted file systems.
25. What command can be used to view the queue for at service jobs?
defining a %pre section although it is rarely used
atq
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
26. What does it mean if you ping a host and you receive the response Destination Unreachable?
service named configtest
chkconfig sshd off
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
27. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
The du and df commands are used to view available space on the system.
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
28. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
For Apache to run a secure site - the mod_ssl package is required to be installed.
Sendmail
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
29. Can you put your /boot partition on a RAID 5 array?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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 -t nfs option is used with the mount command to mount NFS resources.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
30. What is a virtual host?
Apache uses port 80 for HTTP and port 443 for HTTPS.
have the same effect
service named configtest
A virtual host is a way of hosting multiple sites using a single IP address.
31. 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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
support for TCP Wrappers
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
32. What port does the SMTP service run on?
used for kickstart and/or network installs
The SMTP service runs on TCP port 110.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The DHCP server listens on port 67 by default.
33. What command can you use to change the context of files?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
chcon
defining a %pre section although it is rarely used
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
34. What is the format of the /etc/shadow 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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
35. Red Hat Enterprise Linux 6 is the only version that officially supports _______
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
LUKS encryption
The dig - host - and ping commands can be used to test DNS server functionality.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
36. A slave DNS server provides...
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
load balancing and redundancy benefits
37. What is the name of the package that allows you to install VNC?
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.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
38. Before you work with ACLs - what do you need to do to the file system?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
setsebool -P nfs_export_all_rw=1
LUKS encryption
support for TCP Wrappers
39. Can you name three utilities that can be used for network or DNS client troubleshooting?
export one or all resources
service named configtest
The print option is used with both the fdisk and parted commands to display the current partition tables.
The three utilities are: route - ping - and nslookup.
40. What command is used to show all services being controlled by the xinetd daemon?
The smbstatus command shows you currently mounted Samba resources.
The TFTP server uses UDP port 69.
chkconfig xinetd --list
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.
41. What are the three items that make up LVM?
DNS uses port 53.
Physical volumes - volume groups - and logical volumes.
Sendmail
enabled by default
42. 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
43. How would you install a group of packages all at a single time?
enabled by default
LUKS encryption
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
44. How can you list all services on the system to tell whether they will boot during startup?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
chkconfig—list
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
A virtual host is a way of hosting multiple sites using a single IP address.
45. What is the superblock used for?
semanage boolean -l
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
LUKS encryption
service httpd configtest
46. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The TFTP server uses UDP port 69.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
amount of RAM
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
47. The ____________ is available for each share.
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.
browseable option
The service command is used to start - stop - and manage system services.
Use the resize2fs command to grow a file system.
48. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The /etc/fstab file.
used for kickstart and/or network installs
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
49. What is the xinetd service used for?
Use the yum groupinstall command to install multiple packages in a single group at once.
chkconfig xinetd --list
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The TFTP server uses UDP port 69.
50. What is the /var/lib/nfs/etab file used for?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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
For Apache to run a secure site - the mod_ssl package is required to be installed.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.