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. Which log file is used to keep track of policy violations?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
The /var/log/audit/audit.log file contains all policy violations.
Using the chcon command - you can change the context of a file to work with Apache.
2. What is the name of the package that allows you to install VNC?
Use the route command with the add option to create a static route.
By default - the rndc utility listens on port 953.
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
3. How can you list all services on the system to tell whether they will boot during startup?
chkconfig—list
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
alternatives --config mta
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.
4. The package selection screen allows you to install any software you want during the installation process as long as...
choose which mode you'd like it to operate in
you have access to the correct packages or repositories.
schedule one-time-only jobs
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.
5. What is the top command used for?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
A virtual host is a way of hosting multiple sites using a single IP address.
Use the top command to view CPU and memory usage.
The rndc utility provides a method for managing the DNS server remotely and securely.
6. A service needs to have _______________ to be able to use it.
lvdisplay
support for TCP Wrappers
You can use the authconfig-tui command or the authconfig command.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
7. What command displays your current interfaces and IP address?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
support TCP Wrappers
ifconfig
8. What is VNC?
The print option is used with both the fdisk and parted commands to display the current partition tables.
mkfs.ext4
The user_list file can be used to limit which users have access to the FTP server.
VNC is used to control a remote desktop session.
9. 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.
chcon
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 nfsstat command can be used to view NFS statistics.
10. What option is used to allow anonymous uploads to the FTP server?
The lastlog and faillog commands are used to view user login-related events?
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 anonymous_enable=YES option in the main config file allows anonymous uploads.
The SMTP service runs on TCP port 110.
11. What are the two config files for Postfix called?
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 two main config files are master.cf and main.cf.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
12. What is the default port that Squid runs on?
chkconfig xinetd --list
support TCP Wrappers
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 default - Squid runs on port 3128.
13. What port does the rndc utility listen on by default?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
By default - the rndc utility listens on port 953.
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.
support TCP Wrappers
14. What is NAT - How is it used?
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.
ifconfig
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Use the resize2fs command to grow a file system.
15. What file needs to be edited so that the system will mount a file system at boot time?
Use the setgid flag to create the appropriate permissions (chmod 2770).
Enforcing during installation
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /etc/fstab file.
16. What command would you use to create a group - to add the user George to the group?
You add your action to the end of the /home/user01/.bashrc file.
Enforcing during installation
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
17. What port does NFS use by default?
Enforcing during installation
The NFS service uses TCP port 2049 by default.
generates errors under Red Hat Enterprise Linux 6
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
18. Samba servers can...
serve both files and printers to users
service httpd configtest
Use the route command with the add option to create a static route.
For Apache to run a secure site - the mod_ssl package is required to be installed.
19. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
You add your action to the end of the /home/user01/.bashrc file.
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.
20. What two commands are special for dealing with user login events?
The htpasswd command can be used to password-protect a web page.
The lastlog and faillog commands are used to view user login-related events?
amount of RAM
serve both files and printers to users
21. How would you view all Boolean options for the HTTP service?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
getsebool -a | grep http
service dhcpd configtest
22. 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.
halts the system
Enforcing during installation
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
23. What commands can you use to add a client machine to an LDAP server?
Use the route command with the add option to create a static route.
You must open TCP ports 20 and 21 for the FTP server to function properly.
You can use the authconfig-tui command or the authconfig command.
Sendmail
24. Does a DHCP server allow reserved IP addresses - If so - how?
entering rescue mode and repairing the problem.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
25. 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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
service sshd statuts
26. Before you work with quotas - what do you need to do to the file system?
The smbstatus command shows you currently mounted Samba resources.
The ping command can be used to verify connectivity to another host.
The nfsstat command can be used to view NFS statistics.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
27. What does virsh reboot Client04 do?
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.
This command reboots virtual guest Client04.
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.
By default - Squid runs on port 3128.
28. What is the /var/lib/nfs/etab file used for?
service dhcpd configtest
The smbpasswd command is used to create Samba users.
The rndc utility provides a method for managing the DNS server remotely and securely.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
29. 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>.
browseable option
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
30. What command and option do you use to view the description of Boolean values?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
semanage boolean -l
amount of RAM
load balancing and redundancy benefits
31. What command is used to create a user for Samba?
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 smbpasswd command is used to create Samba users.
choose which mode you'd like it to operate in
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
32. How would you go about creating a static route?
Use the route command with the add option to create a static route.
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 print option is used with both the fdisk and parted commands to display the current partition tables.
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.
33. A PXE server eases the automation process but isn't required for...
kickstart installations to work
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The lastlog and faillog commands are used to view user login-related events?
34. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
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.
setsebool -P nfs_export_all_rw=1
alternatives --config mta
defining a %pre section although it is rarely used
35. Which remote management service is installed by default?Can you name the port that it uses?
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 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.
The NFS service uses TCP port 2049 by default.
chkconfig xinetd --list
36. What are the three different types of RAID described in this chapter?
You must open TCP ports 20 and 21 for the FTP server to function properly.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
chkconfig sshd off
37. What is the rndc utility used for?
The DHCP server listens on port 67 by default.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The rndc utility provides a method for managing the DNS server remotely and securely.
repquota
38. It is possible to run scripts before a kickstart installation. This is done by...
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
defining a %pre section although it is rarely used
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.
The SMTP service runs on TCP port 110.
39. What command can be used to easily list all the options in the FTP main config file?
Version 2 is the latest and most secure version of SSH.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
40. GRUB has three stages. Can you name them?
LUKS encryption
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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
41. What is a gateway used for on a network?
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.
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.
The SMTP service runs on TCP port 110.
choose which mode you'd like it to operate in
42. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Sendmail
The four types of DNS servers are master - slave - caching-only - and forwarding.
The /etc/fstab file.
43. What command (and options) can be used to create a user named George with the description "Jr Admin"?
By default - Squid runs on port 3128.
useradd -c "Jr Admin" George
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Use the yum groupinstall command to install multiple packages in a single group at once.
44. What option at the GRUB boot menu can you use to append something to a kernel?
setsebool -P nfs_export_all_rw=1
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.
Using the chcon command - you can change the context of a file to work with Apache.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
45. What command can you use to monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
atq
46. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The NFS service uses TCP port 2049 by default.
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
47. 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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The htpasswd command can be used to password-protect a web page.
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.
48. You must dictate the ____________ you want allocated to your virtual machine when you create it.
support for TCP Wrappers
amount of RAM
Sendmail
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
49. What is the name of the section used to run scripts after a kickstart installation?
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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
By default - Squid runs on port 3128.
By defining a %post section - you can run scripts after a kickstart installation is complete.
50. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
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.
browseable option
rpcbind service
LUKS encryption