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. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
The lastlog and faillog commands are used to view user login-related events?
The /var/log/audit/audit.log file contains all policy violations.
rpcbind service
The yum and rpm commands are used for package management.
2. Before you work with quotas - what do you need to do to the file system?
chkconfig sshd off
The rpm command can operate in install - query - or verify modes.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
3. How can you verify the status of the SSH service after the system has booted?
chkconfig sshd off
amount of RAM
The SMTP service runs on TCP port 110.
service sshd statuts
4. What command can you use to test the config files before starting the DNS service?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
service named configtest
Use the route command with the add option to create a static route.
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.
5. 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
6. How do you run a command with elevated privileges?
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The TFTP server uses UDP port 69.
7. 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
8. What port does the Apache web server run on - What about HTTPS?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
run on any port you'd like (provided that port is available)
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Apache uses port 80 for HTTP and port 443 for HTTPS.
9. What is the main config file for the DHCP service?
support for TCP Wrappers
A user's home directory is created under the /home directory.
Version 2 is the latest and most secure version of SSH.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
10. Can you name the two commands that can be used to view the free space on the system?
Use the top command to view CPU and memory usage.
semanage boolean -l
The du and df commands are used to view available space on the system.
The three utilities are: route - ping - and nslookup.
11. What critical step must you take after updating the kernel to a newer version?
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.
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.
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.
The DHCP server listens on port 67 by default.
12. What happens to jobs that are scheduled to run while the system is off?
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.
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.
This command reboots virtual guest Client04.
13. What is the biggest benefit to using LVM over basic partitions?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The /var/log/audit/audit.log file contains all policy violations.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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.
14. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The ping command can be used to verify connectivity to another host.
15. What is the /var/lib/nfs/etab file used for?
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 /var/lib/nfs/etab file is used to keep track of currently exported resources.
The two main config files are master.cf and main.cf.
The four types of DNS servers are master - slave - caching-only - and forwarding.
16. How would you view all Boolean options for the HTTP service?
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.
getsebool -a | grep http
amount of RAM
repquota
17. What command is used to show all services being controlled by the xinetd daemon?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
chkconfig xinetd --list
Use the route command with the add option to create a static route.
alternatives --config mta
18. What command can you use to view system processes and their CPU usage?
getsebool
This chapter described tdbsm and smbpasswd back-end authentication.
Use the ps command to view processes and their CPU usage.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
19. What are the three modes in which the rpm command can operate?
The user_list file can be used to limit which users have access to the FTP server.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
mkfs.ext4
The rpm command can operate in install - query - or verify modes.
20. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
The /etc/fstab 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.
The vsftpd package is used to install an FTP server.
21. A PXE server eases the automation process but isn't required for...
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.
kickstart installations to work
For Apache to run a secure site - the mod_ssl package is required to be installed.
The print option is used with both the fdisk and parted commands to display the current partition tables.
22. What is a gateway used for on a network?
halts the system
enabled by default
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.
By default - Squid runs on port 3128.
23. Samba servers can...
serve both files and printers to users
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.
schedule one-time-only jobs
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
24. What protocols are used with Dovecot?
Physical volumes - volume groups - and logical volumes.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
25. Which log file is used to keep track of policy violations?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The /var/log/audit/audit.log file contains all policy violations.
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.
chkconfig sshd off
26. Do you need to write changes to the disk when using the parted command? What about fdisk?
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
service sshd statuts
service named configtest
27. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Sendmail
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
28. How would you go about creating a static route?
This chapter described tdbsm and smbpasswd back-end authentication.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
LUKS encryption
Use the route command with the add option to create a static route.
29. Are additional packages besides httpd required for a secure website - If so - what are they?
By default - Squid runs on port 3128.
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
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
30. A service needs to have _______________ to be able to use it.
support for TCP Wrappers
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.
The three utilities are: route - ping - and nslookup.
The lastlog and faillog commands are used to view user login-related events?
31. What is the top command used for?
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
Use the top command to view CPU and memory usage.
You must open TCP ports 20 and 21 for the FTP server to function properly.
The lftp command can be used on a client to test FTP server connections.
32. What are the three different types of RAID described in this chapter?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
chkconfig—list
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
33. To create a RAID or LVM partition using kickstart
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
This command reboots virtual guest Client04.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
34. Which remote management service is installed by default?Can you name the port that it uses?
The virsh command is used to manage virtual guests.
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
cat /proc/mdstat
35. How can virtual hosts be used?
Typing the mail or mutt command allows you to read mail from the command line.
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.
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 user_list file can be used to limit which users have access to the FTP server.
36. You must dictate the ____________ you want allocated to your virtual machine when you create it.
Use the setgid flag to create the appropriate permissions (chmod 2770).
rpcbind service
amount of RAM
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.
37. What is the difference between an A record and a PTR record?
service httpd configtest
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
38. What port on the firewall needs to be open for the TFTP server to work?
The yum and rpm commands are used for package management.
VNC is used to control a remote desktop session.
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.
The TFTP server uses UDP port 69.
39. What command can you use to check the config file of the DHCP server?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
service dhcpd configtest
DNS uses port 53.
40. What command do you use to report information on quota usage?
repquota
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
support for TCP Wrappers
41. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The rpm command can operate in install - query - or verify modes.
42. What command can you use to get information about logical volumes?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
lvdisplay
Use the ps command to view processes and their CPU usage.
43. What command is used to create an RPM package?
LUKS encryption
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
rpmbuild
The nfsstat command can be used to view NFS statistics.
44. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
45. What command can you use to view mounted Samba shares?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
chcon
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.
The smbstatus command shows you currently mounted Samba resources.
46. What three commands can you use to help verify that the DNS server is functioning properly?
The NFS service uses TCP port 2049 by default.
The dig - host - and ping commands can be used to test DNS server functionality.
Sendmail
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
47. What is the /etc/vsftpd/user_list file used for?
Enforcing during installation
generates errors under Red Hat Enterprise Linux 6
You can use the authconfig-tui command or the authconfig command.
The user_list file can be used to limit which users have access to the FTP server.
48. What is the rndc utility used for?
enabled by default
The rndc utility provides a method for managing the DNS server remotely and securely.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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
49. What command can you use to manage system services?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
via the command line
For Apache to run a secure site - the mod_ssl package is required to be installed.
The service command is used to start - stop - and manage system services.
50. What command disables the SSH service from running when the system boots?
rpcbind service
The ping command can be used to verify connectivity to another host.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
chkconfig sshd off