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. 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
2. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The lastlog and faillog commands are used to view user login-related events?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
LUKS encryption
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
3. What is the /etc/vsftpd/user_list file used for?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
DNS uses port 53.
Version 2 is the latest and most secure version of SSH.
The user_list file can be used to limit which users have access to the FTP server.
4. To create a RAID or LVM partition using kickstart
The TFTP server uses UDP port 69.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The /etc/fstab file.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
5. What critical step must you take after updating the kernel to a newer version?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Version 2 is the latest and most secure version of SSH.
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.
SSH is used for secure remote management of Linux systems.
6. What two commands are special for dealing with user login events?
cat /proc/mdstat
The smbpasswd command is used to create Samba users.
The lastlog and faillog commands are used to view user login-related events?
rpmbuild
7. Can you name three utilities that can be used for network or DNS client troubleshooting?
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.
The service command is used to start - stop - and manage system services.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
8. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
schedule one-time-only jobs
VNC is used to control a remote desktop session.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
9. What command can you use to get information about logical volumes?
SELinux Booleans provide restrictions to different aspects of a service.
Sendmail
lvdisplay
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
10. Where are Yum repository config files located?
rpcbind service
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 two main config files are master.cf and main.cf.
browseable option
11. What are the five required directories when building RPMS?
Use the resize2fs command to grow a file system.
browseable option
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The mount command lists all currently mounted file systems.
12. What is a virtual host?
getsebool
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
A virtual host is a way of hosting multiple sites using a single IP address.
The smbstatus command shows you currently mounted Samba resources.
13. Runlevel 0 ___________. Runlevel 6 reboots the system.
Use the yum groupinstall command to install multiple packages in a single group at once.
halts the system
The SMTP service runs on TCP port 110.
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.
14. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
15. Can you name the two commands that can be used to view the free space on the system?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The du and df commands are used to view available space on the system.
You add your action to the end of the /home/user01/.bashrc file.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
16. What command can be used to easily list all the options in the FTP main config file?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with 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.
Enforcing during installation
By default - Squid runs on port 3128.
17. What port does the rndc utility listen on by default?
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.
By default - the rndc utility listens on port 953.
The /etc/fstab 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.
18. Before you work with ACLs - what do you need to do to the file system?
You can use the authconfig-tui command or the authconfig command.
chkconfig sshd off
getsebool
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
19. A service needs to have _______________ to be able to use it.
createrepo
setsebool -P nfs_export_all_rw=1
schedule one-time-only jobs
support for TCP Wrappers
20. What command do you use to change the permissions on a file or directory - To change ownership?
The service command is used to start - stop - and manage system services.
user's home directory in the /etc/skel directory
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
21. What command can you use to test the config files before starting the DNS service?
service dhcpd configtest
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
service named configtest
The -t nfs option is used with the mount command to mount NFS resources.
22. The package selection screen allows you to install any software you want during the installation process as long as...
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 two main config files are master.cf and main.cf.
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.
you have access to the correct packages or repositories.
23. What command displays your current interfaces and IP address?
The smbpasswd command is used to create Samba users.
ifconfig
chkconfig xinetd --list
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.
24. What command can you use to create a new SSL certificate?
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.
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
25. Can you put your /boot partition on a RAID 5 array?
repquota
chkconfig—list
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
26. What is a gateway used for on a network?
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
service httpd configtest
used for kickstart and/or network installs
27. A slave DNS server provides...
The smbstatus command shows you currently mounted Samba resources.
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.
load balancing and redundancy benefits
Use the route command with the add option to create a static route.
28. What is the difference between an A record and a PTR record?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
DNS uses port 53.
By defining a %post section - you can run scripts after a kickstart installation is complete.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
29. What is the name of the package that allows you to install VNC?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
ifconfig
The htpasswd command can be used to password-protect a web page.
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.
30. What is the name of the section used to run scripts after a kickstart installation?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
getsebool -a | grep http
service dhcpd configtest
By defining a %post section - you can run scripts after a kickstart installation is complete.
31. How would you go about creating a static route?
Use the route command with the add option to create a static route.
chcon
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
getfacl
32. What command can you use to query Boolean values?
chkconfig sshd off
getsebool
chkconfig—list
The print option is used with both the fdisk and parted commands to display the current partition tables.
33. What options with the yum command would you use to remove a package?
The two main config files are master.cf and main.cf.
defining a %pre section although it is rarely used
For Apache to run a secure site - the mod_ssl package is required to be installed.
You can use the remove or erase options with yum to remove a package.
34. There are four types of DNS servers. Name them.
kickstart installations to work
The four types of DNS servers are master - slave - caching-only - and forwarding.
lvdisplay
setsebool -P nfs_export_all_rw=1
35. What is the virsh command used for?
entering rescue mode and repairing the problem.
The rndc utility provides a method for managing the DNS server remotely and securely.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The virsh command is used to manage virtual guests.
36. You must dictate the ____________ you want allocated to your virtual machine when you create it.
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.
The smbpasswd command is used to create Samba users.
amount of RAM
The print option is used with both the fdisk and parted commands to display the current partition tables.
37. What are the two config files for Postfix called?
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.
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.
rpcbind service
The two main config files are master.cf and main.cf.
38. What command disables the SSH service from running when the system boots?
defining a %pre section although it is rarely used
lvdisplay
chkconfig sshd off
A virtual host is a way of hosting multiple sites using a single IP address.
39. Does a DHCP server allow reserved IP addresses - If so - how?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
You add your action to the end of the /home/user01/.bashrc file.
40. 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.
Version 2 is the latest and most secure version of SSH.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The htpasswd command can be used to password-protect a web page.
41. What is the /var/lib/nfs/etab file used for?
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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
schedule one-time-only jobs
42. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
43. What command would you use to create a group - to add the user George to the group?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
support TCP Wrappers
You can use the authconfig-tui command or the authconfig command.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
44. What is NAT - How is it used?
used for kickstart and/or network installs
This chapter described tdbsm and smbpasswd back-end authentication.
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.
run on any port you'd like (provided that port is available)
45. What command can you use to create a file system?
mkfs.ext4
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
46. How can you verify the status of the SSH service after the system has booted?
service sshd statuts
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
createrepo
47. What is the rndc utility used for?
Use the ps command to view processes and their CPU usage.
A virtual host is a way of hosting multiple sites using a single IP address.
The rndc utility provides a method for managing the DNS server remotely and securely.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
48. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
via the command line
user's home directory in the /etc/skel directory
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 does the rdnc-confgen command do?
The rpm command can operate in install - query - or verify modes.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The virsh command is used to manage virtual guests.
50. The ____________ is available for each share.
The htpasswd command can be used to password-protect a web page.
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.
Use the resize2fs command to grow a file system.
browseable option