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. Samba servers can...
Use the resize2fs command to grow a file system.
The /etc/fstab file.
serve both files and printers to users
Version 2 is the latest and most secure version of SSH.
2. What port must be opened on the firewall for DNS?
You add your action to the end of the /home/user01/.bashrc file.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
DNS uses port 53.
Use the top command to view CPU and memory usage.
3. Does a DHCP server allow reserved IP addresses - If so - how?
user's home directory in the /etc/skel directory
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the ps command to view processes and their CPU usage.
4. What command can you use to monitor and troubleshoot network connections?
The yum and rpm commands are used for package management.
The tcpdump command is used to monitor network connections on different interfaces.
This command reboots virtual guest Client04.
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.
5. What happens to jobs that are scheduled to run while the system is off?
you have access to the correct packages or repositories.
The /var/log/audit/audit.log file contains all policy violations.
You can use the authconfig-tui command or the authconfig command.
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.
6. What does it mean if you ping a host and you receive the response Destination Unreachable?
mkfs.ext4
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
support TCP Wrappers
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
7. What command and option do you use to view the description of Boolean values?
alternatives --config mta
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The rpm command can operate in install - query - or verify modes.
semanage boolean -l
8. What is the biggest benefit to using LVM over basic partitions?
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.
support for TCP Wrappers
Enforcing during installation
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.
9. What is the /var/lib/nfs/etab file used for?
The ping command can be used to verify connectivity to another host.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
generates errors under Red Hat Enterprise Linux 6
10. How would you go about creating 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.
Use the route command with the add option to create a static route.
via the command line
halts the system
11. How can you change the security context of a directory to work with Apache?
You must open TCP ports 20 and 21 for the FTP server to function properly.
amount of RAM
Using the chcon command - you can change the context of a file to work with Apache.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
12. 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.
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.
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
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
13. 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.
setsebool -P nfs_export_all_rw=1
service httpd configtest
getsebool -a | grep http
14. What is the benefit to using centralized authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
15. What command do you use to report information on quota usage?
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 -t nfs option is used with the mount command to mount NFS resources.
repquota
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
16. You must dictate the ____________ you want allocated to your virtual machine when you create it.
rpmbuild
choose which mode you'd like it to operate in
amount of RAM
The four types of DNS servers are master - slave - caching-only - and forwarding.
17. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
entering rescue mode and repairing the problem.
The du and df commands are used to view available space on the system.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
18. What is SSH used for?
SSH is used for secure remote management of Linux systems.
This chapter described tdbsm and smbpasswd back-end authentication.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
chkconfig xinetd --list
19. What are the three different types of RAID described in this chapter?
The virsh command is used to manage virtual guests.
SELinux Booleans provide restrictions to different aspects of a service.
entering rescue mode and repairing the problem.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
20. What three components are needed to fully automate a kickstart installation?
atq
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The user_list file can be used to limit which users have access to the FTP server.
By default - Squid runs on port 3128.
21. What does the partprobe command do?
The yum and rpm commands are used for package management.
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 ps command to view processes and their CPU usage.
have the same effect
22. 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 mount command lists all currently mounted file systems.
have the same effect
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.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
23. Which log file is used to keep track of policy violations?
atq
The /var/log/audit/audit.log file contains all policy violations.
service named configtest
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
24. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Use the ps command to view processes and their CPU usage.
25. The at command is used to ____________. The cron service handles reoccurring system jobs.
LUKS encryption
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
schedule one-time-only jobs
mkfs.ext4
26. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
27. What are the five required directories when building RPMS?
The virsh command is used to manage virtual guests.
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The four types of DNS servers are master - slave - caching-only - and forwarding.
28. What command is used to show all services being controlled by the xinetd daemon?
The mount command lists all currently mounted file systems.
DNS uses port 53.
chkconfig xinetd --list
Kickstart supports both basic and advanced partitioning (RAID/LVM).
29. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
getfacl
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
30. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The nfsstat command can be used to view NFS statistics.
The /etc/fstab file.
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.
31. What port does the SMTP service run on?
The SMTP service runs on TCP port 110.
The two main config files are master.cf and main.cf.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Public/private key authentication provides an additional layer of security because you need the correct key instead of just knowing someone's password. Passwords combined with public/private keys take the security one additional step.
32. What critical step must you take after updating the kernel to a newer version?
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.
mkfs.ext4
Use the route command with the add option to create a static route.
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.
33. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
The dig - host - and ping commands can be used to test DNS server functionality.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
This chapter described tdbsm and smbpasswd back-end authentication.
34. 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
35. What option would you use to query an installed package using the rpm command?
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.
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 /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
36. What port does NFS use by default?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
you have access to the correct packages or repositories.
The NFS service uses TCP port 2049 by default.
The tcpdump command is used to monitor network connections on different interfaces.
37. What is the top command used for?
Use the top command to view CPU and memory usage.
via the command line
SSH is used for secure remote management of Linux systems.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
38. How can you list all services on the system to tell whether they will boot during startup?
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.
Typing the mail or mutt command allows you to read mail from the command line.
useradd -c "Jr Admin" George
chkconfig—list
39. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
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.
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
A virtual host is a way of hosting multiple sites using a single IP address.
40. To grow a file system
SELinux Booleans provide restrictions to different aspects of a service.
Use the resize2fs command 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.
The mount command lists all currently mounted file systems.
41. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
Public/private key authentication provides an additional layer of security because you need the correct key instead of just knowing someone's password. Passwords combined with public/private keys take the security one additional step.
schedule one-time-only jobs
Physical volumes - volume groups - and logical volumes.
42. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
amount of RAM
You add your action to the end of the /home/user01/.bashrc file.
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.
43. Which remote management service is installed by default?Can you name the port that it uses?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
DNS uses port 53.
The dig - host - and ping commands can be used to test DNS server functionality.
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.
44. What directory is used to represent the virtual file system created by the kernel?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
rpmbuild
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The yum and rpm commands are used for package management.
45. The ____________ is available for each share.
amount of RAM
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
browseable option
Use the route command with the add option to create a static route.
46. What command can be used to easily list all the options in the FTP main config file?
useradd -c "Jr Admin" George
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.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
47. What is the default port that Squid runs on?
The print option is used with both the fdisk and parted commands to display the current partition tables.
By default - Squid runs on port 3128.
entering rescue mode and repairing the problem.
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.
48. What benefit does a web proxy provide to your network?
chkconfig sshd off
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The DHCP server listens on port 67 by default.
The user_list file can be used to limit which users have access to the FTP server.
49. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
Version 2 is the latest and most secure version of SSH.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Using the chcon command - you can change the context of a file to work with Apache.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
50. What does the rdnc-confgen command do?
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 rdnc-confgen command generates an rndc.conf file for the rndc utility.
used for kickstart and/or network installs
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.