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 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
2. What command can be used to view the queue for at service jobs?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
useradd -c "Jr Admin" George
atq
By default - Squid runs on port 3128.
3. What file is used to maintain custom parameters for the kernel during system boot?
defining a %pre section although it is rarely used
The smbpasswd command is used to create Samba users.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
via the command line
4. How can you verify the status of the SSH service after the system has booted?
You can use the authconfig-tui command or the authconfig command.
service sshd statuts
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.
The virsh command is used to manage virtual guests.
5. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
Use the top command to view CPU and memory usage.
The rndc utility provides a method for managing the DNS server remotely and securely.
browseable option
6. Runlevel 0 ___________. Runlevel 6 reboots the system.
createrepo
halts the system
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The du and df commands are used to view available space on the system.
7. What is the biggest benefit to using LVM over basic partitions?
have the same effect
Use the top command to view CPU and memory usage.
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.
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.
8. What command do you use to report information on quota usage?
repquota
load balancing and redundancy benefits
Use the resize2fs command to grow a file system.
you have access to the correct packages or repositories.
9. What command do you use to change the permissions on a file or directory - To change ownership?
The virsh command is used to manage virtual guests.
serve both files and printers to users
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.
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.
10. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. What is the /etc/vsftpd/user_list file used for?
Typing the mail or mutt command allows you to read mail from the command line.
The user_list file can be used to limit which users have access to the FTP server.
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.
generates errors under Red Hat Enterprise Linux 6
12. What is the name of the package used to install an FTP?
The rpm command can operate in install - query - or verify modes.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The vsftpd package is used to install an FTP server.
used for kickstart and/or network installs
13. The ____________ is available for each share.
browseable option
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The -t nfs option is used with the mount command to mount NFS resources.
14. 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
15. What is NAT - How is it used?
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.
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.
atq
via the command line
16. To grow a file system
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.
Use the resize2fs command to grow a file system.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
getsebool
17. What command and option do you use to view the description of Boolean values?
A user's home directory is created under the /home directory.
The SMTP service runs on TCP port 110.
semanage boolean -l
run on any port you'd like (provided that port is available)
18. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
used for kickstart and/or network installs
19. What does virsh reboot Client04 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 smbpasswd command is used to create Samba users.
This command reboots virtual guest Client04.
SELinux provides enhanced granular security for the Linux operating system.
20. Most boot issues can be resolved by...
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
entering rescue mode and repairing the problem.
This chapter described tdbsm and smbpasswd back-end authentication.
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
21. What directory is used to represent the virtual file system created by the kernel?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
lvdisplay
kickstart installations to work
22. What three protocols can you use to perform network installations?
choose which mode you'd like it to operate in
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
23. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
24. You must dictate the ____________ you want allocated to your virtual machine when you create it.
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.
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
25. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
26. What command can you use to validate the syntax of the Apache config file?
Use the top command to view CPU and memory usage.
The four types of DNS servers are master - slave - caching-only - and forwarding.
This command reboots virtual guest Client04.
service httpd configtest
27. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
You add your action to the end of the /home/user01/.bashrc file.
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 have access to the correct packages or repositories.
service sshd statuts
28. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
SSH is used for secure remote management of Linux systems.
chcon
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.
29. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
cat /proc/mdstat
You add your action to the end of the /home/user01/.bashrc 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.
30. What does it mean if you ping a host and you receive the response Destination Unreachable?
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
31. Before you work with quotas - what do you need to do to the file system?
The rndc utility provides a method for managing the DNS server remotely and securely.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The yum and rpm commands are used for package management.
The print option is used with both the fdisk and parted commands to display the current partition tables.
32. What is a swap? Is it created as a partition or device file?
run on any port you'd like (provided that port is available)
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
setsebool -P nfs_export_all_rw=1
33. What are SELinux Booleans?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
SELinux Booleans provide restrictions to different aspects of a service.
VNC is used to control a remote desktop session.
34. How would you disable SELinux protection for NFS - allowing shares to be read/write?
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
export one or all resources
Enforcing during installation
setsebool -P nfs_export_all_rw=1
35. What command can you use to view system processes and their CPU usage?
browseable option
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.
ifconfig
Use the ps command to view processes and their CPU usage.
36. Are additional packages besides httpd required for a secure website - If so - what are they?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Use the resize2fs command to grow a file system.
Physical volumes - volume groups - and logical volumes.
For Apache to run a secure site - the mod_ssl package is required to be installed.
37. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
lvdisplay
By default - Squid runs on port 3128.
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.
38. A service needs to have _______________ to be able to use it.
support for TCP Wrappers
The tcpdump command is used to monitor network connections on different interfaces.
The vsftpd package is used to install an FTP server.
generates errors under Red Hat Enterprise Linux 6
39. Can you name three utilities that can be used for network or DNS client troubleshooting?
Apache uses port 80 for HTTP and port 443 for HTTPS.
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 three utilities are: route - ping - and nslookup.
By defining a %post section - you can run scripts after a kickstart installation is complete.
40. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
enabled by default
The lastlog and faillog commands are used to view user login-related events?
Apache uses port 80 for HTTP and port 443 for HTTPS.
41. What option is used to allow anonymous uploads to the FTP server?
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
user's home directory in the /etc/skel directory
The anonymous_enable=YES option in the main config file allows anonymous uploads.
42. What port does the rndc utility listen on by default?
The SMTP service runs on TCP port 110.
By default - the rndc utility listens on port 953.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
43. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The TFTP server uses UDP port 69.
The three utilities are: route - ping - and nslookup.
44. What client-side command can you use to test your FTP server connection?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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 lftp command can be used on a client to test FTP server connections.
45. Which log file is used to keep track of policy violations?
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.
entering rescue mode and repairing the problem.
The /var/log/audit/audit.log file contains all policy violations.
SSH is used for secure remote management of Linux systems.
46. What command is used to create a user for Samba?
The NFS service uses TCP port 2049 by default.
The service command is used to start - stop - and manage system services.
getfacl
The smbpasswd command is used to create Samba users.
47. Before you work with ACLs - what do you need to do to the file system?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
48. What command can be used to easily list all the options in the FTP main config 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.
The rpm command can operate in install - query - or verify modes.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
49. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
chkconfig sshd off
The rpm command can operate in install - query - or verify modes.
The -t nfs option is used with the mount command to mount NFS resources.
Enforcing during installation
50. What commands can you use to add a client machine to an LDAP server?
you have access to the correct packages or repositories.
chkconfig xinetd --list
The vsftpd package is used to install an FTP server.
You can use the authconfig-tui command or the authconfig command.