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. 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...
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.
getsebool -a | grep http
have the same effect
service dhcpd configtest
2. A slave DNS server provides...
service httpd configtest
load balancing and redundancy benefits
The DHCP server listens on port 67 by default.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
3. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
VNC is used to control a remote desktop session.
alternatives --config mta
generates errors under Red Hat Enterprise Linux 6
The lastlog and faillog commands are used to view user login-related events?
4. What critical step must you take after updating the kernel to a newer version?
The /var/log/audit/audit.log file contains all policy violations.
generates errors under Red Hat Enterprise Linux 6
A virtual host is a way of hosting multiple sites using a single IP address.
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.
5. What is the superblock used for?
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.
getsebool -a | grep http
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
6. What command can you use to query information from the kernel about RAID arrays?
The nfsstat command can be used to view NFS statistics.
cat /proc/mdstat
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
7. How can you display all virtual guests after they're connected to a hypervisor?
have the same effect
support for TCP Wrappers
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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.
9. What file needs to be edited so that the system will mount a file system at boot time?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
The /etc/fstab file.
10. What are the two types of back-end authentication mechanisms discussed in this chapter?
Use the yum groupinstall command to install multiple packages in a single group at once.
The NFS service uses TCP port 2049 by default.
This chapter described tdbsm and smbpasswd back-end authentication.
mkfs.ext4
11. Red Hat Enterprise Linux 6 is the only version that officially supports _______
support for TCP Wrappers
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
LUKS encryption
Apache uses port 80 for HTTP and port 443 for HTTPS.
12. What is the /var/lib/nfs/etab file used for?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
A user's home directory is created under the /home directory.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The SMTP service runs on TCP port 110.
13. Before you work with quotas - what do you need to do to the file system?
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.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
atq
14. Where are Yum repository config files located?
The DHCP server listens on port 67 by default.
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 groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
15. What command can you use to create a password-protected page?
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 htpasswd command can be used to password-protect a web page.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
16. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
By defining a %post section - you can run scripts after a kickstart installation is complete.
generates errors under Red Hat Enterprise Linux 6
17. What two commands are used for package management?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The yum and rpm commands are used for package management.
18. What is the biggest benefit to using LVM over basic partitions?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Sendmail
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
19. What command is used to show all services being controlled by the xinetd daemon?
SSH is used for secure remote management of Linux systems.
The TFTP server uses UDP port 69.
You can use the authconfig-tui command or the authconfig command.
chkconfig xinetd --list
20. What is the point of using SELinux?
export one or all resources
Enforcing during installation
DNS uses port 53.
SELinux provides enhanced granular security for the Linux operating system.
21. What port does the DHCP server listen on by default?
The ping command can be used to verify connectivity to another host.
The DHCP server listens on port 67 by default.
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.
VNC is used to control a remote desktop session.
22. What are the three modes in which the rpm command can operate?
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.
DNS uses port 53.
The rpm command can operate in install - query - or verify modes.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
23. 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.
DNS uses port 53.
setsebool -P nfs_export_all_rw=1
Version 2 is the latest and most secure version of SSH.
24. What is the last rule in the iptables file?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
25. What command can you use to monitor and troubleshoot network connections?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The tcpdump command is used to monitor network connections on different interfaces.
VNC is used to control a remote desktop session.
choose which mode you'd like it to operate in
26. What command can you use to create a new SSL certificate?
rpcbind service
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Use the yum groupinstall command to install multiple packages in a single group at once.
27. What command can you use to view system processes and their CPU usage?
service dhcpd configtest
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.
This command reboots virtual guest Client04.
Use the ps command to view processes and their CPU usage.
28. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Sendmail
via the command line
29. What is the difference between an A record and a PTR record?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
useradd -c "Jr Admin" George
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The rpm command can operate in install - query - or verify modes.
30. What command disables the SSH service from running when the system boots?
The du and df commands are used to view available space on the system.
chkconfig sshd off
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
chkconfig xinetd --list
31. How would you install a group of packages all at a single time?
Use the yum groupinstall command to install multiple packages in a single group at once.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
browseable option
32. What command can you use to test connectivity to another host?
chkconfig xinetd --list
The ping command can be used to verify connectivity to another host.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Use the top command to view CPU and memory usage.
33. What command can be used to easily list all the options in the FTP main config file?
The SMTP service runs on TCP port 110.
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
34. What command do you use to change the permissions on a file or directory - To change ownership?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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 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.
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.
35. Samba servers can...
serve both files and printers to users
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The vsftpd package is used to install an FTP server.
The lftp command can be used on a client to test FTP server connections.
36. What command can you use to manage system services?
serve both files and printers to users
The service command is used to start - stop - and manage system services.
service dhcpd configtest
A virtual host is a way of hosting multiple sites using a single IP address.
37. What is a gateway used for on a network?
The two main config files are master.cf and main.cf.
createrepo
By default - the rndc utility listens on port 953.
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.
38. How can you change the security context of a directory to work with Apache?
The print option is used with both the fdisk and parted commands to display the current partition tables.
Using the chcon command - you can change the context of a file to work with Apache.
VNC is used to control a remote desktop session.
user's home directory in the /etc/skel directory
39. What command displays your current interfaces and IP address?
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 partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
ifconfig
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.
40. How can you list all services on the system to tell whether they will boot during startup?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
chkconfig—list
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
41. What is the virsh command used for?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
The virsh command is used to manage virtual guests.
A user's home directory is created under the /home directory.
42. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Use the yum groupinstall command to install multiple packages in a single group at once.
browseable option
This command reboots virtual guest Client04.
Enforcing during installation
43. What option is used to allow anonymous uploads to the FTP server?
By default - Squid runs on port 3128.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
serve both files and printers to users
service named configtest
44. 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
45. What is NAT - How is it 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.
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
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
46. What command can you use to query Boolean values?
repquota
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
getsebool
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
47. To grow a file system
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.
alternatives --config mta
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.
Use the resize2fs command to grow a file system.
48. A PXE server eases the automation process but isn't required for...
The service command is used to start - stop - and manage system services.
kickstart installations to work
Physical volumes - volume groups - and logical volumes.
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.
49. 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 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.
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.
atq
50. A service needs to have _______________ to be able to use it.
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.
support for TCP Wrappers
Using the chcon command - you can change the context of a file to work with Apache.