SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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 option needs to be used with the mount command to mount an NFS resource?
service httpd configtest
repquota
Sendmail
The -t nfs option is used with the mount command to mount NFS resources.
2. What is the biggest benefit to using LVM over basic partitions?
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.
By default - Squid runs on port 3128.
alternatives --config mta
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.
3. How do you run a command with elevated privileges?
This chapter described tdbsm and smbpasswd back-end authentication.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
4. A slave DNS server provides...
mkfs.ext4
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.
load balancing and redundancy benefits
The service command is used to start - stop - and manage system services.
5. What option is used with both the fdisk and parted commands to display the current partition tables?
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The -t nfs option is used with the mount command to mount NFS resources.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
6. Should you allow remote root access - Why or why not?
7. What command is used to create an RPM package?
rpmbuild
you have access to the correct packages or repositories.
atq
support for TCP Wrappers
8. What is VNC?
via the command line
By default - Squid runs on port 3128.
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.
VNC is used to control a remote desktop session.
9. It is possible to run scripts before a kickstart installation. This is done by...
rpmbuild
defining a %pre section although it is rarely used
The smbpasswd command is used to create Samba users.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
10. What port does the DHCP server listen on by default?
The DHCP server listens on port 67 by default.
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
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.
Enforcing during installation
11. What command can you use to create a file system?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
have the same effect
mkfs.ext4
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
12. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
via the command line
user's home directory in the /etc/skel directory
For Apache to run a secure site - the mod_ssl package is required to be installed.
13. What is the difference between an ext2 and ext3 file system?
14. Through its main config file - SSH can be configured to...
15. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
A user's home directory is created under the /home directory.
service dhcpd configtest
amount of RAM
16. 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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Enforcing during installation
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
17. What option is used to allow anonymous uploads to the FTP server?
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.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
18. What command can you use to view system processes and their CPU usage?
The du and df commands are used to view available space on the system.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Use the ps command to view processes and their CPU usage.
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.
19. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
kickstart installations to work
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.
ifconfig
20. Which file shows you all the client IP addresses?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
getsebool
support for TCP Wrappers
21. What command can be used to easily list all the options in the FTP main 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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
via the command line
22. To grow a file system
Use the resize2fs command to grow a file system.
entering rescue mode and repairing the problem.
The print option is used with both the fdisk and parted commands to display the current partition tables.
support for TCP Wrappers
23. Which log file is used to keep track of policy violations?
The /var/log/audit/audit.log file contains all policy violations.
createrepo
The anonymous_enable=YES option in the main config file allows anonymous uploads.
amount of RAM
24. The ____________ is available for each share.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The ping command can be used to verify connectivity to another host.
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.
browseable option
25. Before you work with quotas - what do you need to do to the file system?
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
mkfs.ext4
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
26. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The ping command can be used to verify connectivity to another host.
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
27. What port does the SMTP service run on?
The SMTP service runs on TCP port 110.
getsebool
Use the top command to view CPU and memory usage.
Use the yum groupinstall command to install multiple packages in a single group at once.
28. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
user's home directory in the /etc/skel directory
you have access to the correct packages or repositories.
This chapter described tdbsm and smbpasswd back-end authentication.
29. What three commands can you use to help verify that the DNS server is functioning properly?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
support TCP Wrappers
The dig - host - and ping commands can be used to test DNS server functionality.
30. What command would you use to create a group - to add the user George to the group?
support TCP Wrappers
You can use the remove or erase options with yum to remove a package.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
support for TCP Wrappers
31. Which remote management service is installed by default?Can you name the port that it uses?
The four types of DNS servers are master - slave - caching-only - and forwarding.
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 user_list file can be used to limit which users have access to the FTP server.
This chapter described tdbsm and smbpasswd back-end authentication.
32. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The /var/log/audit/audit.log file contains all policy violations.
33. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
setsebool -P nfs_export_all_rw=1
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.
chkconfig sshd off
34. What two ports should be opened on the firewall for the FTP server to function properly?
user's home directory in the /etc/skel directory
The /var/log/audit/audit.log file contains all policy violations.
You must open TCP ports 20 and 21 for the FTP server to function properly.
This command reboots virtual guest Client04.
35. What protocols are used with Dovecot?
Physical volumes - volume groups - and logical volumes.
The vsftpd package is used to install an FTP server.
halts the system
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
36. SSH does...
support TCP Wrappers
service httpd configtest
entering rescue mode and repairing the problem.
The virsh command is used to manage virtual guests.
37. What is the point of using SELinux?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
By default - Squid runs on port 3128.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
SELinux provides enhanced granular security for the Linux operating system.
38. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
getsebool -a | grep http
setsebool -P nfs_export_all_rw=1
chkconfig—list
used for kickstart and/or network installs
39. The firewall service is...
enabled by default
run on any port you'd like (provided that port is available)
The rpm command can operate in install - query - or verify modes.
This chapter described tdbsm and smbpasswd back-end authentication.
40. What command do you use to report information on quota usage?
support TCP Wrappers
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
DNS uses port 53.
repquota
41. What does the rdnc-confgen command do?
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 rdnc-confgen command generates an rndc.conf file for the rndc utility.
Version 2 is the latest and most secure version of SSH.
semanage boolean -l
42. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
43. What command can you use to view NFS statistics?
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.
semanage boolean -l
The nfsstat command can be used to view NFS statistics.
Using the chcon command - you can change the context of a file to work with Apache.
44. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
defining a %pre section although it is rarely used
generates errors under Red Hat Enterprise Linux 6
rpmbuild
45. What does the testparm command do?
getsebool
have the same effect
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The /etc/fstab file.
46. What are SELinux Booleans?
SELinux Booleans provide restrictions to different aspects of a service.
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.
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.
chkconfig sshd off
47. What command and option do you use to view the description of Boolean values?
The dig - host - and ping commands can be used to test DNS server functionality.
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.
semanage boolean -l
The ping command can be used to verify connectivity to another host.
48. What is a gateway used for on a network?
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
49. What is the difference between an A record and a PTR record?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Enforcing during installation
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
via the command line
50. What benefit does a web proxy provide to your network?
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.
support TCP Wrappers
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.