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 query information from the kernel about RAID arrays?
rpcbind service
cat /proc/mdstat
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The /etc/fstab file.
2. What command-line program can you use to check your mail?
kickstart installations to work
Typing the mail or mutt command allows you to read mail from the command line.
Sendmail
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
3. Samba servers can...
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 defining a %post section - you can run scripts after a kickstart installation is complete.
serve both files and printers to users
used for kickstart and/or network installs
4. Where are Yum repository config files located?
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
you have access to the correct packages or repositories.
The du and df commands are used to view available space on the system.
5. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
The smbpasswd command is used to create Samba users.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
6. What benefit does a web proxy provide to your network?
Enforcing during installation
You must open TCP ports 20 and 21 for the FTP server to function properly.
Use the resize2fs command to grow a file system.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
7. What are the two types of back-end authentication mechanisms discussed in this chapter?
support TCP Wrappers
mkfs.ext4
have the same effect
This chapter described tdbsm and smbpasswd back-end authentication.
8. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The anonymous_enable=YES option in the main config file allows anonymous uploads.
service named configtest
The virsh command is used to manage virtual guests.
generates errors under Red Hat Enterprise Linux 6
9. How would you view all Boolean options for the HTTP service?
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.
user's home directory in the /etc/skel directory
Network installations can be performed using the HTTP - FTP - and NFS protocols.
getsebool -a | grep http
10. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
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.
The service command is used to start - stop - and manage system services.
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 is the superblock used for?
This command reboots virtual guest Client04.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Use the resize2fs command to grow a file system.
The print option is used with both the fdisk and parted commands to display the current partition tables.
12. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
13. What are the three items that make up LVM?
Physical volumes - volume groups - and logical volumes.
You add your action to the end of the /home/user01/.bashrc file.
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.
VNC is used to control a remote desktop session.
14. A PXE server eases the automation process but isn't required for...
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.
Version 2 is the latest and most secure version of SSH.
kickstart installations to work
support TCP Wrappers
15. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
via the command line
browseable option
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.
service dhcpd configtest
16. What command and option do you use to view the description of Boolean values?
semanage boolean -l
The user_list file can be used to limit which users have access to the FTP server.
Physical volumes - volume groups - and logical volumes.
you have access to the correct packages or repositories.
17. Most boot issues can be resolved by...
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
entering rescue mode and repairing the problem.
The ping command can be used to verify connectivity to another host.
defining a %pre section although it is rarely used
18. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
SSH is used for secure remote management of Linux systems.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
choose which mode you'd like it to operate in
19. What does virsh reboot Client04 do?
The smbstatus command shows you currently mounted Samba resources.
The lastlog and faillog commands are used to view user login-related events?
You can use the authconfig-tui command or the authconfig command.
This command reboots virtual guest Client04.
20. What file is used to maintain custom parameters for the kernel during system boot?
The rndc utility provides a method for managing the DNS server remotely and securely.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The two main config files are master.cf and main.cf.
21. Which version of SSH should you use?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
Version 2 is the latest and most secure version of SSH.
The nfsstat command can be used to view NFS statistics.
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
22. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
Use the route command with the add option to create a static route.
You can use the remove or erase options with yum to remove a package.
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.
23. What is the main config file for the DHCP service?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
choose which mode you'd like it to operate in
chcon
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
24. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
rpcbind service
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
25. What command is used to create an RPM package?
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 smbpasswd command is used to create Samba users.
The two main config files are master.cf and main.cf.
rpmbuild
26. What command can you use to query Boolean values?
getsebool
By default - Squid runs on port 3128.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The rndc utility provides a method for managing the DNS server remotely and securely.
27. How can virtual hosts be used?
Use the route command with the add option to create a static route.
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
28. What command can be used to view the queue for at service jobs?
The htpasswd command can be used to password-protect a web page.
The mount command lists all currently mounted file systems.
The /var/log/audit/audit.log file contains all policy violations.
atq
29. What command disables the SSH service from running when the system boots?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The TFTP server uses UDP port 69.
The mount command lists all currently mounted file systems.
chkconfig sshd off
30. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The htpasswd command can be used to password-protect a web page.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
31. Are additional packages besides httpd required for a secure website - If so - what are they?
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.
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
32. What command is used to create a user for Samba?
Use the route command with the add option to create a static route.
chkconfig xinetd --list
The smbpasswd command is used to create Samba users.
service dhcpd configtest
33. What command and option can you use to enable a service to start on boot?
The du and df commands are used to view available space on the system.
rpmbuild
The user_list file can be used to limit which users have access to the FTP server.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
34. What is a swap? Is it created as a partition or device file?
halts the system
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 swap is scratch space on your file system used as virtual memory. A swap can be created as a partition or a device file.
support for TCP Wrappers
35. 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
36. How can you display all virtual guests after they're connected to a hypervisor?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
37. What port does the rndc utility listen on by default?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
support for TCP Wrappers
By default - the rndc utility listens on port 953.
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.
38. What command can you use to view NFS statistics?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The du and df commands are used to view available space on the system.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The nfsstat command can be used to view NFS statistics.
39. In Red Hat Enterprise Linux 6 - the default for SELinux is _______________ (which can be changed after the installation completes). For Red Hat Enterprise Linux 5 - you were able to choose what mode you wanted SELinux to start in.
Enforcing during installation
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
For Apache to run a secure site - the mod_ssl package is required to be installed.
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.
40. 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...
have the same effect
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.
Use the ps command to view processes and their CPU usage.
The service command is used to start - stop - and manage system services.
41. What are the five required directories when building RPMS?
The /etc/fstab file.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
support for TCP Wrappers
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
42. What command can you use to change the context of files?
The nfsstat command can be used to view NFS statistics.
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.
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.
chcon
43. What directory is used to represent the virtual file system created by the kernel?
load balancing and redundancy benefits
service dhcpd configtest
The smbstatus command shows you currently mounted Samba resources.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
44. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
run on any port you'd like (provided that port is available)
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
45. How would you go about creating a static route?
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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Use the route command with the add option to create a static route.
46. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
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.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
support TCP Wrappers
47. What three protocols can you use to perform network installations?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
You add your action to the end of the /home/user01/.bashrc file.
setsebool -P nfs_export_all_rw=1
48. What happens if you call the command from question 3 with the -c option after it has already been run?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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.
semanage boolean -l
49. What is the name of the package that allows you to install VNC?
A soft limit acts like an alarm - signaling you when you are reaching your limit. If you don't specify a grace period - the soft limit is the max. A hard limit is required only when a grace period exists. It is the max limit you can hit before your g
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The smbstatus command shows you currently mounted Samba resources.
have the same effect
50. A slave DNS server provides...
Enforcing during installation
load balancing and redundancy benefits
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
A virtual host is a way of hosting multiple sites using a single IP address.