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 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
2. What is a gateway used for on a network?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf 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.
The tcpdump command is used to monitor network connections on different interfaces.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
3. What is a swap? Is it created as a partition or device file?
The -t nfs option is used with the mount command to mount NFS resources.
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.
DNS uses port 53.
getsebool
4. What command do you use to report information on quota usage?
The vsftpd package is used to install an FTP server.
repquota
getfacl
you have access to the correct packages or repositories.
5. How can you verify the status of the SSH service after the system has booted?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
service sshd statuts
You can use the remove or erase options with yum to remove a package.
6. Does a DHCP server allow reserved IP addresses - If so - how?
The lastlog and faillog commands are used to view user login-related events?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
rpcbind service
7. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
You can use the authconfig-tui command or the authconfig command.
service named configtest
8. Through its main config file - SSH can be configured to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
The user_list file can be used to limit which users have access to the FTP server.
You can use the authconfig-tui command or the authconfig command.
By default - Squid runs on port 3128.
10. How would you view all Boolean options for the HTTP service?
VNC is used to control a remote desktop session.
getsebool -a | grep http
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
11. What protocols are used with Dovecot?
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.
Enforcing during installation
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
12. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
You can use the authconfig-tui command or the authconfig command.
The dig - host - and ping commands can be used to test DNS server functionality.
13. What command and option can you use to enable a service to start on boot?
schedule one-time-only jobs
user's home directory in the /etc/skel directory
By defining a %post section - you can run scripts after a kickstart installation is complete.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
14. What command can you use to query Boolean values?
The /etc/fstab file.
getsebool
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.
15. How would you go about creating a static route?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
This chapter described tdbsm and smbpasswd back-end authentication.
Use the route command with the add option to create a static route.
16. What command can you use to view system processes and their CPU usage?
getsebool
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Use the ps command to view processes and their CPU usage.
17. What does the partprobe command do?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
chkconfig sshd off
Enforcing during installation
18. What port does NFS use by default?
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.
Physical volumes - volume groups - and logical volumes.
The smbpasswd command is used to create Samba users.
The NFS service uses TCP port 2049 by default.
19. Which file shows you all the client IP addresses?
getsebool
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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Sendmail
20. What file needs to be edited so that the system will mount a file system at boot time?
enabled by default
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The /etc/fstab file.
21. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
atq
DNS uses port 53.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
service httpd configtest
22. How would you disable SELinux protection for NFS - allowing shares to be read/write?
setsebool -P nfs_export_all_rw=1
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The vsftpd package is used to install an FTP server.
The smbstatus command shows you currently mounted Samba resources.
23. What is SSH used for?
lvdisplay
getsebool
SSH is used for secure remote management of Linux systems.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
24. What are the two config files for Postfix called?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
amount of RAM
The two main config files are master.cf and main.cf.
You must open TCP ports 20 and 21 for the FTP server to function properly.
25. What command can you use to get information about logical volumes?
The nfsstat command can be used to view NFS statistics.
lvdisplay
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
getfacl
26. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
The user_list file can be used to limit which users have access to the FTP server.
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.
alternatives --config mta
27. What three commands can you use to help verify that the DNS server is functioning properly?
halts the system
The dig - host - and ping commands can be used to test DNS server functionality.
chkconfig—list
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.
28. 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.
defining a %pre section although it is rarely used
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
29. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
By default - Squid runs on port 3128.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
30. What is the /var/lib/nfs/etab file used for?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The lastlog and faillog commands are used to view user login-related events?
The ping command can be used to verify connectivity to another host.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
31. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
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.
service sshd statuts
rpcbind service
The mount command lists all currently mounted file systems.
32. What are the three different types of RAID described in this chapter?
generates errors under Red Hat Enterprise Linux 6
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The NFS service uses TCP port 2049 by default.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
33. A PXE server eases the automation process but isn't required for...
kickstart installations to work
Use the top command to view CPU and memory usage.
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 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.
34. What option is used to allow anonymous uploads to the FTP server?
The du and df commands are used to view available space on the system.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
35. What options with the yum command would you use to remove a package?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
support TCP Wrappers
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
You can use the remove or erase options with yum to remove a package.
36. You must dictate the ____________ you want allocated to your virtual machine when you create it.
service sshd statuts
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
amount of RAM
37. What does the testparm command do?
This command reboots virtual guest Client04.
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.
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.
38. What is the top command used for?
Use the top command to view CPU and memory usage.
The smbpasswd command is used to create Samba users.
The htpasswd command can be used to password-protect a web page.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
39. What command can you use to validate the syntax of the Apache config file?
Use the top command to view CPU and memory usage.
rpcbind service
service httpd configtest
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
40. 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
41. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
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.
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
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.
42. The exportfs command is used to...
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
setsebool -P nfs_export_all_rw=1
export one or all resources
43. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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 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.
kickstart installations to work
44. What command and option do you use to view the description of Boolean values?
semanage boolean -l
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.
used for kickstart and/or network installs
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
45. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
The user_list file can be used to limit which users have access to the FTP server.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Enforcing during installation
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
46. What option is used with both the fdisk and parted commands to display the current partition tables?
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
The ping command can be used to verify connectivity to another host.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
47. What benefit does a web proxy provide to your network?
The lftp command can be used on a client to test FTP server connections.
The smbpasswd command is used to create Samba users.
service dhcpd configtest
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
48. The ____________ is available for each share.
serve both files and printers to users
browseable option
The dig - host - and ping commands can be used to test DNS server functionality.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
49. What command is used to create a user for Samba?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
A virtual host is a way of hosting multiple sites using a single IP address.
You can use the remove or erase options with yum to remove a package.
The smbpasswd command is used to create Samba users.
50. What two commands are used for package management?
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.
used for kickstart and/or network installs
The yum and rpm commands are used for package management.
user's home directory in the /etc/skel directory