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 command can you use to get information about logical volumes?
SSH is used for secure remote management of Linux systems.
The smbstatus command shows you currently mounted Samba resources.
lvdisplay
Use the resize2fs command to grow a file system.
2. What command would you use to create a group - to add the user George to the group?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
export one or all resources
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
rpcbind service
3. What command is used to create an RPM package?
service httpd configtest
Apache uses port 80 for HTTP and port 443 for HTTPS.
rpmbuild
The anonymous_enable=YES option in the main config file allows anonymous uploads.
4. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
choose which mode you'd like it to operate in
useradd -c "Jr Admin" George
load balancing and redundancy benefits
5. What command and options can you use to update the time?
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
The three utilities are: route - ping - and nslookup.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
You must open TCP ports 20 and 21 for the FTP server to function properly.
6. What is NAT - How is it used?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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.
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.
rpcbind service
7. What is the /etc/vsftpd/user_list file used for?
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 rpm command can operate in install - query - or verify modes.
alternatives --config mta
The user_list file can be used to limit which users have access to the FTP server.
8. What is the name of the package used to install an FTP?
export one or all resources
via the command line
The vsftpd package is used to install an FTP server.
service httpd configtest
9. What is the point of using SELinux?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
SELinux provides enhanced granular security for the Linux operating system.
schedule one-time-only jobs
defining a %pre section although it is rarely used
10. 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.
Enforcing during installation
The anonymous_enable=YES option in the main config file allows anonymous uploads.
rpcbind service
11. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
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
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
via the command line
12. Can you name three utilities that can be used for network or DNS client troubleshooting?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
have the same effect
The three utilities are: route - ping - and nslookup.
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.
13. There are four types of DNS servers. Name them.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The virsh command is used to manage virtual guests.
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
14. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
SELinux Booleans provide restrictions to different aspects of a service.
A virtual host is a way of hosting multiple sites using a single IP address.
service dhcpd configtest
15. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
service sshd statuts
A virtual host is a way of hosting multiple sites using a single IP address.
createrepo
16. How would you view all Boolean options for the HTTP service?
The four types of DNS servers are master - slave - caching-only - and forwarding.
getsebool -a | grep http
generates errors under Red Hat Enterprise Linux 6
You can use the remove or erase options with yum to remove a package.
17. A service needs to have _______________ to be able to use it.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
support for TCP Wrappers
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
18. Before you work with ACLs - what do you need to do to the file system?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The htpasswd command can be used to password-protect a web page.
The rndc utility provides a method for managing the DNS server remotely and securely.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
19. What command can you use to view the current ACL on a file?
SELinux provides enhanced granular security for the Linux operating system.
getfacl
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.
Use the route command with the add option to create a static route.
20. What directory is used to represent the virtual file system created by the kernel?
support for TCP Wrappers
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
user's home directory in the /etc/skel directory
21. What is the rndc utility used for?
serve both files and printers to users
The lftp command can be used on a client to test FTP server connections.
The rndc utility provides a method for managing the DNS server remotely and securely.
The du and df commands are used to view available space on the system.
22. What options with the yum command would you use to remove a package?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The TFTP server uses UDP port 69.
chkconfig sshd off
You can use the remove or erase options with yum to remove a package.
23. SSH does...
support TCP Wrappers
The TFTP server uses UDP port 69.
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.
24. 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.
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
Enforcing during installation
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.
25. Runlevel 0 ___________. Runlevel 6 reboots the system.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
load balancing and redundancy benefits
halts the system
cat /proc/mdstat
26. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
The lastlog and faillog commands are used to view user login-related events?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
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 vsftpd package is used to install an FTP server.
27. What are the three different types of RAID described in this chapter?
The NFS service uses TCP port 2049 by default.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
getsebool -a | grep http
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
28. Are additional packages besides httpd required for a secure website - If so - what are they?
repquota
For Apache to run a secure site - the mod_ssl package is required to be installed.
By default - the rndc utility listens on port 953.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
29. What critical step must you take after updating the kernel to a newer version?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
30. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
semanage boolean -l
The mount command lists all currently mounted file systems.
31. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
32. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
The rndc utility provides a method for managing the DNS server remotely and securely.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
defining a %pre section although it is rarely used
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
33. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
Sendmail
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.
halts the system
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.
34. What command and option can you use to enable a service to start on boot?
getsebool -a | grep http
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
You must open TCP ports 20 and 21 for the FTP server to function properly.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
35. What command can be used to view the queue for at service jobs?
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.
atq
export one or all resources
VNC is used to control a remote desktop session.
36. Most boot issues can be resolved by...
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
entering rescue mode and repairing the problem.
load balancing and redundancy benefits
The yum and rpm commands are used for package management.
37. What option would you use to query an installed package using the rpm command?
You can use the remove or erase options with yum to remove a package.
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.
semanage boolean -l
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.
38. What are the three items that make up LVM?
Physical volumes - volume groups - and logical volumes.
chcon
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.
lvdisplay
39. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf 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 lftp command can be used on a client to test FTP server connections.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
40. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. What command and option do you use to view the description of Boolean values?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
semanage boolean -l
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
useradd -c "Jr Admin" George
42. What command can you use to view mounted Samba shares?
The /var/log/audit/audit.log file contains all policy violations.
The htpasswd command can be used to password-protect a web page.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The smbstatus command shows you currently mounted Samba resources.
43. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
rpcbind service
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.
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.
44. What port does the SMTP service run on?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
kickstart installations to work
The SMTP service runs on TCP port 110.
45. What is the main config file for the DHCP service?
used for kickstart and/or network installs
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
46. What command (and options) can be used to create a user named George with the description "Jr Admin"?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Use the setgid flag to create the appropriate permissions (chmod 2770).
useradd -c "Jr Admin" George
47. What commands can you use to add a client machine to an LDAP server?
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 nfsstat command can be used to view NFS statistics.
You can use the authconfig-tui command or the authconfig command.
you have access to the correct packages or repositories.
48. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
You can use the authconfig-tui command or the authconfig command.
Sendmail
The TFTP server uses UDP port 69.
kickstart installations to work
49. How can you change the security context of a directory to work with Apache?
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.
kickstart installations to work
The smbpasswd command is used to create Samba users.
Using the chcon command - you can change the context of a file to work with Apache.
50. What is the default port that Squid runs on?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
By default - Squid runs on port 3128.
VNC is used to control a remote desktop session.
The service command is used to start - stop - and manage system services.