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. Which version of SSH should you use?
The tcpdump command is used to monitor network connections on different interfaces.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The print option is used with both the fdisk and parted commands to display the current partition tables.
Version 2 is the latest and most secure version of SSH.
2. What option is used to allow anonymous uploads to the FTP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
Use the setgid flag to create the appropriate permissions (chmod 2770).
browseable option
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
3. What command can you use to change the context of files?
chcon
The smbpasswd command is used to create Samba users.
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.
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.
4. What client-side command can you use to test your FTP server connection?
Sendmail
The lftp command can be used on a client to test FTP server connections.
export one or all resources
Stage 1: During this stage - the primary bootloader is read into memory by the BIOS from the MBR. Stage 1.5: During this stage - the bootloader is read into memory by the stage 1 bootloader (only if necessary). Stage 2: During this stage - the bootlo
5. What file needs to be edited so that the system will mount a file system at boot time?
The /etc/fstab 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.
createrepo
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.
6. What three components are needed to fully automate a kickstart installation?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
export one or all resources
Sendmail
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
7. What command is used to create an RPM package?
rpmbuild
By defining a %post section - you can run scripts after a kickstart installation is complete.
defining a %pre section although it is rarely used
The -t nfs option is used with the mount command to mount NFS resources.
8. What does the testparm command do?
The mount command lists all currently mounted file systems.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
SELinux provides enhanced granular security for the Linux operating system.
The TFTP server uses UDP port 69.
9. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
defining a %pre section although it is rarely used
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The smbpasswd command is used to create Samba users.
The lastlog and faillog commands are used to view user login-related events?
10. What command can you use to query Boolean values?
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.
getsebool
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
11. What options with the yum command would you use to remove a package?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Using the chcon command - you can change the context of a file to work with Apache.
The rpm command can operate in install - query - or verify modes.
You can use the remove or erase options with yum to remove a package.
12. What is the benefit to using centralized authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
13. What command and option can you use to enable a service to start on boot?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Stage 1: During this stage - the primary bootloader is read into memory by the BIOS from the MBR. Stage 1.5: During this stage - the bootloader is read into memory by the stage 1 bootloader (only if necessary). Stage 2: During this stage - the bootlo
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. GRUB has three stages. Can you name them?
A user's home directory is created under the /home directory.
Stage 1: During this stage - the primary bootloader is read into memory by the BIOS from the MBR. Stage 1.5: During this stage - the bootloader is read into memory by the stage 1 bootloader (only if necessary). Stage 2: During this stage - the bootlo
You add your action to the end of the /home/user01/.bashrc file.
rpcbind service
15. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The print option is used with both the fdisk and parted commands to display the current partition tables.
The smbstatus command shows you currently mounted Samba resources.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Sendmail
16. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
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.
generates errors under Red Hat Enterprise Linux 6
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
lvdisplay
17. What three commands can you use to help verify that the DNS server is functioning properly?
The dig - host - and ping commands can be used to test DNS server functionality.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
service named configtest
The rpm command can operate in install - query - or verify modes.
18. What is NAT - How is it used?
entering rescue mode and repairing the problem.
chcon
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
19. Can you name three utilities that can be used for network or DNS client troubleshooting?
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 three utilities are: route - ping - and nslookup.
user's home directory in the /etc/skel directory
20. What benefit does a web proxy provide to your network?
Use the route command with the add option to create a static route.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The /etc/fstab file.
21. What are the side effects of shrinking a volume group or logical volume?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
SELinux provides enhanced granular security for the Linux operating system.
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
22. What command can you use to query information from the kernel about RAID arrays?
VNC is used to control a remote desktop session.
cat /proc/mdstat
Use the ps command to view processes and their CPU usage.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
23. How can you check the currently mounted file systems?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The mount command lists all currently mounted file systems.
The print option is used with both the fdisk and parted commands to display the current partition tables.
By default - Squid runs on port 3128.
24. What is PAM used for?
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.
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.
browseable option
The three utilities are: route - ping - and nslookup.
25. What is SSH used for?
Apache uses port 80 for HTTP and port 443 for HTTPS.
SSH is used for secure remote management of Linux systems.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The print option is used with both the fdisk and parted commands to display the current partition tables.
26. What two commands are special for dealing with user login events?
By default - Squid runs on port 3128.
SELinux provides enhanced granular security for the Linux operating system.
The lastlog and faillog commands are used to view user login-related events?
Stage 1: During this stage - the primary bootloader is read into memory by the BIOS from the MBR. Stage 1.5: During this stage - the bootloader is read into memory by the stage 1 bootloader (only if necessary). Stage 2: During this stage - the bootlo
27. 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.
Enforcing during installation
support TCP Wrappers
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.
28. What port must be opened on the firewall for DNS?
getfacl
DNS uses port 53.
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.
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.
29. What are the three modes in which the rpm command can operate?
Use the yum groupinstall command to install multiple packages in a single group at once.
This command reboots virtual guest Client04.
Enforcing during installation
The rpm command can operate in install - query - or verify modes.
30. What command and option do you use to view the description of Boolean values?
The mount command lists all currently mounted file systems.
Sendmail
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.
semanage boolean -l
31. The package selection screen allows you to install any software you want during the installation process as long as...
Kickstart supports both basic and advanced partitioning (RAID/LVM).
support for TCP Wrappers
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
you have access to the correct packages or repositories.
32. Editing the /etc/xinetd.d/tftp file and enabling the service are the same as running the chkconfig tftp on command. Both of these actions...
The nfsstat command can be used to view NFS statistics.
user's home directory in the /etc/skel directory
A virtual host is a way of hosting multiple sites using a single IP address.
have the same effect
33. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
service named configtest
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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
34. What is the point of using SELinux?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
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.
SELinux provides enhanced granular security for the Linux operating system.
35. Most boot issues can be resolved by...
The /etc/fstab file.
chkconfig xinetd --list
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.
entering rescue mode and repairing the problem.
36. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
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.
cat /proc/mdstat
used for kickstart and/or network installs
You must open TCP ports 20 and 21 for the FTP server to function properly.
37. What is the biggest benefit to using LVM over basic partitions?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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 can use the remove or erase options with yum to remove a package.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
38. What port does the DHCP server listen on by default?
The ping command can be used to verify connectivity to another host.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The DHCP server listens on port 67 by default.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
39. Can you put your /boot partition on a RAID 5 array?
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.
You can use the authconfig-tui command or the authconfig command.
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.
cat /proc/mdstat
40. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
kickstart installations to work
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Use the route command with the add option to create a static route.
41. What is the /var/lib/nfs/etab file used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The TFTP server uses UDP port 69.
The /etc/fstab file.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
42. What command do you use to report information on quota usage?
repquota
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 -t nfs option is used with the mount command to mount NFS resources.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
43. SSH does...
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The smbpasswd command is used to create Samba users.
support TCP Wrappers
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.
44. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
Stage 1: During this stage - the primary bootloader is read into memory by the BIOS from the MBR. Stage 1.5: During this stage - the bootloader is read into memory by the stage 1 bootloader (only if necessary). Stage 2: During this stage - the bootlo
chkconfig—list
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.
45. 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.
support TCP Wrappers
enabled by default
A virtual host is a way of hosting multiple sites using a single IP address.
46. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
SSH is used for secure remote management of Linux systems.
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 partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
47. What command do you use to change the permissions on a file or directory - To change ownership?
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.
cat /proc/mdstat
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
user's home directory in the /etc/skel directory
48. A slave DNS server provides...
rpcbind service
load balancing and redundancy benefits
Use the ps command to view processes and their CPU usage.
schedule one-time-only jobs
49. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
The three utilities are: route - ping - and nslookup.
getsebool -a | grep http
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.
service named configtest
50. What command can you use to create a password-protected page?
mkfs.ext4
The htpasswd command can be used to password-protect a web page.
have the same effect
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.