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. The at command is used to ____________. The cron service handles reoccurring system jobs.
The yum and rpm commands are used for package management.
schedule one-time-only jobs
The htpasswd command can be used to password-protect a web page.
By default - the rndc utility listens on port 953.
2. What two commands are special for dealing with user login events?
The lastlog and faillog commands are used to view user login-related events?
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.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
3. The ____________ is available for each share.
serve both files and printers to users
Use the yum groupinstall command to install multiple packages in a single group at once.
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
browseable option
4. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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 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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
5. What command can you use to test connectivity to another host?
The dig - host - and ping commands can be used to test DNS server functionality.
The ping command can be used to verify connectivity to another host.
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.
repquota
6. What command can you use to create a file system?
The htpasswd command can be used to password-protect a web page.
The tcpdump command is used to monitor network connections on different interfaces.
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.
mkfs.ext4
7. The exportfs command is used to...
export one or all resources
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The virsh command is used to manage virtual guests.
getsebool -a | grep http
8. What are the side effects of shrinking a volume group or logical volume?
The NFS service uses TCP port 2049 by default.
A virtual host is a way of hosting multiple sites using a single IP address.
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.
support for TCP Wrappers
9. Before you work with quotas - what do you need to do to the file system?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The virsh command is used to manage virtual guests.
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 httpd configtest
10. What is the name of the section used to run scripts after a kickstart installation?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
ifconfig
By defining a %post section - you can run scripts after a kickstart installation is complete.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
11. What is the point of using SELinux?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Enforcing during installation
The nfsstat command can be used to view NFS statistics.
SELinux provides enhanced granular security for the Linux operating system.
12. Can you put your /boot partition on a RAID 5 array?
cat /proc/mdstat
setsebool -P nfs_export_all_rw=1
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.
have the same effect
13. A slave DNS server provides...
user's home directory in the /etc/skel directory
load balancing and redundancy benefits
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.
You add your action to the end of the /home/user01/.bashrc file.
14. How can virtual hosts be used?
Use the top command to view CPU and memory usage.
This command reboots virtual guest Client04.
The ping command can be used to verify connectivity to another host.
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.
15. What are the three modes in which the rpm command can operate?
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 rpm command can operate in install - query - or verify modes.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
16. What is the benefit to using centralized authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
17. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
rpcbind service
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
SELinux provides enhanced granular security for the Linux operating system.
18. What command is used to create an RPM package?
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
19. What is the main config file for the DHCP service?
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
By default - Squid runs on port 3128.
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
20. What command can you use to view mounted Samba shares?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The smbstatus command shows you currently mounted Samba resources.
you have access to the correct packages or repositories.
The DHCP server listens on port 67 by default.
21. What is the /var/lib/nfs/etab file used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Enforcing during installation
chkconfig xinetd --list
The dig - host - and ping commands can be used to test DNS server functionality.
22. Where are Yum repository config files located?
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
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
23. Do you need to write changes to the disk when using the parted command? What about fdisk?
The rpm command can operate in install - query - or verify modes.
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.
The lftp command can be used on a client to test FTP server connections.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
24. What option is used to allow anonymous uploads to the FTP server?
The SMTP service runs on TCP port 110.
The smbpasswd command is used to create Samba users.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The /var/log/audit/audit.log file contains all policy violations.
25. What port does the Apache web server run on - What about HTTPS?
The lftp command can be used on a client to test FTP server connections.
Apache uses port 80 for HTTP and port 443 for HTTPS.
Use the top command to view CPU and memory usage.
Using the chcon command - you can change the context of a file to work with Apache.
26. What command and options can you use to update the time?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The three utilities are: route - ping - and nslookup.
The lastlog and faillog commands are used to view user login-related events?
27. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The du and df commands are used to view available space on the system.
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.
LUKS encryption
28. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
The virsh command is used to manage virtual guests.
chcon
The lastlog and faillog commands are used to view user login-related events?
29. 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.
getfacl
chcon
The service command is used to start - stop - and manage system services.
30. What port must be opened on the firewall for DNS?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
DNS uses port 53.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The rndc utility provides a method for managing the DNS server remotely and securely.
31. What happens to jobs that are scheduled to run while the system is off?
You can use the authconfig-tui command or the authconfig command.
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.
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
The user_list file can be used to limit which users have access to the FTP server.
32. 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.
service dhcpd configtest
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
For Apache to run a secure site - the mod_ssl package is required to be installed.
33. 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
34. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
getsebool
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Enforcing during installation
35. What is the rndc utility used for?
Physical volumes - volume groups - and logical volumes.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The rndc utility provides a method for managing the DNS server remotely and securely.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
36. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
have the same effect
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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.
37. What is VNC?
VNC is used to control a remote desktop session.
By defining a %post section - you can run scripts after a kickstart installation is complete.
A virtual host is a way of hosting multiple sites using a single IP address.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
38. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
A user's home directory is created under the /home directory.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Enforcing during installation
The two main config files are master.cf and main.cf.
39. What option is used with both the fdisk and parted commands to display the current partition tables?
The TFTP server uses UDP port 69.
halts the system
service httpd configtest
The print option is used with both the fdisk and parted commands to display the current partition tables.
40. What option would you use to query an installed package using the rpm command?
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.
chkconfig—list
The virsh command is used to manage virtual guests.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
41. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
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.
This command reboots virtual guest Client04.
DNS uses port 53.
42. Samba servers can...
Network installations can be performed using the HTTP - FTP - and NFS protocols.
serve both files and printers to users
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
43. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
You can use the authconfig-tui command or the authconfig command.
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.
choose which mode you'd like it to operate in
44. What three components are needed to fully automate a kickstart installation?
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.
semanage boolean -l
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
45. How can you check the currently mounted file systems?
Use the top command to view CPU and memory usage.
The mount command lists all currently mounted file systems.
The ping command can be used to verify connectivity to another host.
LUKS encryption
46. What command can you use to validate the syntax of the Apache config file?
service httpd configtest
SSH is used for secure remote management of Linux systems.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
47. What port does the rndc utility listen on by default?
The mount command lists all currently mounted file systems.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
By default - the rndc utility listens on port 953.
The lastlog and faillog commands are used to view user login-related events?
48. Before you work with ACLs - what do you need to do to the file system?
Use the yum groupinstall command to install multiple packages in a single group at once.
you have access to the correct packages or repositories.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
49. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
The four types of DNS servers are master - slave - caching-only - and forwarding.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
50. To export directories as resources - what file needs to be edited?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183