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 port does the SMTP service run on?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The nfsstat command can be used to view NFS statistics.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The SMTP service runs on TCP port 110.
2. 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.
mkfs.ext4
LUKS encryption
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.
3. What command can you use to view the current ACL on a file?
LUKS encryption
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
enabled by default
getfacl
4. The package selection screen allows you to install any software you want during the installation process as long as...
The -t nfs option is used with the mount command to mount NFS resources.
you have access to the correct packages or repositories.
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.
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.
5. How do you run a command with elevated privileges?
The four types of DNS servers are master - slave - caching-only - and forwarding.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The DHCP server listens on port 67 by default.
6. What port does the DHCP server listen on by default?
The DHCP server listens on port 67 by default.
Use the resize2fs command to grow a file system.
useradd -c "Jr Admin" George
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.
7. Are additional packages besides httpd required for a secure website - If so - what are they?
Use the yum groupinstall command to install multiple packages in a single group at once.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The two main config files are master.cf and main.cf.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
8. How can you list all services on the system to tell whether they will boot during startup?
chkconfig—list
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Use the top command to view CPU and memory usage.
browseable option
9. What command can you use to create a new SSL certificate?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
10. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. What three commands can you use to help verify that the DNS server is functioning properly?
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.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
getfacl
The dig - host - and ping commands can be used to test DNS server functionality.
12. What port does the Apache web server run on - What about HTTPS?
service dhcpd configtest
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Apache uses port 80 for HTTP and port 443 for HTTPS.
chkconfig sshd off
13. The exportfs command is used to...
The service command is used to start - stop - and manage system services.
rpcbind service
This command reboots virtual guest Client04.
export one or all resources
14. What are the side effects of shrinking a volume group or logical volume?
defining a %pre section although it is rarely used
You must open TCP ports 20 and 21 for the FTP server to function properly.
Version 2 is the latest and most secure version of SSH.
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.
15. What is the superblock used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
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.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The user_list file can be used to limit which users have access to the FTP server.
16. What does it mean if you ping a host and you receive the response Destination Unreachable?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The nfsstat command can be used to view NFS statistics.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
17. What is the virsh command used for?
semanage boolean -l
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The virsh command is used to manage virtual guests.
18. Do you need to write changes to the disk when using the parted command? What about fdisk?
halts the 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.
via the command line
SELinux Booleans provide restrictions to different aspects of a service.
19. A slave DNS server provides...
By default - the rndc utility listens on port 953.
load balancing and redundancy benefits
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.
The nfsstat command can be used to view NFS statistics.
20. Can you put your /boot partition on a RAID 5 array?
chkconfig—list
By default - the rndc utility listens on port 953.
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.
The /var/log/audit/audit.log file contains all policy violations.
21. How would you view all Boolean options for the HTTP service?
support TCP Wrappers
getsebool -a | grep http
The smbpasswd command is used to create Samba users.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
22. What command can you use to view system processes and their CPU usage?
Typing the mail or mutt command allows you to read mail from the command line.
Use the ps command to view processes and their CPU usage.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Use the setgid flag to create the appropriate permissions (chmod 2770).
23. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Use the resize2fs command to grow a file system.
24. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
via the command line
25. The ____________ is available for each share.
createrepo
serve both files and printers to users
browseable option
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
26. 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
27. What two commands are used for package management?
repquota
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.
The yum and rpm commands are used for package management.
28. What is the name of the section used to run scripts after a kickstart installation?
run on any port you'd like (provided that port is available)
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 du and df commands are used to view available space on the system.
By defining a %post section - you can run scripts after a kickstart installation is complete.
29. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
SSH is used for secure remote management of Linux systems.
Using the chcon command - you can change the context of a file to work with Apache.
via the command line
30. What does the partprobe command do?
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.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
schedule one-time-only jobs
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.
31. What is the name of the package used to install an FTP?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The smbstatus command shows you currently mounted Samba resources.
The vsftpd package is used to install an FTP server.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
32. Before you work with ACLs - what do you need to do to the file system?
load balancing and redundancy benefits
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
cat /proc/mdstat
33. How can you display all virtual guests after they're connected to a hypervisor?
chkconfig sshd off
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The three utilities are: route - ping - and nslookup.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
34. What option is used to allow anonymous uploads to the FTP server?
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.
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 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.
35. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
atq
generates errors under Red Hat Enterprise Linux 6
The three utilities are: route - ping - and nslookup.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
36. What options with the yum command would you use to remove a package?
Use the route command with the add option to create a static route.
You can use the remove or erase options with yum to remove a package.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The print option is used with both the fdisk and parted commands to display the current partition tables.
37. How can you change the security context of a directory to work with Apache?
Using the chcon command - you can change the context of a file to work with Apache.
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.
schedule one-time-only jobs
38. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
support for TCP Wrappers
ifconfig
atq
39. 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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Enforcing during installation
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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
40. What commands can you use to add a client machine to an LDAP server?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
You can use the authconfig-tui command or the authconfig command.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
41. Runlevel 0 ___________. Runlevel 6 reboots the system.
getfacl
halts the system
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.
support TCP Wrappers
42. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
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 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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The htpasswd command can be used to password-protect a web page.
43. 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
44. What command displays your current interfaces and IP address?
The virsh command is used to manage virtual guests.
ifconfig
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.
alternatives --config mta
45. A service needs to have _______________ to be able to use it.
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.
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.
chcon
support for TCP Wrappers
46. What is the benefit to using centralized authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
47. What is the point of using SELinux?
Version 2 is the latest and most secure version of SSH.
SELinux provides enhanced granular security for the Linux operating system.
support for TCP Wrappers
This chapter described tdbsm and smbpasswd back-end authentication.
48. What benefit does a web proxy provide to your network?
user's home directory in the /etc/skel directory
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
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 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.
49. What port does the rndc utility listen on by default?
chkconfig sshd off
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
By default - the rndc utility listens on port 953.
50. 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.
ifconfig
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.