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 create your own repositories?
choose which mode you'd like it to operate in
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.
Use the ps command to view processes and their CPU usage.
createrepo
2. What is a virtual host?
The lastlog and faillog commands are used to view user login-related events?
You add your action to the end of the /home/user01/.bashrc file.
A virtual host is a way of hosting multiple sites using a single IP address.
The user_list file can be used to limit which users have access to the FTP server.
3. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
4. What option is used with both the fdisk and parted commands to display the current partition tables?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The NFS service uses TCP port 2049 by default.
support TCP Wrappers
The print option is used with both the fdisk and parted commands to display the current partition tables.
5. What file is used to maintain custom parameters for the kernel during system boot?
chkconfig xinetd --list
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
6. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
serve both files and printers to users
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
7. What does it mean if you ping a host and you receive the response Destination Unreachable?
The rpm command can operate in install - query - or verify modes.
service dhcpd configtest
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
You can use the remove or erase options with yum to remove a package.
8. What is the superblock used for?
support TCP Wrappers
Enforcing during installation
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
DNS uses port 53.
9. What is the name of the section used to run scripts after a kickstart installation?
By defining a %post section - you can run scripts after a kickstart installation is complete.
A user's home directory is created under the /home directory.
choose which mode you'd like it to operate in
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
10. What protocols are used with Dovecot?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
chcon
Use the yum groupinstall command to install multiple packages in a single group at once.
service dhcpd configtest
11. What benefit does a web proxy provide to your network?
The user_list file can be used to limit which users have access to the FTP server.
alternatives --config mta
user's home directory in the /etc/skel directory
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
12. What command is used to create an RPM package?
The TFTP server uses UDP port 69.
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.
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.
rpmbuild
13. How can you verify the status of the SSH service after the system has booted?
Apache uses port 80 for HTTP and port 443 for HTTPS.
service sshd statuts
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
14. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
via the command line
The lftp command can be used on a client to test FTP server connections.
amount of RAM
15. What are SELinux Booleans?
load balancing and redundancy benefits
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
SELinux Booleans provide restrictions to different aspects of a service.
lvdisplay
16. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The /etc/fstab file.
getsebool -a | grep http
amount of RAM
17. 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.
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
18. What is the /etc/vsftpd/user_list file used for?
choose which mode you'd like it to operate in
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Physical volumes - volume groups - and logical volumes.
The user_list file can be used to limit which users have access to the FTP server.
19. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
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.
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 testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
20. There are four types of DNS servers. Name them.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The four types of DNS servers are master - slave - caching-only - and forwarding.
serve both files and printers to users
Use the yum groupinstall command to install multiple packages in a single group at once.
21. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
By default - the rndc utility listens on port 953.
The yum and rpm commands are used for package management.
22. What file needs to be edited so that the system will mount a file system at boot time?
kickstart installations to work
The /etc/fstab file.
enabled by default
chcon
23. How can you change the security context of a directory to work with Apache?
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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Using the chcon command - you can change the context of a file to work with Apache.
24. 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
25. A PXE server eases the automation process but isn't required for...
Typing the mail or mutt command allows you to read mail from the command line.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
kickstart installations to work
26. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
27. 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.
rpcbind service
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
28. What option is used to allow anonymous uploads to the FTP server?
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.
generates errors under Red Hat Enterprise Linux 6
used for kickstart and/or network installs
The anonymous_enable=YES option in the main config file allows anonymous uploads.
29. What command can you use to create a file system?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
mkfs.ext4
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.
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.
30. The ____________ is available for each share.
chkconfig—list
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The lftp command can be used on a client to test FTP server connections.
browseable option
31. What are the three modes in which the rpm command can operate?
browseable option
The DHCP server listens on port 67 by default.
The ping command can be used to verify connectivity to another host.
The rpm command can operate in install - query - or verify modes.
32. What command can you use to get information about logical volumes?
lvdisplay
The /var/log/audit/audit.log file contains all policy violations.
atq
Typing the mail or mutt command allows you to read mail from the command line.
33. What is the xinetd service used for?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
SELinux Booleans provide restrictions to different aspects of a service.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
34. What is the top command used for?
Use the top command to view CPU and memory usage.
load balancing and redundancy benefits
Version 2 is the latest and most secure version of SSH.
The lftp command can be used on a client to test FTP server connections.
35. Which log file is used to keep track of policy violations?
A virtual host is a way of hosting multiple sites using a single IP address.
The /etc/fstab file.
The /var/log/audit/audit.log file contains all policy violations.
A user's home directory is created under the /home directory.
36. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
Use the setgid flag to create the appropriate permissions (chmod 2770).
semanage boolean -l
You must open TCP ports 20 and 21 for the FTP server to function properly.
getsebool -a | grep http
37. What port does the rndc utility listen on by default?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
By default - the rndc utility listens on port 953.
Using the chcon command - you can change the context of a file to work with Apache.
Enforcing during installation
38. Can you put your /boot partition on a RAID 5 array?
The four types of DNS servers are master - slave - caching-only - and forwarding.
service dhcpd configtest
user's home directory in the /etc/skel directory
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. 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.
SELinux provides enhanced granular security for the Linux operating system.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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.
40. Most boot issues can be resolved by...
The NFS service uses TCP port 2049 by default.
entering rescue mode and repairing the problem.
DNS uses port 53.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
41. 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
42. What command and options can you use to update the time?
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.
lvdisplay
Use the setgid flag to create the appropriate permissions (chmod 2770).
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
43. Are additional packages besides httpd required for a secure website - If so - what are they?
kickstart installations to work
For Apache to run a secure site - the mod_ssl package is required to be installed.
Use the yum groupinstall command to install multiple packages in a single group at once.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
44. What is the difference between an A record and a PTR record?
chkconfig xinetd --list
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Physical volumes - volume groups - and logical volumes.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
45. 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
46. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The dig - host - and ping commands can be used to test DNS server functionality.
have the same effect
halts the system
47. 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
48. What command and option can you use to enable a service to start on boot?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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.
Use the top command to view CPU and memory usage.
49. What is the main config file for the DHCP service?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
schedule one-time-only jobs
generates errors under Red Hat Enterprise Linux 6
50. What option would you use to query an installed package using the rpm command?
The service command is used to start - stop - and manage system services.
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 yum and rpm commands are used for package management.
schedule one-time-only jobs