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. There are four types of DNS servers. Name them.
mkfs.ext4
The four types of DNS servers are master - slave - caching-only - and forwarding.
The /etc/fstab file.
export one or all resources
2. What command do you use to report information on quota usage?
Use the setgid flag to create the appropriate permissions (chmod 2770).
repquota
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 last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
3. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Physical volumes - volume groups - and logical volumes.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
4. What are the two config files for Postfix called?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
The two main config files are master.cf and main.cf.
5. What file needs to be edited so that the system will mount a file system at boot time?
The yum and rpm commands are used for package management.
ifconfig
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The /etc/fstab file.
6. Which remote management service is installed by default?Can you name the port that it uses?
You can use the remove or erase options with yum to remove a package.
This chapter described tdbsm and smbpasswd back-end authentication.
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 NFS service uses TCP port 2049 by default.
7. What port on the firewall needs to be open for the TFTP server to work?
This command reboots virtual guest Client04.
Physical volumes - volume groups - and logical volumes.
The TFTP server uses UDP port 69.
Use the route command with the add option to create a static route.
8. What port does the SMTP service run on?
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.
serve both files and printers to users
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The SMTP service runs on TCP port 110.
9. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
A virtual host is a way of hosting multiple sites using a single IP address.
semanage boolean -l
SELinux provides enhanced granular security for the Linux operating system.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
10. SSH does...
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
support TCP Wrappers
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
11. What is the name of the package that allows you to install VNC?
Typing the mail or mutt command allows you to read mail from the command line.
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
12. What protocols are used with Dovecot?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
getfacl
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
13. What is the top command used for?
Use the top command to view CPU and memory usage.
The vsftpd package is used to install an FTP server.
The dig - host - and ping commands can be used to test DNS server functionality.
For Apache to run a secure site - the mod_ssl package is required to be installed.
14. How can you change the security context of a directory to work with Apache?
SELinux provides enhanced granular security for the Linux operating system.
Using the chcon command - you can change the context of a file to work with Apache.
The TFTP server uses UDP port 69.
The three utilities are: route - ping - and nslookup.
15. What two commands are used for package management?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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.
SELinux Booleans provide restrictions to different aspects of a service.
The yum and rpm commands are used for package management.
16. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
The virsh command is used to manage virtual guests.
The -t nfs option is used with the mount command to mount NFS resources.
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.
17. What is NAT - How is it used?
The rndc utility provides a method for managing the DNS server remotely and securely.
By defining a %post section - you can run scripts after a kickstart installation is complete.
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.
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.
18. What command can you use to create a password-protected page?
service dhcpd configtest
The htpasswd command can be used to password-protect a web page.
cat /proc/mdstat
schedule one-time-only jobs
19. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
The three utilities are: route - ping - and nslookup.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
rpcbind service
Use the top command to view CPU and memory usage.
20. The firewall service is...
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.
export one or all resources
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
enabled by default
21. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
Enforcing during installation
The ping command can be used to verify connectivity to another host.
Use the top command to view CPU and memory usage.
22. You must dictate the ____________ you want allocated to your virtual machine when you create it.
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.
createrepo
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
amount of RAM
23. How can you verify the status of the SSH service after the system has booted?
setsebool -P nfs_export_all_rw=1
service sshd statuts
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
24. Where are Yum repository config files located?
used for kickstart and/or network installs
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 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 dig - host - and ping commands can be used to test DNS server functionality.
25. What options with the yum command would you use to remove a package?
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
You can use the remove or erase options with yum to remove a package.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
26. A PXE server eases the automation process but isn't required for...
kickstart installations to work
The /var/log/audit/audit.log file contains all policy violations.
halts the system
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
27. 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.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
cat /proc/mdstat
28. What three commands can you use to help verify that the DNS server is functioning properly?
The user_list file can be used to limit which users have access to the FTP server.
Enforcing during installation
The dig - host - and ping commands can be used to test DNS server functionality.
The print option is used with both the fdisk and parted commands to display the current partition tables.
29. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Use the route command with the add option to create a static route.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
30. What option would you use to query an installed package using the rpm command?
The nfsstat command can be used to view NFS statistics.
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 virsh command is used to manage virtual guests.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
31. What command and option do you use to view the description of Boolean values?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
semanage boolean -l
have the same effect
The ping command can be used to verify connectivity to another host.
32. What command can you use to query Boolean values?
serve both files and printers to users
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.
Use the route command with the add option to create a static route.
getsebool
33. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The du and df commands are used to view available space on the system.
LUKS encryption
useradd -c "Jr Admin" George
The yum and rpm commands are used for package management.
34. What is VNC?
used for kickstart and/or network installs
VNC is used to control a remote desktop session.
user's home directory in the /etc/skel directory
A large warning message appears indicating that the key doesn't match the host you are connecting to. You have to remove the key/host pair from the known_hosts file to proceed.
35. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the resize2fs command to grow a file system.
A virtual host is a way of hosting multiple sites using a single IP address.
36. What is the format of the /etc/shadow file?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The lftp command can be used on a client to test FTP server connections.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
37. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
service httpd configtest
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
38. 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
39. What does virsh reboot Client04 do?
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.
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.
chkconfig—list
This command reboots virtual guest Client04.
40. What happens to jobs that are scheduled to run while the system is off?
The two main config files are master.cf and main.cf.
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 ping command can be used to verify connectivity to another host.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
41. Does a DHCP server allow reserved IP addresses - If so - how?
rpmbuild
For Apache to run a secure site - the mod_ssl package is required to be installed.
The tcpdump command is used to monitor network connections on different interfaces.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
42. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
DNS uses port 53.
generates errors under Red Hat Enterprise Linux 6
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
43. What command (and options) can be used to create a user named George with the description "Jr Admin"?
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.
useradd -c "Jr Admin" George
generates errors under Red Hat Enterprise Linux 6
44. What option needs to be used with the mount command to mount an NFS resource?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The -t nfs option is used with the mount command to mount NFS resources.
user's home directory in the /etc/skel directory
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
45. What command do you use to change the permissions on a file or directory - To change ownership?
The TFTP server uses UDP port 69.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
46. What are SELinux Booleans?
SELinux Booleans provide restrictions to different aspects of a service.
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
semanage boolean -l
47. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
By default - Squid runs on port 3128.
You can use the authconfig-tui command or the authconfig command.
The du and df commands are used to view available space on the system.
Use the setgid flag to create the appropriate permissions (chmod 2770).
48. What command can you use to create your own repositories?
atq
By default - Squid runs on port 3128.
createrepo
have the same effect
49. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
getfacl
used for kickstart and/or network installs
The smbpasswd command is used to create Samba users.
50. What port does the rndc utility listen on by default?
The du and df commands are used to view available space on the system.
By default - the rndc utility listens on port 953.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The htpasswd command can be used to password-protect a web page.