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 top command used for?
The three utilities are: route - ping - and nslookup.
Use the top command to view CPU and memory usage.
SELinux Booleans provide restrictions to different aspects of a service.
The virsh command is used to manage virtual guests.
2. Can you name the two commands that can be used to view the free space on the system?
The du and df commands are used to view available space on the system.
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
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
used for kickstart and/or network installs
3. Do you need to write changes to the disk when using the parted command? What about fdisk?
The smbstatus command shows you currently mounted Samba resources.
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
4. What is NAT - How is it used?
serve both files and printers to users
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.
The virsh command is used to manage virtual guests.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
5. The at command is used to ____________. The cron service handles reoccurring system jobs.
This chapter described tdbsm and smbpasswd back-end authentication.
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.
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
schedule one-time-only jobs
6. The package selection screen allows you to install any software you want during the installation process as long as...
alternatives --config mta
The tcpdump command is used to monitor network connections on different interfaces.
support TCP Wrappers
you have access to the correct packages or repositories.
7. What three components are needed to fully automate a kickstart installation?
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
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /var/log/audit/audit.log file contains all policy violations.
8. What are the two config files for Postfix called?
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.
The two main config files are master.cf and main.cf.
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
9. How do you run a command with elevated privileges?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
via the command line
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
10. What is the /var/lib/nfs/etab file used for?
repquota
rpmbuild
By defining a %post section - you can run scripts after a kickstart installation is complete.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
11. What command can you use to create a file system?
mkfs.ext4
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
lvdisplay
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
12. 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.
mkfs.ext4
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
13. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
Network installations can be performed using the HTTP - FTP - and NFS protocols.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The nfsstat command can be used to view NFS statistics.
14. What command is used to create an RPM package?
rpcbind service
The anonymous_enable=YES option in the main config file allows anonymous uploads.
This chapter described tdbsm and smbpasswd back-end authentication.
rpmbuild
15. What does the partprobe command do?
The lastlog and faillog commands are used to view user login-related events?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
chcon
16. Before you work with quotas - what do you need to do to the file system?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
A virtual host is a way of hosting multiple sites using a single IP address.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
17. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
The /var/log/audit/audit.log file contains all policy violations.
A user's home directory is created under the /home directory.
chcon
18. 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
19. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
Use the setgid flag to create the appropriate permissions (chmod 2770).
This command reboots virtual guest Client04.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
20. What are SELinux Booleans?
The SMTP service runs on TCP port 110.
SELinux Booleans provide restrictions to different aspects of a service.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Using the chcon command - you can change the context of a file to work with Apache.
21. What benefit does a web proxy provide to your network?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
22. What does the rdnc-confgen command do?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /var/log/audit/audit.log file contains all policy violations.
The four types of DNS servers are master - slave - caching-only - and forwarding.
23. What command can you use to manage system services?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
service named configtest
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The service command is used to start - stop - and manage system services.
24. What command disables the SSH service from running when the system boots?
chkconfig sshd off
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
chcon
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.
25. 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
26. What command can you use to change the context of files?
chcon
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Physical volumes - volume groups - and logical volumes.
This command reboots virtual guest Client04.
27. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
serve both files and printers to users
service sshd statuts
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
choose which mode you'd like it to operate in
28. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Use the yum groupinstall command to install multiple packages in a single group at once.
29. What command can you use to query information from the kernel about RAID arrays?
By default - Squid runs on port 3128.
The DHCP server listens on port 67 by default.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
cat /proc/mdstat
30. What port must be opened on the firewall for DNS?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
DNS uses port 53.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
31. Which file shows you all the client IP addresses?
The three utilities are: route - ping - and nslookup.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The smbstatus command shows you currently mounted Samba resources.
lvdisplay
32. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
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.
used for kickstart and/or network installs
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
33. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
34. Red Hat Enterprise Linux 6 is the only version that officially supports _______
chkconfig xinetd --list
LUKS encryption
schedule one-time-only jobs
SELinux provides enhanced granular security for the Linux operating system.
35. What port does the rndc utility listen on by default?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
By default - the rndc utility listens on port 953.
service sshd statuts
36. What command can you use to view system processes and their CPU usage?
Enforcing during installation
Use the ps command to view processes and their CPU usage.
The mount command lists all currently mounted file systems.
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.
37. How can you check the currently mounted file systems?
user's home directory in the /etc/skel directory
load balancing and redundancy benefits
The mount command lists all currently mounted file systems.
kickstart installations to work
38. The firewall service is...
The SMTP service runs on TCP port 110.
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 smbstatus command shows you currently mounted Samba resources.
enabled by default
39. How can virtual hosts be used?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
Physical volumes - volume groups - and logical volumes.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
40. What is the name of the section used to run scripts after a kickstart installation?
By defining a %post section - you can run scripts after a kickstart installation is complete.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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.
support for TCP Wrappers
41. What port does NFS use by default?
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.
This chapter described tdbsm and smbpasswd back-end authentication.
Sendmail
42. How can you verify the status of the SSH service after the system has booted?
you have access to the correct packages or repositories.
service sshd statuts
Use the top command to view CPU and memory usage.
The NFS service uses TCP port 2049 by default.
43. You must dictate the ____________ you want allocated to your virtual machine when you create it.
getfacl
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
amount of RAM
By default - Squid runs on port 3128.
44. What is the virsh command used for?
The yum and rpm commands are used for package management.
The virsh command is used to manage virtual guests.
The du and df commands are used to view available space on the system.
support TCP Wrappers
45. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
service dhcpd configtest
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The four types of DNS servers are master - slave - caching-only - and forwarding.
46. What are the side effects of shrinking a volume group or logical volume?
VNC is used to control a remote desktop session.
The nfsstat command can be used to view NFS statistics.
generates errors under Red Hat Enterprise Linux 6
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.
47. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
The three utilities are: route - ping - and nslookup.
48. The exportfs command is used to...
The ping command can be used to verify connectivity to another host.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
export one or all resources
Sendmail
49. What are the three items that make up LVM?
service named configtest
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 four types of DNS servers are master - slave - caching-only - and forwarding.
Physical volumes - volume groups - and logical volumes.
50. GRUB has three stages. Can you name them?
The rndc utility provides a method for managing the DNS server remotely and securely.
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
Use the top command to view CPU and memory usage.
SELinux Booleans provide restrictions to different aspects of a service.