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 file needs to be edited so that the system will mount a file system at boot time?
chkconfig—list
service dhcpd configtest
defining a %pre section although it is rarely used
The /etc/fstab file.
2. What does virsh reboot Client04 do?
createrepo
Enforcing during installation
This command reboots virtual guest Client04.
getsebool
3. 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.
The user_list file can be used to limit which users have access to the FTP server.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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
4. 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.
Physical volumes - volume groups - and logical volumes.
The rndc utility provides a method for managing the DNS server remotely and securely.
The three utilities are: route - ping - and nslookup.
5. What happens to jobs that are scheduled to run while the system is off?
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.
semanage boolean -l
useradd -c "Jr Admin" George
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.
6. What command (and options) can be used to create a user named George with the description "Jr Admin"?
run on any port you'd like (provided that port is available)
The htpasswd command can be used to password-protect a web page.
user's home directory in the /etc/skel directory
useradd -c "Jr Admin" George
7. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The anonymous_enable=YES option in the main config file allows anonymous uploads.
8. What is the top command used for?
SELinux Booleans provide restrictions to different aspects of a service.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
you have access to the correct packages or repositories.
Use the top command to view CPU and memory usage.
9. What is the rndc utility used for?
defining a %pre section although it is rarely used
lvdisplay
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.
10. What is the superblock used for?
service httpd configtest
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
lvdisplay
repquota
11. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
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
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
12. How can virtual hosts be used?
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.
entering rescue mode and repairing the problem.
The -t nfs option is used with the mount command to mount NFS resources.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
13. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The three utilities are: route - ping - and nslookup.
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
14. To create a RAID or LVM partition using kickstart
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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
15. What is the main config file for the DHCP service?
Enforcing during installation
The lastlog and faillog commands are used to view user login-related events?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
defining a %pre section although it is rarely used
16. The exportfs command is used to...
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.
export one or all resources
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 /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
17. Before you work with ACLs - what do you need to do to the file system?
By default - Squid runs on port 3128.
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.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
run on any port you'd like (provided that port is available)
18. What three protocols can you use to perform network installations?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
19. What command can you use to validate the syntax of the Apache config file?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The lastlog and faillog commands are used to view user login-related events?
enabled by default
service httpd configtest
20. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
support for TCP Wrappers
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The service command is used to start - stop - and manage system services.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
21. What port does the SMTP service run on?
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.
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.
cat /proc/mdstat
22. How would you go about creating a static route?
This command reboots virtual guest Client04.
Use the route command with the add option to create a static route.
halts the system
mkfs.ext4
23. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
This chapter described tdbsm and smbpasswd back-end authentication.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
service sshd statuts
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.
24. 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
25. What is a gateway used for on a network?
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 yum and rpm commands are used for package management.
browseable option
Typing the mail or mutt command allows you to read mail from the command line.
26. Are additional packages besides httpd required for a secure website - If so - what are they?
The DHCP server listens on port 67 by default.
load balancing and redundancy benefits
For Apache to run a secure site - the mod_ssl package is required to be installed.
The two main config files are master.cf and main.cf.
27. What command can you use to view system processes and their CPU usage?
mkfs.ext4
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.
Use the ps command to view processes and their CPU usage.
support TCP Wrappers
28. Can you name the two commands that can be used to view the free space on the system?
The rndc utility provides a method for managing the DNS server remotely and securely.
lvdisplay
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The du and df commands are used to view available space on the system.
29. What command can you use to create a password-protected page?
user's home directory in the /etc/skel directory
This command reboots virtual guest Client04.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The htpasswd command can be used to password-protect a web page.
30. What is SSH used for?
Use the top command to view CPU and memory usage.
halts the system
SSH is used for secure remote management of Linux systems.
defining a %pre section although it is rarely used
31. It is possible to run scripts before a kickstart installation. This is done by...
The ping command can be used to verify connectivity to another host.
serve both files and printers to users
defining a %pre section although it is rarely used
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
32. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
The -t nfs option is used with the mount command to mount NFS resources.
chkconfig—list
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
33. What is the /etc/vsftpd/user_list file used for?
The lastlog and faillog commands are used to view user login-related events?
You add your action to the end of the /home/user01/.bashrc file.
The user_list file can be used to limit which users have access to the FTP server.
By defining a %post section - you can run scripts after a kickstart installation is complete.
34. What are the three different types of RAID described in this chapter?
semanage boolean -l
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
browseable option
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
35. What is the virsh command used for?
createrepo
alternatives --config mta
The virsh command is used to manage virtual guests.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
36. What command is used to create an RPM package?
rpmbuild
support for TCP Wrappers
SELinux provides enhanced granular security for the Linux operating system.
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. What is a swap? Is it created as a partition or device file?
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.
lvdisplay
Use the resize2fs command to grow a file system.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
38. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
The /etc/fstab file.
rpcbind service
enabled by default
alternatives --config mta
39. What command displays your current interfaces and IP address?
The mount command lists all currently mounted file systems.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
You can use the remove or erase options with yum to remove a package.
ifconfig
40. What command can you use to get information about logical volumes?
The lftp command can be used on a client to test FTP server connections.
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.
lvdisplay
Typing the mail or mutt command allows you to read mail from the command line.
41. Red Hat Enterprise Linux 6 is the only version that officially supports _______
You must open TCP ports 20 and 21 for the FTP server to function properly.
getsebool -a | grep http
LUKS encryption
Use the resize2fs command to grow a file system.
42. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
ifconfig
load balancing and redundancy benefits
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
43. What command can be used to view the queue for at service jobs?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
atq
kickstart installations to work
44. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
Physical volumes - volume groups - and logical volumes.
ifconfig
Use the top command to view CPU and memory usage.
via the command line
45. 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.
The /var/log/audit/audit.log file contains all policy violations.
Enforcing during installation
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
A virtual host is a way of hosting multiple sites using a single IP address.
46. How can you change the security context of a directory to work with Apache?
Using the chcon command - you can change the context of a file to work with Apache.
getfacl
user's home directory in the /etc/skel directory
DNS uses port 53.
47. What command can you use to monitor and troubleshoot network connections?
you have access to the correct packages or repositories.
The tcpdump command is used to monitor network connections on different interfaces.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
48. What is the difference between an A record and a PTR record?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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 smbstatus command shows you currently mounted Samba resources.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
49. Before you work with quotas - what do you need to do to the file system?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
50. GRUB has three stages. Can you name them?
Enforcing during installation
Physical volumes - volume groups - and logical volumes.
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
enabled by default