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 test connectivity to another host?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
you have access to the correct packages or repositories.
The ping command can be used to verify connectivity to another host.
Using the chcon command - you can change the context of a file to work with Apache.
2. What is the xinetd service used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
3. To create a RAID or LVM partition using kickstart
The NFS service uses TCP port 2049 by default.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
4. What command can you use to create a new SSL certificate?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
5. What is the top command used for?
The smbpasswd command is used to create Samba users.
used for kickstart and/or network installs
service httpd configtest
Use the top command to view CPU and memory usage.
6. What command-line program can you use to check your mail?
Typing the mail or mutt command allows you to read mail from the command line.
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
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.
7. What port on the firewall needs to be open for the TFTP server to work?
The print option is used with both the fdisk and parted commands to display the current partition tables.
export one or all resources
The TFTP server uses UDP port 69.
A user's home directory is created under the /home directory.
8. Do you need to write changes to the disk when using the parted command? What about fdisk?
The virsh command is used to manage virtual guests.
DNS uses port 53.
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.
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.
9. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
have the same effect
via the command line
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.
You can use the authconfig-tui command or the authconfig command.
10. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
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.
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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
11. What command can be used to easily list all the options in the FTP main config file?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
VNC is used to control a remote desktop session.
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
12. What are the three different types of RAID described in this chapter?
halts the system
choose which mode you'd like it to operate in
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The vsftpd package is used to install an FTP server.
13. What is a virtual host?
used for kickstart and/or network installs
A virtual host is a way of hosting multiple sites using a single IP address.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The yum and rpm commands are used for package management.
14. 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
15. How can virtual hosts be used?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
ifconfig
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
16. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Use the top command to view CPU and memory usage.
The yum and rpm commands are used for package management.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
17. Before you work with ACLs - what do you need to do to the file system?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
chkconfig sshd off
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
18. What port does the Apache web server run on - What about HTTPS?
Apache uses port 80 for HTTP and port 443 for HTTPS.
kickstart installations to work
service httpd configtest
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
19. What are SELinux Booleans?
SELinux Booleans provide restrictions to different aspects of a service.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Sendmail
getsebool
20. SSH does...
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
getfacl
createrepo
support TCP Wrappers
21. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
The du and df commands are used to view available space on the system.
The htpasswd command can be used to password-protect a web page.
Enforcing during installation
run on any port you'd like (provided that port is available)
22. What three components are needed to fully automate a kickstart installation?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
23. What is the superblock used for?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The three utilities are: route - ping - and nslookup.
Use the route command with the add option to create a static route.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
24. What is the main config file for the DHCP service?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
chkconfig sshd off
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
25. What command can you use to query Boolean values?
A virtual host is a way of hosting multiple sites using a single IP address.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
getsebool
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.
26. What is VNC?
The NFS service uses TCP port 2049 by default.
support TCP Wrappers
You must open TCP ports 20 and 21 for the FTP server to function properly.
VNC is used to control a remote desktop session.
27. To grow a file system
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
DNS uses port 53.
Use the resize2fs command to grow a file system.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
28. A slave DNS server provides...
The nfsstat command can be used to view NFS statistics.
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 NFS service uses TCP port 2049 by default.
load balancing and redundancy benefits
29. How can you change the security context of a directory to work with Apache?
via the command line
Apache uses port 80 for HTTP and port 443 for HTTPS.
Using the chcon command - you can change the context of a file to work with Apache.
Use the setgid flag to create the appropriate permissions (chmod 2770).
30. What command can you use to create your own repositories?
SELinux provides enhanced granular security for the Linux operating system.
Physical volumes - volume groups - and logical volumes.
createrepo
Kickstart supports both basic and advanced partitioning (RAID/LVM).
31. What happens to jobs that are scheduled to run while the system is off?
The three utilities are: route - ping - and nslookup.
chkconfig sshd off
rpcbind 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.
32. What command can you use to view mounted Samba shares?
The TFTP server uses UDP port 69.
The smbstatus command shows you currently mounted Samba resources.
The -t nfs option is used with the mount command to mount NFS resources.
getsebool -a | grep http
33. 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 chapter described tdbsm and smbpasswd back-end authentication.
The virsh command is used to manage virtual guests.
support for TCP Wrappers
34. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
kickstart installations to work
LUKS encryption
35. What command can you use to query information from the kernel about RAID arrays?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Sendmail
cat /proc/mdstat
kickstart installations to work
36. What command do you use to report information on quota usage?
alternatives --config mta
repquota
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.
LUKS encryption
37. What is a swap? Is it created as a partition or device file?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
semanage boolean -l
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 yum and rpm commands are used for package management.
38. How would you view all Boolean options for the HTTP service?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
getsebool -a | grep http
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
serve both files and printers to users
39. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
service httpd configtest
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
40. What command can you use to create a file system?
mkfs.ext4
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
SELinux provides enhanced granular security for the Linux operating system.
This command reboots virtual guest Client04.
41. What option is used with both the fdisk and parted commands to display the current partition tables?
By defining a %post section - you can run scripts after a kickstart installation is complete.
The print option is used with both the fdisk and parted commands to display the current partition tables.
This command reboots virtual guest Client04.
The htpasswd command can be used to password-protect a web page.
42. The exportfs command is used to...
By default - Squid runs on port 3128.
The /var/log/audit/audit.log file contains all policy violations.
A virtual host is a way of hosting multiple sites using a single IP address.
export one or all resources
43. What command is used to create an RPM package?
chkconfig sshd off
The virsh command is used to manage virtual guests.
The vsftpd package is used to install an FTP server.
rpmbuild
44. What is PAM used for?
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.
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.
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 rpm command can operate in install - query - or verify modes.
45. What port does the DHCP server listen on by default?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
export one or all resources
The DHCP server listens on port 67 by default.
alternatives --config mta
46. What command can you use to get information about logical volumes?
chkconfig sshd off
lvdisplay
This command reboots virtual guest Client04.
You add your action to the end of the /home/user01/.bashrc file.
47. What is SSH used for?
The print option is used with both the fdisk and parted commands to display the current partition tables.
lvdisplay
SSH is used for secure remote management of Linux systems.
You add your action to the end of the /home/user01/.bashrc file.
48. How do you run a command with elevated privileges?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
rpcbind service
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.
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.
49. What does it mean if you ping a host and you receive the response Destination Unreachable?
By defining a %post section - you can run scripts after a kickstart installation is complete.
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.
useradd -c "Jr Admin" George
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
50. What is a gateway used for on a network?
atq
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.
You add your action to the end of the /home/user01/.bashrc file.
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.