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. How can you change the security context of a directory to work with Apache?
By default - the rndc utility listens on port 953.
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.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Using the chcon command - you can change the context of a file to work with Apache.
2. What are the three different types of RAID described in this chapter?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Apache uses port 80 for HTTP and port 443 for HTTPS.
setsebool -P nfs_export_all_rw=1
3. How do you run a command with elevated privileges?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
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.
entering rescue mode and repairing the problem.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
4. A PXE server eases the automation process but isn't required for...
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.
kickstart installations to work
chkconfig sshd off
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
5. What command can you use to change the context of files?
cat /proc/mdstat
Network installations can be performed using the HTTP - FTP - and NFS protocols.
chcon
ifconfig
6. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
cat /proc/mdstat
The two main config files are master.cf and main.cf.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
7. What port must be opened on the firewall for DNS?
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.
You can use the authconfig-tui command or the authconfig command.
DNS uses port 53.
semanage boolean -l
8. What command can you use to create a password-protected page?
repquota
The htpasswd command can be used to password-protect a web page.
The smbstatus command shows you currently mounted Samba resources.
A user's home directory is created under the /home directory.
9. What command can you use to query information from the kernel about RAID arrays?
Use the setgid flag to create the appropriate permissions (chmod 2770).
cat /proc/mdstat
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
export one or all resources
10. The firewall service is...
enabled by default
The rndc utility provides a method for managing the DNS server remotely and securely.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
chkconfig—list
11. What command and option can you use to enable a service to start on boot?
DNS uses port 53.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
You can use the authconfig-tui command or the authconfig command.
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.
12. The at command is used to ____________. The cron service handles reoccurring system jobs.
The htpasswd command can be used to password-protect a web page.
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.
schedule one-time-only jobs
repquota
13. What command is used to create an RPM package?
defining a %pre section although it is rarely used
chkconfig sshd off
The vsftpd package is used to install an FTP server.
rpmbuild
14. Where are Yum repository config files located?
have the same effect
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 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.
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.
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.
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.
service sshd statuts
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
via the command line
16. What three commands can you use to help verify that the DNS server is functioning properly?
The -t nfs option is used with the mount command to mount NFS resources.
The vsftpd package is used to install an FTP server.
The dig - host - and ping commands can be used to test DNS server functionality.
The service command is used to start - stop - and manage system services.
17. What happens to jobs that are scheduled to run while the system is off?
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
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.
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
18. There are four types of DNS servers. Name them.
The four types of DNS servers are master - slave - caching-only - and forwarding.
getfacl
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Physical volumes - volume groups - and logical volumes.
19. What are the three modes in which the rpm command can operate?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs 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 rpm command can operate in install - query - or verify modes.
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
20. How can you verify the status of the SSH service after the system has booted?
service sshd statuts
The ping command can be used to verify connectivity to another host.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
support TCP Wrappers
21. 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
22. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The user_list file can be used to limit which users have access to the FTP server.
The virsh command is used to manage virtual guests.
23. What command-line program can you use to check your mail?
Typing the mail or mutt command allows you to read mail from the command line.
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
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The ping command can be used to verify connectivity to another host.
24. Does a DHCP server allow reserved IP addresses - If so - how?
The du and df commands are used to view available space on the system.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
25. What does the partprobe command do?
The NFS service uses TCP port 2049 by default.
service httpd configtest
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 dig - host - and ping commands can be used to test DNS server functionality.
26. What are SELinux Booleans?
SELinux Booleans provide restrictions to different aspects of a service.
For Apache to run a secure site - the mod_ssl package is required to be installed.
support for TCP Wrappers
support TCP Wrappers
27. What is the /var/lib/nfs/etab file used for?
enabled by default
entering rescue mode and repairing the problem.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
user's home directory in the /etc/skel directory
28. What command can you use to test the config files before starting the DNS service?
amount of RAM
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
service named configtest
halts the system
29. What is the name of the section used to run scripts after a kickstart installation?
The du and df commands are used to view available space on the system.
you have access to the correct packages or repositories.
By defining a %post section - you can run scripts after a kickstart installation is complete.
support for TCP Wrappers
30. What is the difference between an A record and a PTR record?
For Apache to run a secure site - the mod_ssl package is required to be installed.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
getsebool
31. What is the default port that Squid runs on?
cat /proc/mdstat
The htpasswd command can be used to password-protect a web page.
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.
By default - Squid runs on port 3128.
32. 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
33. What benefit does a web proxy provide to your network?
You can use the remove or erase options with yum to remove a package.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
you have access to the correct packages or repositories.
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.
34. How can virtual hosts be used?
run on any port you'd like (provided that port is available)
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.
cat /proc/mdstat
halts the system
35. What three components are needed to fully automate a kickstart installation?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
You add your action to the end of the /home/user01/.bashrc file.
36. What are the three items that make up LVM?
The three utilities are: route - ping - and nslookup.
The user_list file can be used to limit which users have access to the FTP server.
The lastlog and faillog commands are used to view user login-related events?
Physical volumes - volume groups - and logical volumes.
37. What option at the GRUB boot menu can you use to append something to a kernel?
DNS uses port 53.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
38. What option would you use to query an installed package using the rpm command?
load balancing and redundancy benefits
The NFS service uses TCP port 2049 by default.
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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
39. Which version of SSH should you use?
Use the route command with the add option to create a static route.
Using the chcon command - you can change the context of a file to work with Apache.
Version 2 is the latest and most secure version of SSH.
The mount command lists all currently mounted file systems.
40. 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.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Use the top command to view CPU and memory usage.
mkfs.ext4
41. Can you put your /boot partition on a RAID 5 array?
service dhcpd configtest
amount of RAM
The smbstatus command shows you currently mounted Samba resources.
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.
42. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
rpmbuild
generates errors under Red Hat Enterprise Linux 6
enabled by default
The rpm command can operate in install - query - or verify modes.
43. What command can you use to create your own repositories?
createrepo
A user's home directory is created under the /home directory.
The lastlog and faillog commands are used to view user login-related events?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
44. What command is used to create a user for Samba?
mkfs.ext4
The smbpasswd command is used to create Samba users.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
45. 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
The lftp command can be used on a client to test FTP server connections.
The DHCP server listens on port 67 by default.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
46. Do you need to write changes to the disk when using the parted command? What about fdisk?
Using the chcon command - you can change the context of a file to work with Apache.
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.
You can use the authconfig-tui command or the authconfig command.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
47. How can you display all virtual guests after they're connected to a hypervisor?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
SELinux provides enhanced granular security for the Linux operating system.
48. What does virsh reboot Client04 do?
defining a %pre section although it is rarely used
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
browseable option
This command reboots virtual guest Client04.
49. What command can you use to view NFS statistics?
This command reboots virtual guest Client04.
alternatives --config mta
The nfsstat command can be used to view NFS statistics.
The smbstatus command shows you currently mounted Samba resources.
50. What command do you use to report information on quota usage?
rpcbind service
repquota
cat /proc/mdstat
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.