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 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.
user's home directory in the /etc/skel directory
Use the ps command to view processes and their CPU usage.
support TCP Wrappers
2. What are the two types of back-end authentication mechanisms discussed in this chapter?
Enforcing during installation
schedule one-time-only jobs
The vsftpd package is used to install an FTP server.
This chapter described tdbsm and smbpasswd back-end authentication.
3. What are the three items that make up LVM?
The mount command lists all currently mounted file systems.
The two main config files are master.cf and main.cf.
Physical volumes - volume groups - and logical volumes.
The virsh command is used to manage virtual guests.
4. What is the name of the section used to run scripts after a kickstart installation?
You can use the authconfig-tui command or the authconfig command.
The DHCP server listens on port 67 by default.
Using the chcon command - you can change the context of a file to work with Apache.
By defining a %post section - you can run scripts after a kickstart installation is complete.
5. What command is used to create an RPM package?
The lftp command can be used on a client to test FTP server connections.
rpmbuild
The smbstatus command shows you currently mounted Samba resources.
LUKS encryption
6. How would you install a group of packages all at a single time?
The /etc/fstab file.
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 /var/lib/nfs/etab file is used to keep track of currently exported resources.
Use the yum groupinstall command to install multiple packages in a single group at once.
7. What command can you use to test connectivity to another host?
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.
This chapter described tdbsm and smbpasswd back-end authentication.
SELinux provides enhanced granular security for the Linux operating system.
The ping command can be used to verify connectivity to another host.
8. Which log file is used to keep track of policy violations?
The /var/log/audit/audit.log file contains all policy violations.
The rpm command can operate in install - query - or verify modes.
ifconfig
The four types of DNS servers are master - slave - caching-only - and forwarding.
9. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The three utilities are: route - ping - and nslookup.
Sendmail
The virsh command is used to manage virtual guests.
10. What command can you use to test the config files before starting the DNS service?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
rpcbind service
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.
service named configtest
11. What critical step must you take after updating the kernel to a newer version?
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
A user's home directory is created under the /home directory.
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
12. To export directories as resources - what file needs to be edited?
13. How would you go about creating a static route?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Use the route command with the add option to create a static route.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The du and df commands are used to view available space on the system.
14. What is the benefit to using centralized authentication?
15. You must dictate the ____________ you want allocated to your virtual machine when you create it.
have the same effect
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
amount of RAM
Use the yum groupinstall command to install multiple packages in a single group at once.
16. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
For Apache to run a secure site - the mod_ssl package is required to be installed.
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 can use the remove or erase options with yum to remove a package.
A user's home directory is created under the /home directory.
17. What are the five required directories when building RPMS?
You add your action to the end of the /home/user01/.bashrc file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Apache uses port 80 for HTTP and port 443 for HTTPS.
Use the top command to view CPU and memory usage.
18. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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 last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The lastlog and faillog commands are used to view user login-related events?
rpmbuild
19. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
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.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
20. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
kickstart installations to work
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.
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.
21. Can you name three utilities that can be used for network or DNS client troubleshooting?
A virtual host is a way of hosting multiple sites using a single IP address.
The three utilities are: route - ping - and nslookup.
export one or all resources
Enforcing during installation
22. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
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.
have the same effect
cat /proc/mdstat
23. What is the top command used for?
The user_list file can be used to limit which users have access to the FTP server.
Use the top command to view CPU and memory usage.
service named configtest
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
24. 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 three utilities are: route - ping - and nslookup.
Enforcing during installation
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf 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.
25. A slave DNS server provides...
schedule one-time-only jobs
The virsh command is used to manage virtual guests.
load balancing and redundancy benefits
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
26. What command can you use to view the current ACL on a file?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
getfacl
amount of RAM
You must open TCP ports 20 and 21 for the FTP server to function properly.
27. What is SSH used for?
DNS uses port 53.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
SSH is used for secure remote management of Linux systems.
user's home directory in the /etc/skel directory
28. What does the rdnc-confgen command do?
entering rescue mode and repairing the problem.
export one or all resources
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
29. What port on the firewall needs to be open for the TFTP server to work?
The print option is used with both the fdisk and parted commands to display the current partition tables.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The TFTP server uses UDP port 69.
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.
30. What is the name of the package that allows you to install VNC?
Enforcing during installation
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
rpmbuild
31. What port does the SMTP service run on?
run on any port you'd like (provided that port is available)
The SMTP service runs on TCP port 110.
service sshd statuts
getsebool -a | grep http
32. What port does the rndc utility listen on by default?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
you have access to the correct packages or repositories.
By default - the rndc utility listens on port 953.
The print option is used with both the fdisk and parted commands to display the current partition tables.
33. What option would you use to query an installed package using the rpm command?
The vsftpd package is used to install an FTP server.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
34. Most boot issues can be resolved by...
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The NFS service uses TCP port 2049 by default.
entering rescue mode and repairing the problem.
35. What command can you use to check the config file of the DHCP server?
atq
service dhcpd configtest
semanage boolean -l
mkfs.ext4
36. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
load balancing and redundancy benefits
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 /var/lib/nfs/etab file is used to keep track of currently exported resources.
alternatives --config mta
37. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
Use the setgid flag to create the appropriate permissions (chmod 2770).
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The yum and rpm commands are used for package management.
user's home directory in the /etc/skel directory
38. Explain the difference between soft and hard limits in quotas.
39. What port does the DHCP server listen on by default?
chcon
The DHCP server listens on port 67 by default.
halts the system
The /etc/fstab file.
40. The at command is used to ____________. The cron service handles reoccurring system jobs.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
schedule one-time-only jobs
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
41. How do you run a command with elevated privileges?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
schedule one-time-only jobs
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.
42. What command can you use to view NFS statistics?
service named configtest
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The nfsstat command can be used to view NFS statistics.
You can use the remove or erase options with yum to remove a package.
43. What command (and options) can be used to create a user named George with the description "Jr Admin"?
you have access to the correct packages or repositories.
The /var/log/audit/audit.log file contains all policy violations.
useradd -c "Jr Admin" George
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
44. What command and option can you use to enable a service to start on boot?
The mount command lists all currently mounted file systems.
The du and df commands are used to view available space on the system.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The virsh command is used to manage virtual guests.
45. What is the rndc utility used for?
By default - Squid runs on port 3128.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The rndc utility provides a method for managing the DNS server remotely and securely.
The NFS service uses TCP port 2049 by default.
46. What two commands are special for dealing with user login events?
The SMTP service runs on TCP port 110.
The /var/log/audit/audit.log file contains all policy violations.
chkconfig sshd off
The lastlog and faillog commands are used to view user login-related events?
47. Through its main config file - SSH can be configured to...
48. What is the main config file for the DHCP service?
The mount command lists all currently mounted file systems.
Typing the mail or mutt command allows you to read mail from the command line.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
entering rescue mode and repairing the problem.
49. Before you work with quotas - what do you need to do to the file system?
entering rescue mode and repairing the problem.
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
50. What command is used to show all services being controlled by the xinetd daemon?
You can use the authconfig-tui command or the authconfig command.
chkconfig xinetd --list
By default - Squid runs on port 3128.
Use the resize2fs command to grow a file system.