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. What is the default port that Squid runs on?
getfacl
The NFS service uses TCP port 2049 by default.
By default - Squid runs on port 3128.
have the same effect
2. What is the virsh command used for?
The virsh command is used to manage virtual guests.
LUKS encryption
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The smbstatus command shows you currently mounted Samba resources.
3. 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.
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.
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.
4. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
defining a %pre section although it is rarely used
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.
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.
5. What three components are needed to fully automate a kickstart installation?
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
atq
6. What two ports should be opened on the firewall for the FTP server to function properly?
Enforcing during installation
The lastlog and faillog commands are used to view user login-related events?
By default - Squid runs on port 3128.
You must open TCP ports 20 and 21 for the FTP server to function properly.
7. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
The /var/log/audit/audit.log file contains all policy violations.
The nfsstat command can be used to view NFS statistics.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
8. How can virtual hosts be used?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
schedule one-time-only jobs
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 smbstatus command shows you currently mounted Samba resources.
9. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
rpmbuild
Apache uses port 80 for HTTP and port 443 for HTTPS.
used for kickstart and/or network installs
The two main config files are master.cf and main.cf.
10. SSH does...
support TCP Wrappers
service httpd configtest
export one or all resources
kickstart installations to work
11. 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
12. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The rpm command can operate in install - query - or verify modes.
The tcpdump command is used to monitor network connections on different interfaces.
13. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
Enforcing during installation
SELinux Booleans provide restrictions to different aspects of a service.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
14. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Version 2 is the latest and most secure version of SSH.
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.
15. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
enabled by default
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 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.
16. A service needs to have _______________ to be able to use it.
SELinux Booleans provide restrictions to different aspects of a service.
The rpm command can operate in install - query - or verify modes.
support for TCP Wrappers
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
17. What commands can you use to add a client machine to an LDAP server?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
SELinux provides enhanced granular security for the Linux operating system.
cat /proc/mdstat
You can use the authconfig-tui command or the authconfig command.
18. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The lftp command can be used on a client to test FTP server connections.
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.
alternatives --config mta
Sendmail
19. 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
20. What port must be opened on the firewall for DNS?
DNS uses port 53.
This chapter described tdbsm and smbpasswd back-end authentication.
chkconfig—list
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
21. What is the /etc/vsftpd/user_list file used for?
Sendmail
The user_list file can be used to limit which users have access to the FTP server.
chkconfig—list
atq
22. What command displays your current interfaces and IP address?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
export one or all resources
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.
ifconfig
23. What is PAM used for?
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.
The smbstatus command shows you currently mounted Samba resources.
A virtual host is a way of hosting multiple sites using a single IP address.
defining a %pre section although it is rarely used
24. 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
25. To create a RAID or LVM partition using kickstart
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 nfsstat command can be used to view NFS statistics.
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
26. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The tcpdump command is used to monitor network connections on different interfaces.
The two main config files are master.cf and main.cf.
27. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
You add your action to the end of the /home/user01/.bashrc file.
The ping command can be used to verify connectivity to another host.
cat /proc/mdstat
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
28. How would you view all Boolean options for the HTTP service?
have the same effect
SELinux provides enhanced granular security for the Linux operating system.
getsebool -a | grep http
ifconfig
29. Which log file is used to keep track of policy violations?
The /var/log/audit/audit.log file contains all policy violations.
The nfsstat command can be used to view NFS statistics.
Use the yum groupinstall command to install multiple packages in a single group at once.
kickstart installations to work
30. What command can you use to create a new SSL certificate?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
31. Can you name the two commands that can be used to view the free space on the system?
The lastlog and faillog commands are used to view user login-related events?
The du and df commands are used to view available space on the system.
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.
ifconfig
32. What command do you use to report information on quota usage?
You can use the authconfig-tui command or the authconfig command.
You can use the remove or erase options with yum to remove a package.
repquota
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
33. What happens if you call the command from question 3 with the -c option after it has already been run?
The du and df commands are used to view available space on the system.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The four types of DNS servers are master - slave - caching-only - and forwarding.
34. What is SSH used for?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
service named configtest
SSH is used for secure remote management of Linux systems.
Apache uses port 80 for HTTP and port 443 for HTTPS.
35. What is the /var/lib/nfs/etab file used for?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The du and df commands are used to view available space on the system.
choose which mode you'd like it to operate in
36. What benefit does a web proxy provide to your network?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
By defining a %post section - you can run scripts after a kickstart installation is complete.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
37. GRUB has three stages. Can you name them?
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.
repquota
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.
38. What command and options can you use to update the time?
load balancing and redundancy benefits
By default - Squid runs on port 3128.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
You add your action to the end of the /home/user01/.bashrc file.
39. What command can be used to easily list all the options in the FTP main config file?
The /var/log/audit/audit.log file contains all policy violations.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The virsh command is used to manage virtual guests.
You add your action to the end of the /home/user01/.bashrc file.
40. Before you work with ACLs - what do you need to do to the file system?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
You add your action to the end of the /home/user01/.bashrc file.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
41. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
support for TCP Wrappers
browseable option
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.
42. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
have the same effect
mkfs.ext4
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
43. 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...
have the same effect
schedule one-time-only jobs
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
44. Before you work with quotas - what do you need to do to the file system?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
45. What command and option can you use to enable a service to start on boot?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The NFS service uses TCP port 2049 by default.
46. What command can you use to monitor and troubleshoot network connections?
have the same effect
support TCP Wrappers
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The tcpdump command is used to monitor network connections on different interfaces.
47. What port does the Apache web server run on - What about HTTPS?
Use the resize2fs command to grow a file system.
The vsftpd package is used to install an FTP server.
Apache uses port 80 for HTTP and port 443 for HTTPS.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
48. Which remote management service is installed by default?Can you name the port that it uses?
setsebool -P nfs_export_all_rw=1
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.
rpmbuild
enabled by default
49. 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.
getfacl
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
50. The package selection screen allows you to install any software you want during the installation process as long as...
Enforcing during installation
DNS uses port 53.
you have access to the correct packages or repositories.
getfacl