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 create a password-protected page?
repquota
The htpasswd command can be used to password-protect a web page.
you have access to the correct packages or repositories.
The rndc utility provides a method for managing the DNS server remotely and securely.
2. What is the name of the section used to run scripts after a kickstart installation?
repquota
service sshd statuts
By defining a %post section - you can run scripts after a kickstart installation is complete.
By default - Squid runs on port 3128.
3. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The NFS service uses TCP port 2049 by default.
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 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.
via the command line
4. What does the testparm command do?
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The /var/log/audit/audit.log file contains all policy violations.
5. What does it mean if you ping a host and you receive the response Destination Unreachable?
enabled by default
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
6. What command can you use to view NFS statistics?
service named configtest
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.
The nfsstat command can be used to view NFS statistics.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
7. What option would you use to query an installed package using the rpm command?
createrepo
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.
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
8. What is NAT - How is it used?
Physical volumes - volume groups - and logical volumes.
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.
entering rescue mode and repairing the problem.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
9. What is the name of the package used to install an FTP?
Use the resize2fs command to grow a file system.
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.
browseable option
The vsftpd package is used to install an FTP server.
10. What three commands can you use to help verify that the DNS server is functioning properly?
you have access to the correct packages or repositories.
The ping command can be used to verify connectivity to another host.
The three utilities are: route - ping - and nslookup.
The dig - host - and ping commands can be used to test DNS server functionality.
11. What port does the SMTP service run on?
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.
The mount command lists all currently mounted file systems.
The SMTP service runs on TCP port 110.
The tcpdump command is used to monitor network connections on different interfaces.
12. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The mount command lists all currently mounted file systems.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
13. What command can you use to query Boolean values?
getsebool
The tcpdump command is used to monitor network connections on different interfaces.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
14. What options with the yum command would you use to remove a package?
serve both files and printers to users
Use the resize2fs command to grow a file system.
You can use the remove or erase options with yum to remove a package.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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.
browseable option
The mount command lists all currently mounted file systems.
via the command line
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
16. What is the top command used for?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Typing the mail or mutt command allows you to read mail from the command line.
alternatives --config mta
Use the top command to view CPU and memory usage.
17. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
chkconfig xinetd --list
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
rpcbind service
18. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
serve both files and printers to users
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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.
19. What command and option can you use to enable a service to start on boot?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Physical volumes - volume groups - and logical volumes.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
20. 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
21. 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
22. Most boot issues can be resolved by...
By default - Squid runs on port 3128.
schedule one-time-only jobs
getsebool
entering rescue mode and repairing the problem.
23. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
24. Can you put your /boot partition on a RAID 5 array?
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
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.
support for TCP Wrappers
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
25. SSH does...
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.
support TCP Wrappers
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
SELinux Booleans provide restrictions to different aspects of a service.
26. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The tcpdump command is used to monitor network connections on different interfaces.
chcon
27. What command (and options) can be used to create a user named George with the description "Jr Admin"?
The three utilities are: route - ping - and nslookup.
useradd -c "Jr Admin" George
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
28. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
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.
user's home directory in the /etc/skel directory
The htpasswd command can be used to password-protect a web page.
29. What is the main config file for the DHCP service?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
used for kickstart and/or network installs
By defining a %post section - you can run scripts after a kickstart installation is complete.
30. What is a gateway used for on a network?
Physical volumes - volume groups - and logical volumes.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
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.
This chapter described tdbsm and smbpasswd back-end authentication.
31. The firewall service is...
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
choose which mode you'd like it to operate in
enabled by default
The virsh command is used to manage virtual guests.
32. What three protocols can you use to perform network installations?
The TFTP server uses UDP port 69.
Enforcing during installation
useradd -c "Jr Admin" George
Network installations can be performed using the HTTP - FTP - and NFS protocols.
33. What command and option do you use to view the description of Boolean values?
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.
semanage boolean -l
The mount command lists all currently mounted file systems.
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.
34. What is SSH used for?
support TCP Wrappers
SSH is used for secure remote management of Linux systems.
The service command is used to start - stop - and manage system services.
atq
35. What are the three different types of RAID described in this chapter?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
service httpd configtest
repquota
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.
36. 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 NFS service uses TCP port 2049 by default.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
37. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
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.
getfacl
used for kickstart and/or network installs
getsebool -a | grep http
38. What is the xinetd service used for?
A user's home directory is created under the /home directory.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
amount of RAM
39. What commands can you use to add a client machine to an LDAP server?
getfacl
A user's home directory is created under the /home directory.
Use the route command with the add option to create a static route.
You can use the authconfig-tui command or the authconfig command.
40. What command can you use to check the config file of the DHCP server?
generates errors under Red Hat Enterprise Linux 6
service dhcpd configtest
You can use the authconfig-tui command or the authconfig command.
Enforcing during installation
41. How can you change the security context of a directory to work with Apache?
defining a %pre section although it is rarely used
The /etc/fstab file.
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 chcon command - you can change the context of a file to work with Apache.
42. Before you work with ACLs - what do you need to do to the file system?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
SELinux Booleans provide restrictions to different aspects of a service.
43. Which version of SSH should you use?
The NFS service uses TCP port 2049 by default.
Version 2 is the latest and most secure version of SSH.
The du and df commands are used to view available space on the system.
DNS uses port 53.
44. A slave DNS server provides...
load balancing and redundancy benefits
The -t nfs option is used with the mount command to mount NFS resources.
user's home directory in the /etc/skel directory
schedule one-time-only jobs
45. What command would you use to create a group - to add the user George to the group?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The DHCP server listens on port 67 by default.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
46. What command can you use to validate the syntax of the Apache config file?
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.
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.
service httpd configtest
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
47. How would you install a group of packages all at a single time?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
Use the yum groupinstall command to install multiple packages in a single group at once.
By defining a %post section - you can run scripts after a kickstart installation is complete.
SELinux Booleans provide restrictions to different aspects of a service.
48. What client-side command can you use to test your FTP server connection?
service dhcpd configtest
The lftp command can be used on a client to test FTP server connections.
ifconfig
The dig - host - and ping commands can be used to test DNS server functionality.
49. 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
50. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
generates errors under Red Hat Enterprise Linux 6
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.