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. The ____________ is available for each share.
browseable option
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
SSH is used for secure remote management of Linux systems.
Version 2 is the latest and most secure version of SSH.
2. 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
3. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
4. The exportfs command is used to...
export one or all resources
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
5. What port must be opened on the firewall for DNS?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
getsebool
schedule one-time-only jobs
DNS uses port 53.
6. What command and option do you use to view the description of Boolean values?
The nfsstat command can be used to view NFS statistics.
semanage boolean -l
chkconfig xinetd --list
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.
7. Which remote management service is installed by default?Can you name the port that it uses?
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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.
8. 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
9. What two ports should be opened on the firewall for the FTP server to function properly?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
You must open TCP ports 20 and 21 for the FTP server to function properly.
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.
entering rescue mode and repairing the problem.
10. What port on the firewall needs to be open for the TFTP server to work?
The three utilities are: route - ping - and nslookup.
The TFTP server uses UDP port 69.
By default - the rndc utility listens on port 953.
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.
11. SSH does...
support TCP Wrappers
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Use the ps command to view processes and their CPU usage.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
12. How can you display all virtual guests after they're connected to a hypervisor?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
atq
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
13. What is the name of the section used to run scripts after a kickstart installation?
have the same effect
SSH is used for secure remote management of Linux systems.
By defining a %post section - you can run scripts after a kickstart installation is complete.
The lastlog and faillog commands are used to view user login-related events?
14. What option at the GRUB boot menu can you use to append something to a kernel?
A user's home directory is created under the /home directory.
Typing the mail or mutt command allows you to read mail from the command line.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
15. What command can be used to easily list all the options in the FTP main config file?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
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.
16. Which log file is used to keep track of policy violations?
Use the setgid flag to create the appropriate permissions (chmod 2770).
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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 /var/log/audit/audit.log file contains all policy violations.
17. What is VNC?
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.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
VNC is used to control a remote desktop session.
18. Which version of SSH should you use?
The user_list file can be used to limit which users have access to the FTP server.
Version 2 is the latest and most secure version of SSH.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
19. In Red Hat Enterprise Linux 6 - the default for SELinux is _______________ (which can be changed after the installation completes). For Red Hat Enterprise Linux 5 - you were able to choose what mode you wanted SELinux to start in.
Enforcing during installation
useradd -c "Jr Admin" George
The DHCP server listens on port 67 by default.
generates errors under Red Hat Enterprise Linux 6
20. Can you name the two commands that can be used to view the free space on the system?
The /var/log/audit/audit.log file contains all policy violations.
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.
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 du and df commands are used to view available space on the system.
21. How do you run a command with elevated privileges?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
chkconfig sshd off
22. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
A user's home directory is created under the /home directory.
The /etc/fstab file.
getsebool
23. What command would you use to create a group - to add the user George to the group?
createrepo
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
amount of RAM
24. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
getsebool -a | grep http
The four types of DNS servers are master - slave - caching-only - and forwarding.
By defining a %post section - you can run scripts after a kickstart installation is complete.
25. Which file shows you all the client IP addresses?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The two main config files are master.cf and main.cf.
26. What command can you use to create your own repositories?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
entering rescue mode and repairing the problem.
createrepo
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
27. What is the xinetd service used for?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
This command reboots virtual guest Client04.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
28. To grow a file system
chkconfig—list
amount of RAM
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Use the resize2fs command to grow a file system.
29. What command can you use to view system processes and their CPU usage?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
createrepo
Use the ps command to view processes and their CPU usage.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
30. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
Version 2 is the latest and most secure version of SSH.
31. What is the name of the package that allows you to install VNC?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
entering rescue mode and repairing the problem.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
32. What is the biggest benefit to using LVM over basic partitions?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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.
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
service dhcpd configtest
33. What commands can you use to add a client machine to an LDAP server?
By default - Squid runs on port 3128.
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.
You can use the authconfig-tui command or the authconfig command.
Sendmail
34. What does the partprobe command do?
service httpd configtest
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
35. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
cat /proc/mdstat
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
By default - the rndc utility listens on port 953.
36. What is the format of the /etc/shadow file?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
rpmbuild
The user_list file can be used to limit which users have access to the FTP server.
You can use the authconfig-tui command or the authconfig command.
37. What port does NFS use by default?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The NFS service uses TCP port 2049 by default.
The -t nfs option is used with the mount command to mount NFS resources.
Enforcing during installation
38. Are additional packages besides httpd required for a secure website - If so - what are they?
Use the route command with the add option to create a static route.
The rndc utility provides a method for managing the DNS server remotely and securely.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
39. What does it mean if you ping a host and you receive the response Destination Unreachable?
The virsh command is used to manage virtual guests.
ifconfig
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
cat /proc/mdstat
40. 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.
generates errors under Red Hat Enterprise Linux 6
chkconfig xinetd --list
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
41. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Physical volumes - volume groups - and logical volumes.
getfacl
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The lastlog and faillog commands are used to view user login-related events?
42. What is a swap? Is it created as a partition or device file?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
rpmbuild
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.
43. What command can you use to change the context of files?
Use the top command to view CPU and memory usage.
chcon
The three utilities are: route - ping - and nslookup.
The rpm command can operate in install - query - or verify modes.
44. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
The rpm command can operate in install - query - or verify modes.
chcon
service httpd configtest
45. What command is used to create a user for Samba?
The du and df commands are used to view available space on the system.
rpcbind service
By default - Squid runs on port 3128.
The smbpasswd command is used to create Samba users.
46. What command can you use to test connectivity to another host?
choose which mode you'd like it to operate in
The ping command can be used to verify connectivity to another host.
enabled by default
Sendmail
47. Can you put your /boot partition on a RAID 5 array?
alternatives --config mta
Physical volumes - volume groups - and logical volumes.
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 /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
48. How would you view all Boolean options for the HTTP service?
semanage boolean -l
getsebool -a | grep http
run on any port you'd like (provided that port is available)
Network installations can be performed using the HTTP - FTP - and NFS protocols.
49. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
support for TCP Wrappers
service sshd statuts
Use the setgid flag to create the appropriate permissions (chmod 2770).
The virsh command is used to manage virtual guests.
50. What command can you use to monitor and troubleshoot network connections?
A virtual host is a way of hosting multiple sites using a single IP address.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
export one or all resources
The tcpdump command is used to monitor network connections on different interfaces.