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. How would you install a group of packages all at a single time?
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.
SELinux provides enhanced granular security for the Linux operating system.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
2. What is the default port that Squid runs on?
By default - Squid runs on port 3128.
createrepo
By defining a %post section - you can run scripts after a kickstart installation is complete.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
3. What command do you use to report information on quota usage?
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
repquota
DNS uses port 53.
4. What is the name of the package that allows you to install VNC?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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.
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.
getsebool
5. What is the /etc/vsftpd/user_list file used for?
SELinux provides enhanced granular security for the Linux operating 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.
The user_list file can be used to limit which users have access to the FTP server.
A user's home directory is created under the /home directory.
6. What three components are needed to fully automate a kickstart installation?
service named configtest
service sshd statuts
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
7. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
createrepo
The TFTP server uses UDP port 69.
service sshd statuts
8. What two commands are special for dealing with user login events?
A user's home directory is created under the /home directory.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The lastlog and faillog commands are used to view user login-related events?
A virtual host is a way of hosting multiple sites using a single IP address.
9. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The smbstatus command shows you currently mounted Samba resources.
The nfsstat command can be used to view NFS statistics.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
10. What command can you use to get information about logical volumes?
lvdisplay
DNS uses port 53.
You can use the authconfig-tui command or the authconfig command.
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.
11. What is the difference between an A record and a PTR record?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
LUKS encryption
A user's home directory is created under the /home directory.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
12. 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.
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.
halts the system
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
13. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
rpcbind service
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 -t nfs option is used with the mount command to mount NFS resources.
The dig - host - and ping commands can be used to test DNS server functionality.
14. The ____________ is available for each share.
browseable option
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
15. GRUB has three stages. Can you name them?
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
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.
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
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.
16. Most boot issues can be resolved by...
LUKS encryption
Physical volumes - volume groups - and logical volumes.
entering rescue mode and repairing the problem.
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
17. How can you list all services on the system to tell whether they will boot during startup?
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.
chkconfig—list
user's home directory in the /etc/skel directory
This command reboots virtual guest Client04.
18. What does the testparm command do?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
19. What critical step must you take after updating the kernel to a newer version?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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 /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
20. What option would you use to query an installed package using the rpm command?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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 three utilities are: route - ping - and nslookup.
21. Can you put your /boot partition on a RAID 5 array?
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 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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
22. What three commands can you use to help verify that the DNS server is functioning properly?
used for kickstart and/or network installs
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
The smbstatus command shows you currently mounted Samba resources.
The dig - host - and ping commands can be used to test DNS server functionality.
23. Where are Yum repository config files located?
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.
VNC is used to control a remote desktop session.
The yum and rpm commands are used for package management.
browseable option
24. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
25. What is a gateway used for on a network?
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
By default - Squid runs on port 3128.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
26. How would you go about creating a static route?
The two main config files are master.cf and main.cf.
createrepo
Use the route command with the add option to create a static route.
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.
27. What command can you use to view NFS statistics?
rpmbuild
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The nfsstat command can be used to view NFS statistics.
28. How can you change the security context of a directory to work with Apache?
DNS uses port 53.
browseable option
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Using the chcon command - you can change the context of a file to work with Apache.
29. What is VNC?
schedule one-time-only jobs
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
user's home directory in the /etc/skel directory
VNC is used to control a remote desktop session.
30. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
via the command line
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
VNC is used to control a remote desktop session.
31. What does the partprobe command do?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
You can use the remove or erase options with yum to remove a package.
kickstart installations to work
lvdisplay
32. Do you need to write changes to the disk when using the parted command? What about fdisk?
You can use the authconfig-tui command or the authconfig command.
user's home directory in the /etc/skel directory
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.
chkconfig xinetd --list
33. What are the three modes in which the rpm command can operate?
The /var/log/audit/audit.log file contains all policy violations.
The two main config files are master.cf and main.cf.
The rpm command can operate in install - query - or verify modes.
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.
34. What is the superblock used for?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
ifconfig
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
35. What are the three items that make up LVM?
amount of RAM
Physical volumes - volume groups - and logical volumes.
The TFTP server uses UDP port 69.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
36. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The virsh command is used to manage virtual guests.
LUKS encryption
37. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
service httpd configtest
38. What command is used to create a user for Samba?
have the same effect
The smbpasswd command is used to create Samba users.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
39. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
By default - the rndc utility listens on port 953.
rpmbuild
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
40. What file needs to be edited so that the system will mount a file system at boot time?
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.
You can use the authconfig-tui command or the authconfig command.
The /etc/fstab file.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
41. What command can you use to test the config files before starting the DNS service?
service named configtest
used for kickstart and/or network installs
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The two main config files are master.cf and main.cf.
42. What does it mean if you ping a host and you receive the response Destination Unreachable?
The /etc/fstab file.
The nfsstat command can be used to view NFS statistics.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
A virtual host is a way of hosting multiple sites using a single IP address.
43. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
The -t nfs option is used with the mount command to mount NFS resources.
Using the chcon command - you can change the context of a file to work with Apache.
SSH is used for secure remote management of Linux systems.
44. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
generates errors under Red Hat Enterprise Linux 6
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
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.
45. What is a swap? Is it created as a partition or device file?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Use the ps command to view processes and their CPU usage.
mkfs.ext4
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.
46. What command can you use to manage system services?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The service command is used to start - stop - and manage system services.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
47. What is SSH used for?
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 virsh command is used to manage virtual guests.
SSH is used for secure remote management of Linux systems.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
48. What command do you use to change the permissions on a file or directory - To change ownership?
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.
VNC is used to control a remote desktop session.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
49. What option needs to be used with the mount command to mount an NFS resource?
The -t nfs option is used with the mount command to mount NFS resources.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Enforcing during installation
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.
50. To grow a file system
Version 2 is the latest and most secure version of SSH.
Use the resize2fs command to grow a file system.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.