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. It is possible to run scripts before a kickstart installation. This is done by...
atq
defining a %pre section although it is rarely used
you have access to the correct packages or repositories.
rpmbuild
2. What command can be used to view the queue for at service jobs?
atq
service sshd statuts
choose which mode you'd like it to operate in
Sendmail
3. What happens to jobs that are scheduled to run while the system is off?
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.
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 ping command can be used to verify connectivity to another host.
useradd -c "Jr Admin" George
4. What is the top command used for?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
useradd -c "Jr Admin" George
The virsh command is used to manage virtual guests.
Use the top command to view CPU and memory usage.
5. What benefit does a web proxy provide to your network?
SELinux Booleans provide restrictions to different aspects of a service.
load balancing and redundancy benefits
The yum and rpm commands are used for package management.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
6. How can you verify the status of the SSH service after the system has booted?
cat /proc/mdstat
The virsh command is used to manage virtual guests.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
service sshd statuts
7. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
schedule one-time-only jobs
8. Before you work with ACLs - what do you need to do to the file system?
Use the route command with the add option to create a static route.
repquota
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
generates errors under Red Hat Enterprise Linux 6
9. 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.
support TCP Wrappers
getsebool -a | grep http
Apache uses port 80 for HTTP and port 443 for HTTPS.
10. 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.
Typing the mail or mutt command allows you to read mail from the command line.
setsebool -P nfs_export_all_rw=1
Enforcing during installation
11. To grow a file system
export one or all resources
Use the resize2fs command to grow a file system.
user's home directory in the /etc/skel directory
createrepo
12. What command can you use to test connectivity to another host?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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 rpm command can operate in install - query - or verify modes.
The ping command can be used to verify connectivity to another host.
13. What command can you use to query Boolean values?
A virtual host is a way of hosting multiple sites using a single IP address.
service httpd configtest
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
getsebool
14. What is the rndc utility used for?
The rndc utility provides a method for managing the DNS server remotely and securely.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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 last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
15. What two ports should be opened on the firewall for the FTP server to function properly?
This chapter described tdbsm and smbpasswd back-end authentication.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
You must open TCP ports 20 and 21 for the FTP server to function properly.
getsebool
16. 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.
The vsftpd package is used to install an FTP server.
getfacl
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
17. How would you disable SELinux protection for NFS - allowing shares to be read/write?
setsebool -P nfs_export_all_rw=1
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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.
schedule one-time-only jobs
18. What port does the SMTP service run on?
You add your action to the end of the /home/user01/.bashrc file.
you have access to the correct packages or repositories.
user's home directory in the /etc/skel directory
The SMTP service runs on TCP port 110.
19. GRUB has three stages. Can you name them?
The rpm command can operate in install - query - or verify modes.
mkfs.ext4
The lftp command can be used on a client to test FTP server connections.
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
20. What are SELinux Booleans?
Enforcing during installation
SELinux Booleans provide restrictions to different aspects of a service.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Version 2 is the latest and most secure version of SSH.
21. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
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 mount command lists all currently mounted file systems.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
22. 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.
amount of RAM
The virsh command is used to manage virtual guests.
The yum and rpm commands are used for package management.
23. What command can you use to create a password-protected page?
The ping command can be used to verify connectivity to another host.
The htpasswd command can be used to password-protect a web page.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
24. How can you display all virtual guests after they're connected to a hypervisor?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Enforcing during installation
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
25. Which remote management service is installed by default?Can you name the port that it uses?
Enforcing during installation
serve both files and printers to users
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
26. What command do you use to change the permissions on a file or directory - To change ownership?
support for TCP Wrappers
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
This command reboots virtual guest Client04.
27. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
A virtual host is a way of hosting multiple sites using a single IP address.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The four types of DNS servers are master - slave - caching-only - and forwarding.
alternatives --config mta
28. How would you go about creating a static route?
Use the route command with the add option to create a static route.
atq
Kickstart supports both basic and advanced partitioning (RAID/LVM).
have the same effect
29. What commands can you use to add a client machine to an LDAP server?
You can use the authconfig-tui command or the authconfig command.
semanage boolean -l
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.
30. What file needs to be edited so that the system will mount a file system at boot time?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The DHCP server listens on port 67 by default.
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 /etc/fstab file.
31. What happens if you call the command from question 3 with the -c option after it has already been run?
Use the route command with the add option to create a static route.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The ping command can be used to verify connectivity to another host.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
32. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
33. What does it mean if you ping a host and you receive the response Destination Unreachable?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The smbstatus command shows you currently mounted Samba resources.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
34. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
35. What is the difference between an A record and a PTR record?
you have access to the correct packages or repositories.
You can use the authconfig-tui command or the authconfig command.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
36. Does a DHCP server allow reserved IP addresses - If so - how?
atq
cat /proc/mdstat
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.
37. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The virsh command is used to manage virtual guests.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
38. What command can you use to test the config files before starting the DNS service?
Using the chcon command - you can change the context of a file to work with Apache.
getfacl
By default - the rndc utility listens on port 953.
service named configtest
39. What command is used to create an RPM package?
The SMTP service runs on TCP port 110.
rpmbuild
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
support TCP Wrappers
40. 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...
amount of RAM
By default - the rndc utility listens on port 953.
have the same effect
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.
41. What command would you use to create a group - to add the user George to the group?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Use the setgid flag to create the appropriate permissions (chmod 2770).
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
42. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
The service command is used to start - stop - and manage system services.
Sendmail
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.
43. Which log file is used to keep track of policy violations?
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The virsh command is used to manage virtual guests.
The /var/log/audit/audit.log file contains all policy violations.
44. What command do you use to report information on quota usage?
Enforcing during installation
Network installations can be performed using the HTTP - FTP - and NFS protocols.
repquota
The dig - host - and ping commands can be used to test DNS server functionality.
45. Can you name three utilities that can be used for network or DNS client troubleshooting?
lvdisplay
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The three utilities are: route - ping - and nslookup.
mkfs.ext4
46. What command can you use to check the config file of the DHCP server?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Sendmail
Physical volumes - volume groups - and logical volumes.
service dhcpd configtest
47. Can you put your /boot partition on a RAID 5 array?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
generates errors under Red Hat Enterprise Linux 6
rpcbind service
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.
48. What is the superblock used for?
halts the system
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
ifconfig
getsebool -a | grep http
49. 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
50. Through its main config file - SSH can be configured to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183