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 command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
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
A user's home directory is created under the /home directory.
choose which mode you'd like it to operate in
2. What port does the rndc utility listen on by default?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
By default - the rndc utility listens on port 953.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
chkconfig xinetd --list
3. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Physical volumes - volume groups - and logical volumes.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
support TCP Wrappers
4. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. Which file shows you all the client IP addresses?
useradd -c "Jr Admin" George
Use the resize2fs command to grow a file system.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
service named configtest
6. 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
7. What two commands are special for dealing with user login events?
The smbstatus command shows you currently mounted Samba resources.
The lftp command can be used on a client to test FTP server connections.
halts the system
The lastlog and faillog commands are used to view user login-related events?
8. What are the side effects of shrinking a volume group or logical volume?
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 dhcpd configtest
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
createrepo
9. What command can be used to view the queue for at service jobs?
cat /proc/mdstat
The du and df commands are used to view available space on the system.
atq
Sendmail
10. You must dictate the ____________ you want allocated to your virtual machine when you create it.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
rpcbind service
amount of RAM
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
11. What are the three different types of RAID described in this chapter?
The TFTP server uses UDP port 69.
Physical volumes - volume groups - and logical volumes.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
12. How would you view all Boolean options for the HTTP service?
The print option is used with both the fdisk and parted commands to display the current partition tables.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The nfsstat command can be used to view NFS statistics.
getsebool -a | grep http
13. What is the superblock used for?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
useradd -c "Jr Admin" George
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
14. Place all files you want added to a _______________ during creation.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
15. Are additional packages besides httpd required for a secure website - If so - what are they?
The yum and rpm commands are used for package management.
service named configtest
You can use the remove or erase options with yum to remove a package.
For Apache to run a secure site - the mod_ssl package is required to be installed.
16. What command can you use to view the current ACL on a file?
The htpasswd command can be used to password-protect a web page.
getfacl
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
17. The at command is used to ____________. The cron service handles reoccurring system jobs.
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.
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.
schedule one-time-only jobs
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
18. What command can you use to monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Enforcing during installation
Use the setgid flag to create the appropriate permissions (chmod 2770).
19. Which remote management service is installed by default?Can you name the port that it uses?
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.
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.
Sendmail
you have access to the correct packages or repositories.
20. Most boot issues can be resolved by...
The print option is used with both the fdisk and parted commands to display the current partition tables.
entering rescue mode and repairing the problem.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
21. What is a virtual host?
lvdisplay
via the command line
A virtual host is a way of hosting multiple sites using a single IP address.
have the same effect
22. 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).
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The smbpasswd command is used to create Samba users.
23. 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
24. What is the difference between an A record and a PTR record?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The DHCP server listens on port 67 by default.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
atq
25. How can you change the security context of a directory to work with Apache?
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.
Using the chcon command - you can change the context of a file to work with Apache.
The nfsstat command can be used to view NFS statistics.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
26. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
getfacl
load balancing and redundancy benefits
Version 2 is the latest and most secure version of SSH.
27. What command (and options) can be used to create a user named George with the description "Jr Admin"?
generates errors under Red Hat Enterprise Linux 6
useradd -c "Jr Admin" George
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
By default - the rndc utility listens on port 953.
28. What is the point of using SELinux?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
SELinux provides enhanced granular security for the Linux operating system.
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.
Use the route command with the add option to create a static route.
29. 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.
Enforcing during installation
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
rpcbind service
30. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
The virsh command is used to manage virtual guests.
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 ping command can be used to verify connectivity to another host.
31. What is SSH used for?
Enforcing during installation
This command reboots virtual guest Client04.
SSH is used for secure remote management of Linux systems.
support TCP Wrappers
32. What port does the DHCP server listen on by default?
The DHCP server listens on port 67 by default.
entering rescue mode and repairing the problem.
export one or all resources
Sendmail
33. What option would you use to query an installed package using the rpm command?
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.
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 smbpasswd command is used to create Samba users.
Enforcing during installation
34. Can you name three utilities that can be used for network or DNS client troubleshooting?
Use the yum groupinstall command to install multiple packages in a single group at once.
halts the system
The three utilities are: route - ping - and nslookup.
chcon
35. A PXE server eases the automation process but isn't required for...
via the command line
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.
kickstart installations to work
browseable option
36. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
You add your action to the end of the /home/user01/.bashrc file.
Use the ps command to view processes and their CPU usage.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
37. What are SELinux Booleans?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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
SELinux Booleans provide restrictions to different aspects of a service.
38. What command can you use to create your own repositories?
createrepo
The print option is used with both the fdisk and parted commands to display the current partition tables.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
mkfs.ext4
39. What option is used to allow anonymous uploads to the FTP server?
Use the yum groupinstall command to install multiple packages in a single group at once.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
cat /proc/mdstat
40. What port on the firewall needs to be open for the TFTP server to work?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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 TFTP server uses UDP port 69.
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.
41. What command can you use to create a file system?
mkfs.ext4
The ping command can be used to verify connectivity to another host.
The TFTP server uses UDP port 69.
enabled by default
42. The ____________ is available for each share.
browseable option
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The lastlog and faillog commands are used to view user login-related events?
The print option is used with both the fdisk and parted commands to display the current partition tables.
43. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
getsebool -a | grep http
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
44. What is the /etc/vsftpd/user_list file used for?
The user_list file can be used to limit which users have access to the FTP server.
The /etc/fstab file.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
45. What command can you use to get information about logical volumes?
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.
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 partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
lvdisplay
46. What client-side command can you use to test your FTP server connection?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The lftp command can be used on a client to test FTP server connections.
getfacl
Enforcing during installation
47. Do you need to write changes to the disk when using the parted command? What about fdisk?
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.
The du and df commands are used to view available space on the system.
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.
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
48. What command do you use to report information on quota usage?
repquota
defining a %pre section although it is rarely used
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
By default - Squid runs on port 3128.
49. What options with the yum command would you use to remove a package?
chkconfig sshd off
You can use the remove or erase options with yum to remove a package.
repquota
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
50. What commands can you use to add a client machine to an LDAP server?
This chapter described tdbsm and smbpasswd back-end authentication.
You can use the authconfig-tui command or the authconfig command.
The du and df commands are used to view available space on the system.
The virsh command is used to manage virtual guests.