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 ____________ is available for each share.
browseable option
Use the resize2fs command to grow a file system.
amount of RAM
The mount command lists all currently mounted file systems.
2. What is the default port that Squid runs on?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
via the command line
By default - Squid runs on port 3128.
user's home directory in the /etc/skel directory
3. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
Use the setgid flag to create the appropriate permissions (chmod 2770).
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
4. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
Enforcing during installation
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
enabled by default
5. What command and options can you use to update the time?
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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the route command with the add option to create a static route.
The htpasswd command can be used to password-protect a web page.
6. How would you disable SELinux protection for NFS - allowing shares to be read/write?
entering rescue mode and repairing the problem.
repquota
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
setsebool -P nfs_export_all_rw=1
7. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
SELinux Booleans provide restrictions to different aspects of a service.
The rpm command can operate in install - query - or verify modes.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
8. Are additional packages besides httpd required for a secure website - If so - what are they?
For Apache to run a secure site - the mod_ssl package is required to be installed.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The SMTP service runs on TCP port 110.
The rndc utility provides a method for managing the DNS server remotely and securely.
9. What file needs to be edited so that the system will mount a file system at boot time?
via the command line
The /etc/fstab file.
Physical volumes - volume groups - and logical volumes.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
10. What is the rndc utility used for?
Use the top command to view CPU and memory usage.
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.
enabled by default
The rndc utility provides a method for managing the DNS server remotely and securely.
11. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
12. There are four types of DNS servers. Name them.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The smbpasswd command is used to create Samba users.
The four types of DNS servers are master - slave - caching-only - and forwarding.
chkconfig—list
13. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The -t nfs option is used with the mount command to mount NFS resources.
ifconfig
14. What does the testparm command do?
export one or all resources
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
choose which mode you'd like it to operate in
you have access to the correct packages or repositories.
15. What are the five required directories when building RPMS?
atq
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
You must open TCP ports 20 and 21 for the FTP server to function properly.
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 happens to jobs that are scheduled to run while the system is off?
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The htpasswd command can be used to password-protect a web page.
ifconfig
17. What are the three items that make up LVM?
The two main config files are master.cf and main.cf.
kickstart installations to work
entering rescue mode and repairing the problem.
Physical volumes - volume groups - and logical volumes.
18. What command can you use to test connectivity to another host?
You add your action to the end of the /home/user01/.bashrc file.
The ping command can be used to verify connectivity to another host.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The smbpasswd command is used to create Samba users.
19. What command can you use to view NFS statistics?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
SELinux provides enhanced granular security for the Linux operating system.
The nfsstat command can be used to view NFS statistics.
20. What command can you use to get information about logical volumes?
mkfs.ext4
lvdisplay
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
21. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The virsh command is used to manage virtual guests.
The rpm command can operate in install - query - or verify modes.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
Use the resize2fs command to grow a file system.
22. SSH does...
user's home directory in the /etc/skel directory
support TCP Wrappers
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
23. Which log file is used to keep track of policy violations?
useradd -c "Jr Admin" George
The /var/log/audit/audit.log file contains all policy violations.
Use the route command with the add option to create a static route.
The service command is used to start - stop - and manage system services.
24. A PXE server eases the automation process but isn't required for...
The tcpdump command is used to monitor network connections on different interfaces.
kickstart installations to work
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.
Typing the mail or mutt command allows you to read mail from the command line.
25. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
You add your action to the end of the /home/user01/.bashrc file.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Physical volumes - volume groups - and logical volumes.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
26. What is the biggest benefit to using LVM over basic partitions?
getfacl
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
chcon
27. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The mount command lists all currently mounted file systems.
load balancing and redundancy benefits
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.
28. What three components are needed to fully automate a kickstart installation?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
29. What is a virtual host?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
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
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
A virtual host is a way of hosting multiple sites using a single IP address.
30. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
Physical volumes - volume groups - and logical volumes.
The du and df commands are used to view available space on the system.
repquota
via the command line
31. What command can you use to query Boolean values?
The SMTP service runs on TCP port 110.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The print option is used with both the fdisk and parted commands to display the current partition tables.
getsebool
32. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Upstart. The Upstart utility is now used in the boot process for 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.
33. 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...
You can use the remove or erase options with yum to remove a package.
The tcpdump command is used to monitor network connections on different interfaces.
have the same effect
chkconfig sshd off
34. To export directories as resources - what file needs to be edited?
35. What is the xinetd service used for?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
36. 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.
Enforcing during installation
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
rpmbuild
SELinux provides enhanced granular security for the Linux operating system.
37. You must dictate the ____________ you want allocated to your virtual machine when you create it.
ifconfig
The three utilities are: route - ping - and nslookup.
The service command is used to start - stop - and manage system services.
amount of RAM
38. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
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 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—list
39. What command can you use to view mounted Samba shares?
The print option is used with both the fdisk and parted commands to display the current partition tables.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The smbstatus command shows you currently mounted Samba resources.
The du and df commands are used to view available space on the system.
40. What is the difference between an ext2 and ext3 file system?
41. Where are Yum repository config files located?
The TFTP server uses UDP port 69.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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.
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.
42. What command can you use to query information from the kernel about RAID arrays?
The NFS service uses TCP port 2049 by default.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
cat /proc/mdstat
43. How do you run a command with elevated privileges?
A virtual host is a way of hosting multiple sites using a single IP address.
Use the route command with the add option to create a static route.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
entering rescue mode and repairing the problem.
44. What option needs to be used with the mount command to mount an NFS resource?
user's home directory in the /etc/skel directory
createrepo
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The -t nfs option is used with the mount command to mount NFS resources.
45. What is the main config file for the DHCP service?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The du and df commands are used to view available space on the system.
46. Runlevel 0 ___________. Runlevel 6 reboots the system.
browseable option
The smbpasswd command is used to create Samba users.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
halts the system
47. What two commands are special for dealing with user login events?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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 lastlog and faillog commands are used to view user login-related events?
Version 2 is the latest and most secure version of SSH.
48. What is the benefit to using centralized authentication?
49. Does a DHCP server allow reserved IP addresses - If so - how?
The -t nfs option is used with the mount command to mount NFS resources.
The du and df commands are used to view available space on the system.
you have access to the correct packages or repositories.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
50. Before you work with quotas - what do you need to do to the file system?
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 du and df commands are used to view available space on the system.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The anonymous_enable=YES option in the main config file allows anonymous uploads.