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 file contains all messages generated during installation that can be used for troubleshooting if the need arises?
DNS uses port 53.
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.
rpcbind service
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
2. What command can you use to view system processes and their CPU usage?
Use the ps command to view processes and their CPU usage.
support for TCP Wrappers
A virtual host is a way of hosting multiple sites using a single IP address.
getsebool
3. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
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.
Enforcing during installation
4. What port does the SMTP service run on?
service httpd configtest
chkconfig sshd off
The /var/log/audit/audit.log file contains all policy violations.
The SMTP service runs on TCP port 110.
5. What are the side effects of shrinking a volume group or logical volume?
The tcpdump command is used to monitor network connections on different interfaces.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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.
6. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The tcpdump command is used to monitor network connections on different interfaces.
Enforcing during installation
amount of RAM
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.
7. What two commands are special for dealing with user login events?
generates errors under Red Hat Enterprise Linux 6
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 lastlog and faillog commands are used to view user login-related events?
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 does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The tcpdump command is used to monitor network connections on different interfaces.
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.
The SMTP service runs on TCP port 110.
9. SSH does...
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
support TCP Wrappers
kickstart installations to work
generates errors under Red Hat Enterprise Linux 6
10. Place all files you want added to a _______________ during creation.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. What are SELinux Booleans?
Typing the mail or mutt command allows you to read mail from the command line.
via the command line
SELinux Booleans provide restrictions to different aspects of a service.
By default - the rndc utility listens on port 953.
12. What port does NFS use by default?
The smbstatus command shows you currently mounted Samba resources.
The NFS service uses TCP port 2049 by default.
VNC is used to control a remote desktop session.
By default - Squid runs on port 3128.
13. How can virtual hosts be used?
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Physical volumes - volume groups - and logical volumes.
14. What command can you use to create a file system?
mkfs.ext4
You add your action to the end of the /home/user01/.bashrc file.
load balancing and redundancy benefits
The SMTP service runs on TCP port 110.
15. What command can you use to monitor and troubleshoot network connections?
The smbpasswd command is used to create Samba users.
The tcpdump command is used to monitor network connections on different interfaces.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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.
16. What command can be used to easily list all the options in the FTP main config file?
The two main config files are master.cf and main.cf.
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
17. What three protocols can you use to perform network installations?
The htpasswd command can be used to password-protect a web page.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The user_list file can be used to limit which users have access to the FTP server.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
18. What command (and options) can be used to create a user named George with the description "Jr Admin"?
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.
lvdisplay
useradd -c "Jr Admin" George
atq
19. What is VNC?
Enforcing during installation
VNC is used to control a remote desktop session.
The du and df commands are used to view available space on the system.
browseable option
20. What command can you use to view mounted Samba shares?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Typing the mail or mutt command allows you to read mail from the command line.
The smbstatus command shows you currently mounted Samba resources.
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.
21. What commands can you use to add a client machine to an LDAP server?
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.
kickstart installations to work
You can use the authconfig-tui command or the authconfig command.
Use the ps command to view processes and their CPU usage.
22. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
The four types of DNS servers are master - slave - caching-only - and forwarding.
SSH is used for secure remote management of Linux systems.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
via the command line
23. 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.
you have access to the correct packages or repositories.
Typing the mail or mutt command allows you to read mail from the command line.
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.
24. A PXE server eases the automation process but isn't required for...
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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
kickstart installations to work
25. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
cat /proc/mdstat
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Use the setgid flag to create the appropriate permissions (chmod 2770).
26. What does the testparm command do?
By default - Squid runs on port 3128.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
27. What command can you use to view NFS statistics?
The DHCP server listens on port 67 by default.
The tcpdump command is used to monitor network connections on different interfaces.
The nfsstat command can be used to view NFS statistics.
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.
28. What command disables the SSH service from running when the system boots?
DNS uses port 53.
A virtual host is a way of hosting multiple sites using a single IP address.
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.
chkconfig sshd off
29. GRUB has three stages. Can you name them?
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.
atq
The TFTP server uses UDP port 69.
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
30. What command can you use to create a new SSL certificate?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
31. Which file shows you all the client IP addresses?
Sendmail
The /var/log/audit/audit.log file contains all policy violations.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The nfsstat command can be used to view NFS statistics.
32. 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.
You can use the authconfig-tui command or the authconfig command.
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.
Enforcing during installation
The du and df commands are used to view available space on the system.
33. What command can you use to change the context of files?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
chcon
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.
SELinux provides enhanced granular security for the Linux operating system.
34. What option is used with both the fdisk and parted commands to display the current partition tables?
browseable option
The print option is used with both the fdisk and parted commands to display the current partition tables.
service httpd configtest
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
35. What are the five required directories when building RPMS?
chkconfig xinetd --list
service httpd configtest
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The ping command can be used to verify connectivity to another host.
36. What command can you use to test connectivity to another host?
The tcpdump command is used to monitor network connections on different interfaces.
The smbstatus command shows you currently mounted Samba resources.
The ping command can be used to verify connectivity to another host.
browseable option
37. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
Use the resize2fs command to grow a file system.
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 add your action to the end of the /home/user01/.bashrc file.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
38. A slave DNS server provides...
chkconfig sshd off
generates errors under Red Hat Enterprise Linux 6
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
load balancing and redundancy benefits
39. What does virsh reboot Client04 do?
export one or all resources
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
This command reboots virtual guest Client04.
You can use the authconfig-tui command or the authconfig command.
40. What is the /etc/vsftpd/user_list file used for?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The dig - host - and ping commands can be used to test DNS server functionality.
The nfsstat command can be used to view NFS statistics.
The user_list file can be used to limit which users have access to the FTP server.
41. 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
42. What command-line program can you use to check your mail?
The smbstatus command shows you currently mounted Samba resources.
Sendmail
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.
Typing the mail or mutt command allows you to read mail from the command line.
43. What command do you use to change the permissions on a file or directory - To change ownership?
semanage boolean -l
SELinux Booleans provide restrictions to different aspects of a service.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
44. A service needs to have _______________ to be able to use it.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
serve both files and printers to users
used for kickstart and/or network installs
support for TCP Wrappers
45. 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
46. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
47. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
By default - Squid runs on port 3128.
The htpasswd command can be used to password-protect a web page.
repquota
49. What port does the rndc utility listen on by default?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The service command is used to start - stop - and manage system services.
By default - the rndc utility listens on port 953.
run on any port you'd like (provided that port is available)
50. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.