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. How would you install a group of packages all at a single time?
halts the system
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
service named configtest
2. 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.
choose which mode you'd like it to operate in
Use the yum groupinstall command to install multiple packages in a single group at once.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
3. To create a RAID or LVM partition using kickstart
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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 lastlog and faillog commands are used to view user login-related events?
4. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. Which remote management service is installed by default?Can you name the port that it uses?
Use the ps command to view processes and their CPU usage.
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.
chcon
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
6. What are the three items that make up LVM?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Physical volumes - volume groups - and logical volumes.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
lvdisplay
7. A PXE server eases the automation process but isn't required for...
defining a %pre section although it is rarely used
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
cat /proc/mdstat
kickstart installations to work
8. What is NAT - How is it used?
support for TCP Wrappers
kickstart installations to work
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 smbpasswd command is used to create Samba users.
9. What option needs to be used with the mount command to mount an NFS resource?
The three utilities are: route - ping - and nslookup.
The -t nfs option is used with the mount command to mount NFS resources.
cat /proc/mdstat
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.
10. What is the name of the package that allows you to install VNC?
enabled by default
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The TFTP server uses UDP port 69.
11. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
You must open TCP ports 20 and 21 for the FTP server to function properly.
12. What port on the firewall needs to be open for the TFTP server to work?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
service dhcpd configtest
The TFTP server uses UDP port 69.
13. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
service sshd statuts
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
schedule one-time-only jobs
You should never allow remote root access. Should your root account become compromised and you use the same password - someone could gain access to all your systems. You also don't want the most powerful user of your system (with no accountability) l
14. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
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.
have the same effect
A virtual host is a way of hosting multiple sites using a single IP address.
15. What port must be opened on the firewall for DNS?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
DNS uses port 53.
A virtual host is a way of hosting multiple sites using a single IP address.
For Apache to run a secure site - the mod_ssl package is required to be installed.
16. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
The three utilities are: route - ping - and nslookup.
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.
used for kickstart and/or network installs
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.
17. What command do you use to report information on quota usage?
repquota
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The htpasswd command can be used to password-protect a web page.
chkconfig—list
18. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
19. What command displays your current interfaces and IP address?
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
ifconfig
20. What directory is used to represent the virtual file system created by the kernel?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
alternatives --config mta
Apache uses port 80 for HTTP and port 443 for HTTPS.
Use the yum groupinstall command to install multiple packages in a single group at once.
21. What two commands are special for dealing with user login events?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The SMTP service runs on TCP port 110.
The lastlog and faillog commands are used to view user login-related events?
22. What does virsh reboot Client04 do?
By defining a %post section - you can run scripts after a kickstart installation is complete.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
This command reboots virtual guest Client04.
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.
23. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
24. What does the testparm command do?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The smbpasswd command is used to create Samba users.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
25. A slave DNS server provides...
The DHCP server listens on port 67 by default.
service sshd statuts
The rndc utility provides a method for managing the DNS server remotely and securely.
load balancing and redundancy benefits
26. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
setsebool -P nfs_export_all_rw=1
27. What are the two config files for Postfix called?
The vsftpd package is used to install an FTP server.
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.
This chapter described tdbsm and smbpasswd back-end authentication.
28. What command is used to create an RPM package?
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.
rpmbuild
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.
browseable option
29. What command and option can you use to enable a service to start on boot?
The virsh command is used to manage virtual guests.
Use the ps command to view processes and their CPU usage.
getsebool
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
30. 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...
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.
SSH is used for secure remote management of Linux systems.
halts the system
have the same effect
31. 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
32. What happens to jobs that are scheduled to run while the system is off?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
kickstart installations to work
The du and df commands are used to view available space on the system.
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.
33. What does the partprobe command do?
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 virsh command is used to manage virtual guests.
Physical volumes - volume groups - and logical volumes.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
34. Which version of SSH should you use?
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 smbpasswd command is used to create Samba users.
Version 2 is the latest and most secure version of SSH.
The NFS service uses TCP port 2049 by default.
35. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
36. What benefit does a web proxy provide to your network?
The two main config files are master.cf and main.cf.
The three utilities are: route - ping - and nslookup.
The dig - host - and ping commands can be used to test DNS server functionality.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
37. What command can you use to create a new SSL certificate?
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).
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Use the ps command to view processes and their CPU usage.
38. What happens if you call the command from question 3 with the -c option after it has already been run?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
lvdisplay
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 NFS service uses TCP port 2049 by default.
39. What command can you use to monitor and troubleshoot network 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.
serve both files and printers to users
Use the top command to view CPU and memory usage.
The tcpdump command is used to monitor network connections on different interfaces.
40. How would you disable SELinux protection for NFS - allowing shares to be read/write?
By default - the rndc utility listens on port 953.
setsebool -P nfs_export_all_rw=1
The smbpasswd command is used to create Samba users.
Version 2 is the latest and most secure version of SSH.
41. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
42. What is the /var/lib/nfs/etab file used for?
VNC is used to control a remote desktop session.
The ping command can be used to verify connectivity to another host.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
amount of RAM
43. What protocols are used with Dovecot?
alternatives --config mta
The print option is used with both the fdisk and parted commands to display the current partition tables.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
44. It is possible to run scripts before a kickstart installation. This is done by...
A user's home directory is created under the /home directory.
getsebool
The two main config files are master.cf and main.cf.
defining a %pre section although it is rarely used
45. What command can you use to get information about logical volumes?
lvdisplay
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
46. What command disables the SSH service from running when the system boots?
chkconfig sshd off
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Enforcing during installation
chkconfig—list
47. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
have the same effect
By defining a %post section - you can run scripts after a kickstart installation is complete.
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.
48. The package selection screen allows you to install any software you want during the installation process as long as...
kickstart installations to work
used for kickstart and/or network installs
you have access to the correct packages or repositories.
service named configtest
49. Which log file is used to keep track of policy violations?
createrepo
support TCP Wrappers
The /var/log/audit/audit.log file contains all policy violations.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
50. Where are Yum repository config files located?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
halts the system
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.
rpcbind service